Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Turn an OpenAPI spec into WireMock stubs, contract tests and chaos scenarios, on local LLMs.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
SHAKEDOWN_PROVIDER, SHAKEDOWN_MODEL, SHAKEDOWN_OLLAMA_URL, OPENAI_API_KEY, ANTHROPIC_API_KEYค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"api-shakedown": {
"command": "uvx",
"args": [
"api-shakedown",
"mcp"
],
"env": {
"SHAKEDOWN_PROVIDER": "ใส่ค่าของคุณ",
"SHAKEDOWN_MODEL": "ใส่ค่าของคุณ",
"SHAKEDOWN_OLLAMA_URL": "ใส่ค่าของคุณ",
"OPENAI_API_KEY": "ใส่ค่าของคุณ",
"ANTHROPIC_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add api-shakedown --env SHAKEDOWN_PROVIDER='ใส่ค่าของคุณ' --env SHAKEDOWN_MODEL='ใส่ค่าของคุณ' --env SHAKEDOWN_OLLAMA_URL='ใส่ค่าของคุณ' --env OPENAI_API_KEY='ใส่ค่าของคุณ' --env ANTHROPIC_API_KEY='ใส่ค่าของคุณ' -- uvx api-shakedown mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"api-shakedown": {
"command": "uvx",
"args": [
"api-shakedown",
"mcp"
],
"env": {
"SHAKEDOWN_PROVIDER": "ใส่ค่าของคุณ",
"SHAKEDOWN_MODEL": "ใส่ค่าของคุณ",
"SHAKEDOWN_OLLAMA_URL": "ใส่ค่าของคุณ",
"OPENAI_API_KEY": "ใส่ค่าของคุณ",
"ANTHROPIC_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"api-shakedown": {
"type": "stdio",
"command": "uvx",
"args": [
"api-shakedown",
"mcp"
],
"env": {
"SHAKEDOWN_PROVIDER": "ใส่ค่าของคุณ",
"SHAKEDOWN_MODEL": "ใส่ค่าของคุณ",
"SHAKEDOWN_OLLAMA_URL": "ใส่ค่าของคุณ",
"OPENAI_API_KEY": "ใส่ค่าของคุณ",
"ANTHROPIC_API_KEY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
SHAKEDOWN_PROVIDER envSHAKEDOWN_MODEL envSHAKEDOWN_OLLAMA_URL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub anzar-ahsan-commits ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: OPENAI_API_KEY, ANTHROPIC_API_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.3) เข้า registry 14 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv), Docker ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Aiterm MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Persistent terminals and one launcher for Claude, Codex, Grok, Cursor, and Antigravity harnesses.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.*
Teams that consume an API need three things that are tedious to write by hand and go stale quickly:
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.
| Situation | Typical teams | What API Shakedown gives you |
|---|---|---|
| Building before the backend exists | Frontend, mobile, partner integrators | A 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, insurance | Vendor 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 failure | Microservice teams, SRE game days | Switch 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 release | API owners, platform and public-API teams | Contract tests run against a real deployment in CI and fail when the implementation stops matching its spec. |
| Hardening input validation | Any API team | Robustness probes check that malformed requests get a 4xx, never a 500. A complement to a security review, not a replacement. |
| Regulated or offline environments | Banking, healthcare, government | Everything runs on a local model: the spec never leaves the machine, where many AI tools cannot be used at all. |
| Migrating or rewriting a service | Legacy modernisation | Generate contract tests from the existing spec and run them against the new implementation to confirm it behaves the same. |
| Working through an AI assistant | Developers using Claude and other MCP clients | The 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.
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)
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
| Part | What it does |
|---|---|
| Stubs | Every 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 tests | Happy 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 probes | Invalid 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 scenarios | Seven baseline failures every client should survive, plus scenarios the LLM targets at your API. |
| Test data | Realistic, consistent records per entity, shared by the stubs and the tests, plus edge-case values for every field. |
Baseline chaos scenarios:
| Scenario | What happens | A resilient client should |
|---|---|---|
total-outage | Every endpoint returns 503 | Fail fast, back off, not hammer the API |
slow-responses | Every response takes 3 s | Stay responsive |
timeouts | Every response takes 30 s | Give up on its own and free resources |
connection-resets | Connections are reset | Retry idempotent calls with backoff |
flaky-start | First 2 calls fail with 503, then recover | Retry and succeed on the third attempt |
rate-limited | First 3 calls return 429 | Honour Retry-After |
truncated-json | Success bodies are cut off mid-JSON | Report 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*.
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"/]
$refs safely, and splits operations into prompt-sized chunks so large specs fit small models.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:
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.
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:
| Option | Default | |
|---|---|---|
--out PATH | shakedown-output | Where to write the harness (refuses a non-empty directory) |
--offline | off | No LLM: deterministic output in seconds |
| --no-review | review on | Skip the revie
ตัดมาแค่ช่วงต้น อ่านต่อใน repo