ワンクリックで
capture-fixture
Capture a live API response as a JSON test fixture for a given service and endpoint
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Capture a live API response as a JSON test fixture for a given service and endpoint
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | capture-fixture |
| description | Capture a live API response as a JSON test fixture for a given service and endpoint |
| disable-model-invocation | true |
Capture a real API response and save it as a JSON fixture for TDD testing.
/capture-fixture <service> <description>
Examples:
/capture-fixture scryfall card lookup for Muldrotha/capture-fixture spellbook combos for Muldrotha/capture-fixture 17lands card ratings for LRW PremierDraft/capture-fixture edhrec commander page for MuldrothaIdentify the endpoint from docs/SERVICE_CONTRACTS.md based on the service and description.
Make the request using curl or python -c with httpx. Include required headers:
User-Agent: mtg-mcp-server/<version> and Accept: application/jsonAccept: application/jsonSave the response to tests/fixtures/<service>/:
card_muldrotha.json, search_sultai_commander.json, card_not_found.json)jq . or python -m json.toolCapture error responses too — 404s, rate limits, etc. are valuable fixtures.
Show the user:
| Service | Base URL | Key Endpoints |
|---|---|---|
| scryfall | https://api.scryfall.com | /cards/named?exact=, /cards/search?q=, /cards/{id}/rulings |
| spellbook | https://backend.commanderspellbook.com | /api/variants/?q=, /api/estimate-bracket/ |
| 17lands | https://www.17lands.com | /card_ratings/data?expansion=&format= |
| edhrec | https://json.edhrec.com | /pages/commanders/{slug}.json, /pages/cards/{slug}.json |