原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

API Shakedown

作者:anzar-ahsan-commits版本 0.1.3i★ –i在你的电脑上运行
注册名称io.github.anzar-ahsan-commits/api-shakedown

安装

概览

作者提供的说明(英文原文)

Turn an OpenAPI spec into WireMock stubs, contract tests and chaos scenarios, on local LLMs.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆
  • 你需要填写:OPENAI_API_KEY, ANTHROPIC_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: SHAKEDOWN_PROVIDER, SHAKEDOWN_MODEL, SHAKEDOWN_OLLAMA_URL, OPENAI_API_KEY, ANTHROPIC_API_KEY

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "api-shakedown": {
      "command": "uvx",
      "args": [
        "api-shakedown",
        "mcp"
      ],
      "env": {
        "SHAKEDOWN_PROVIDER": "your-value",
        "SHAKEDOWN_MODEL": "your-value",
        "SHAKEDOWN_OLLAMA_URL": "your-value",
        "OPENAI_API_KEY": "your-value",
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add api-shakedown --env SHAKEDOWN_PROVIDER=your-value --env SHAKEDOWN_MODEL=your-value --env SHAKEDOWN_OLLAMA_URL=your-value --env OPENAI_API_KEY=your-value --env ANTHROPIC_API_KEY=your-value -- uvx api-shakedown mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "api-shakedown": {
      "command": "uvx",
      "args": [
        "api-shakedown",
        "mcp"
      ],
      "env": {
        "SHAKEDOWN_PROVIDER": "your-value",
        "SHAKEDOWN_MODEL": "your-value",
        "SHAKEDOWN_OLLAMA_URL": "your-value",
        "OPENAI_API_KEY": "your-value",
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "api-shakedown": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "api-shakedown",
        "mcp"
      ],
      "env": {
        "SHAKEDOWN_PROVIDER": "your-value",
        "SHAKEDOWN_MODEL": "your-value",
        "SHAKEDOWN_OLLAMA_URL": "your-value",
        "OPENAI_API_KEY": "your-value",
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • SHAKEDOWN_PROVIDER env
    LLM provider: ollama (default, local), openai, or anthropic.
  • SHAKEDOWN_MODEL env
    Model name; defaults per provider (qwen3:8b for Ollama).
  • SHAKEDOWN_OLLAMA_URL env
    Where Ollama runs.
  • OPENAI_API_KEY 机密 env
    Only for SHAKEDOWN_PROVIDER=openai.
  • ANTHROPIC_API_KEY 机密 env
    Only for SHAKEDOWN_PROVIDER=anthropic.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 anzar-ahsan-commits 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 5676 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 5676 个服务器的 73% 更新
  • 基础检查结果等于或优于此分类中其他 5676 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

API Shakedown 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:OPENAI_API_KEY, ANTHROPIC_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.1.3)于15天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv), Docker。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT昨天更新
安装

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

在你的电脑上运行★ 48,148MIT21天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT2个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

API Shakedown

Give it an OpenAPI spec. Get back a ready-to-run test harness: WireMock stubs, contract tests, robustness probes, and chaos scenarios, written by a team of LLM agents that review each other's work.

Runs locally on [Ollama](https://ollama.com) by default: no API key, no data leaves your machine. Cloud models (OpenAI, Anthropic) are bring-your-own-key. Available as a CLI, a Docker image, and an MCP server so an AI assistant can drive it.

Status: alpha (0.1.3). Works end to end on the example spec with a local 8B model.

*A real run on the bundled example with qwen3:8b on a laptop, sped up: generation took about 9 minutes. Recording: docs/demo.cast.*


Contents

  • Why
  • Where it helps
  • Quick start
  • What you get
  • How it works
  • Install
  • Usage
  • Configuration
  • MCP server
  • Docker
  • Architecture
  • Limitations
  • Roadmap
  • Development
  • Contributing
  • License

Why

Teams that consume an API need three things that are tedious to write by hand and go stale quickly:

  1. A realistic mock of the API to develop and test against.
  2. Contract tests that tell you when the real API stops matching its spec.
  3. Failure drills: what does your client do when the API is slow, flaky, rate limited, returns garbage, or goes down?

API Shakedown generates all three from the spec you already have, and keeps them honest: the LLMs never write code that runs. They propose *data* (response bodies, test cases, failure scenarios, test records), and code validates every item against the spec, feeds problems back to the model, and falls back to deterministic output when a model cannot get it right. Without any model at all (--offline), every part still works.

Where it helps

SituationTypical teamsWhat API Shakedown gives you
Building before the backend existsFrontend, mobile, partner integratorsA virtual service generated from the agreed spec, so work starts on day one instead of after the backend ships or after hand-written mocks.
Depending on APIs you don't control (payments, shipping, identity checks, credit bureaus)Fintech, e-commerce, logistics, insuranceVendor sandboxes are often rate-limited, flaky or billed per call. Test locally what your app does when the provider times out, rate-limits you, or returns 503 twice before recovering.
Proving clients survive failureMicroservice teams, SRE game daysSwitch timeouts, rate limits, flaky calls and partial outages on and off while your client runs, and confirm retries, backoff and fallbacks really work.
Catching spec drift before releaseAPI owners, platform and public-API teamsContract tests run against a real deployment in CI and fail when the implementation stops matching its spec.
Hardening input validationAny API teamRobustness probes check that malformed requests get a 4xx, never a 500. A complement to a security review, not a replacement.
Regulated or offline environmentsBanking, healthcare, governmentEverything runs on a local model: the spec never leaves the machine, where many AI tools cannot be used at all.
Migrating or rewriting a serviceLegacy modernisationGenerate contract tests from the existing spec and run them against the new implementation to confirm it behaves the same.
Working through an AI assistantDevelopers using Claude and other MCP clientsThe assistant generates the harness and runs failure drills on request.

It is not a load-testing tool or a security scanner, and the virtual service does not keep state between calls; see Limitations.

Quick start

Prerequisites: Python 3.11+, Docker (for WireMock), and Ollama with a model (ollama pull qwen3:8b) unless you use --offline or a cloud model.

pip install api-shakedown

shakedown doctor # is the model ready? shakedown run openapi.yaml --out my-harness # minutes on a local model cd my-harness docker compose up -d # WireMock with your stubs on :8080 pip install -r requirements.txt SHAKEDOWN_SELECT_STATUS=1 pytest tests/test_contract.py python chaos/chaos.py on flaky-start # now point your client at :8080 python chaos/chaos.py off

Try it on the bundled example: shakedown run examples/petstore.yaml --out petstore.

A real run on the example spec with qwen3:8b:

Petstore 1.0.0: 5 operations (ollama / qwen3:8b)

Generating test data... Test data ready (3 Pet). Generating stubs, contract tests, and chaos scenarios... stubs: done contracts: done chaos: done review contracts: approved review stubs: approved review chaos: approved

Wrote 14 files to harness in 436s: 15 stubs, 11 contract cases, 11 chaos scenarios, 30 probes. Next: cd harness && docker compose up -d (then see README.md)

What you get

my-harness/

├── README.md # generated: how to run it, every scenario, review notes ├── docker-compose.yml # WireMock 3 serving the stubs (port: SHAKEDOWN_WIREMOCK_PORT) ├── wiremock/mappings/ # stub mappings ├── tests/ │ ├── test_contract.py # contract tests (cases in contract_cases.json) │ └── test_robustness.py # malformed-request probes (cases in robustness_cases.json) ├── chaos/ │ ├── chaos.py # switch failure scenarios on/off (standard library only) │ └── chaos_scenarios.json ├── data/dataset.json # test records and edge-case values per field ├── requirements.txt # pytest, httpx, openapi-schema-validator └── shakedown.json # manifest: counts, review outcome, generation notes

PartWhat it does
StubsEvery documented response of every operation. Known ids return their own record, unknown ids return the documented 404, and any other response can be requested with X-Shakedown-Status: .
Contract testsHappy paths, documented error statuses, and boundary values. Each checks the status code, Content-Type, and the body against the response schema. Run them against the stubs or a real deployment.
Robustness probesInvalid bodies and parameters derived from the schemas (missing required fields, wrong types, out-of-range values, broken JSON). A robust server answers 4xx, never 5xx.
Chaos scenariosSeven baseline failures every client should survive, plus scenarios the LLM targets at your API.
Test dataRealistic, consistent records per entity, shared by the stubs and the tests, plus edge-case values for every field.

Baseline chaos scenarios:

ScenarioWhat happensA resilient client should
total-outageEvery endpoint returns 503Fail fast, back off, not hammer the API
slow-responsesEvery response takes 3 sStay responsive
timeoutsEvery response takes 30 sGive up on its own and free resources
connection-resetsConnections are resetRetry idempotent calls with backoff
flaky-startFirst 2 calls fail with 503, then recoverRetry and succeed on the third attempt
rate-limitedFirst 3 calls return 429Honour Retry-After
truncated-jsonSuccess bodies are cut off mid-JSONReport a parse error, never crash

LLM-targeted scenarios from a real run include *createPet fails 3 times with 503 then recovers*, *listPets is rate limited*, and *getPet loses required fields*.

How it works

flowchart LR

spec[/"OpenAPI spec"/] --> load["Load, validate, normalize, chunk"] load --> data["Test data agent"] data --> stubs["Stub agent"] data --> contracts["Contract agent"] data --> chaos["Chaos agent"] stubs --> review{"Reviewer agent"} contracts --> review chaos --> review review -- "blocker: revise with feedback" --> stubs review -- "blocker" --> contracts review -- "blocker" --> chaos review -- "approved, or budget spent" --> coord["Coordinator"] coord --> harness[/"Harness directory"/]

  1. Spec layer: loads YAML/JSON from a path or URL, validates it (problems become warnings), inlines $refs safely, and splits operations into prompt-sized chunks so large specs fit small models.
  2. Test data agent runs first: the stubs and tests share its records.
  3. Stub, contract, and chaos agents run in parallel.
  4. Reviewer judges each artifact. Blockers send it back to its author with the feedback, for a bounded number of rounds; suggestions are kept as notes.
  5. Coordinator assembles the harness and its README, including anything the reviewer still rejected when the revision budget ran out.

Every agent follows the same pattern, which is what keeps small local models reliable:

sequenceDiagram

participant A as Agent participant M as LLM participant C as Code checks A->>M: task + JSON schema (constrained decoding on Ollama) M-->>A: proposal (bodies, cases, scenarios, records) A->>C: validate against the spec alt problems found C-->>A: exact errors, e.g. "listPets 200: 'id' is a required property" A->>M: fix these problems M-->>A: corrected proposal end A->>A: keep valid items, fall back to deterministic ones for the rest

Things code guarantees, so the model never has to:

  • Request matching, URL patterns, priorities, and path-parameter types in the stubs.
  • Response bodies valid against their schemas.
  • Test inputs that route (valid path parameters, required query parameters), success cases that use ids that exist, 404 cases that use ids that do not.
  • Authentication from the spec's security schemes.
  • Chaos scenarios that are internally consistent (a "flaky" failure must recover, a rate limit is a 429, a partial outage leaves some endpoints up).
  • Reviewer findings that cite real items, and blockers only on what the author controls.

Install

pip install api-shakedown              # local models via Ollama; includes the MCP server

pip install "api-shakedown[cloud]" # plus OpenAI and Anthropic

Or use the Docker image, which includes everything: see Docker.

Generated harnesses need Docker (for WireMock) and Python for their tests.

Usage

shakedown doctor                     Check the LLM provider is reachable and ready

shakedown inspect SPEC [--json] Show the operations the agents will see shakedown run SPEC [options] Generate a harness shakedown version

shakedown run options:

OptionDefault
--out PATHshakedown-outputWhere to write the harness (refuses a non-empty directory)
--offlineoffNo LLM: deterministic output in seconds

| --no-review | review on | Skip the revie

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx