OpenAPI Review MCP
Provides tools to compare OpenAPI contracts across local Git revisions and retrieve endpoint schemas at a specific ref, using Git commits and worktrees to support contract review.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
OpenAPI Review MCP
Review a backend contract change against the client code in your workspace. This local MCP server compares committed OpenAPI specs and supplies evidence for the coding assistant to locate affected call sites.
What you can ask
Compare
openapi.yamlbetweenmainandHEAD. Flag breaking changes, inspect the new contract for each affected operation, then find the callers in this workspace. Cite the spec and the caller separately.
The MCP supplies the Git revisions, compatibility findings, and operation schemas. The assistant searches for call sites using its workspace access.
Related MCP server: repopilot
Install
Requirements: Node.js 22+, Git, and oasdiff.
CI pins oasdiff 1.39.0. Install it from its official release or with
brew install oasdiff on macOS. Ensure the executable is on the MCP host's
PATH, or define OASDIFF_BIN with its absolute path.
git clone https://github.com/cristiandev1/openapi-review-mcp.git
cd openapi-review-mcp
npm ci
npm run buildConfigure the host to launch node with two absolute paths: one to
dist/server.js in this repository and one to the Git worktree with the
API contract. Keep the MCP installation path separate from the target worktree.
Codex
Add to ~/.codex/config.toml or use the desktop app's MCP server settings.
[mcp_servers.openapi_review]
command = "node"
args = ["/absolute/path/openapi-review-mcp/dist/server.js", "--repo", "/absolute/path/api-worktree"]Claude Code
claude mcp add --transport stdio openapi-review -- node /absolute/path/openapi-review-mcp/dist/server.js --repo /absolute/path/api-worktreeGitHub Copilot in VS Code
Add the server as a local stdio command in Copilot's MCP configuration. The
workspace-root portable Copilot configuration is .mcp.json.
{
"mcpServers": {
"openapi-review": {
"type": "stdio",
"command": "node",
"args": [
"/absolute/path/openapi-review-mcp/dist/server.js",
"--repo",
"/absolute/path/api-worktree"
],
"tools": ["*"]
}
}
}Environment | Verification |
MCP TypeScript SDK client | Verified in GitHub Actions with oasdiff 1.39.0 |
Codex | Setup documented. Native host run pending. |
Claude Code | Setup documented. Native host run pending. |
GitHub Copilot in VS Code | Setup documented. Native host run pending. |
Reproduce the review
From this repository, run npm run demo. The command prints a new temporary
Git worktree with main, compatible, and feature/require-currency branches.
Use that directory as the server's --repo path and open it as the assistant's
workspace. Submit the prompt above.
Expected evidence:
The new contract for
POST /ordersrequirescurrency, whose allowed values areUSDandEUR.Comparing
mainwithcompatiblereturns no breaking changes or warnings.The demo's
client.mjsstill sends onlyproductId. The assistant should cite that file when it explains the change needed by this caller.
Tool contracts
Tool | Required arguments | Result |
|
| Resolved commits, breaking-change flag, findings, and available source locations |
|
| Commit, operation pointer, effective parameters, request body, responses, and referenced components |
Both tools return structured data and equivalent JSON text for successful calls
with ok: true. Domain failures return JSON text with ok: false, a stable code, and a
message. Host input-shape validation follows the MCP SDK's error handling.
Treat contract findings as possible client impact until a caller is found.
The server reads local commits. Fetch the base branch yourself if it is absent. It supports self-contained OpenAPI 3.0 and 3.1 specs in YAML or JSON and internal JSON Pointer references. External references, YAML aliases, uncommitted files, remote execution, and hosted transports are outside this version's scope.
How it is built
The specification defines the result and acceptance criteria. The plan records the implementation decisions. The tasks trace them to tests. AGENTS.md is the entry point for coding agents, and CHANGELOG.md tracks user-facing changes.
Run npm run check to build and run the full suite against an installed oasdiff.
Use SKIP_REAL_OASDIFF=1 npm run check only to exercise the remaining cases
when the executable is unavailable.
MIT licensed.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Detect breaking changes, generate changelogs, diff, and validate OpenAPI specs.
Diff two npm/PyPI versions or lockfiles: new install scripts, network/shell/eval calls, new deps.
Ask a codebase what calls what: search, blast radius, paths between symbols, and diffs.
Check exact npm/PyPI upgrades for evidence-backed breaking changes; query APIs and components.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables deterministic behavioral regression review of pull-request diffs by checking changed code against approved incident-derived contracts. It exposes read-only tools to assess diffs and pull requests, list and fetch contracts, and report outcomes over stdio without mutating repositories.MIT
- AlicenseAqualityBmaintenanceLocal, deterministic review of Git changes for coding agents: weakened tests and CI gates, security-boundary changes, input-to-sink flows, and blast radius. Runs the RepoPilot Rust CLI over stdio; no source leaves the machine and no model is called.6294 npm24Apache 2.0
- AlicenseBqualityBmaintenanceLocal OpenAPI contract checks and breaking-change detection between spec versions for AI coding agents.2274 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to audit git diffs, scan for leaked secrets and unsafe APIs, detect breaking changes, triage issues, generate changelogs, and assess repository hygiene through native stdio JSON-RPC tools.7Apache 2.0