MCP.so
ログイン
APImanual

API Contract Until Match

Loop until API responses match the OpenAPI or JSON Schema contract — catch drift between docs and implementation.

起動プロンプト

Start the "API Contract Until Match" loop.

Goal: API implementation matches the published contract
Max iterations: 10
Between iterations run: npm run test:contract
Exit when: contract test suite exits 0

Step 1: Run contract tests. Fix each schema/response mismatch with minimal diffs, then re-run.

Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.

基本情報

カテゴリ

API

目標

API implementation matches the published contract

最大反復回数

10

検査コマンド

npm run test:contract

退出条件

contract test suite exits 0

対応エージェント

Cursor

手順

  1. 1

    Run contract tests

    Run contract tests against openapi.yaml or schema fixtures. List every mismatch with endpoint and field.

    npm run test:contract
  2. 2

    Fix implementation or spec

    Fix the smallest change: update handler types/validation or correct the spec if the code is canonical.

他のAPIのループ