CodeRifts API Governance
OfficialBackstage plugin for API governance, providing risk scorecards and breaking change detection directly in Backstage.
CrewAI integration enabling pre-flight governance checks on API changes before tool calls, with blast radius and agent impact analysis.
GitHub App that posts a risk scorecard on every pull request, allowing API governance at PR time.
LangGraph integration enabling pre-flight governance checks on API changes before tool calls, with blast radius and agent impact analysis.
CodeRifts — API Governance
Risk-aware API compatibility governance for AI agents and CI. Before a change merges, CodeRifts predicts whether it will cause a real production problem, who breaks, by what pattern, at what business cost, and whether blocking is justified.
The market shows you what changed. CodeRifts tells you how dangerous it is, who it affects, when deployment should be blocked, and how much it will cost.
Hosted MCP server:
https://app.coderifts.com/mcpManifest:
https://coderifts.com/mcp.jsonOfficial MCP Registry:
io.github.coderifts/api-governanceWebsite:
https://coderifts.comLive demo PR:
https://github.com/coderifts/demo/pull/4
Claude Code plugin
Install the CodeRifts marketplace, then the api-governance plugin (MCP server + skill).
Requires CODERIFTS_API_KEY for tool calls.
/plugin marketplace add coderifts/api-governance
/plugin install api-governance@coderiftsLocal checkout (after clone):
/plugin marketplace add .
/plugin install api-governance@coderiftsThe plugin wires the hosted MCP at https://app.coderifts.com/mcp and the
api-governance skill. Tools exposed: preflight_change_set, verify_receipt,
get_decision_details only.
Related MCP server: @routescore/mcp
OpenAI / Codex package
Codex plugin package (measured OpenAI Codex layout: .codex-plugin/plugin.json +
.mcp.json + skills/ + AGENTS.md). Same hosted MCP and the same three tools
as the Claude plugin — no fourth tool.
Path | Role | Source of truth |
| Codex plugin manifest | Codex |
| Streamable HTTP MCP wiring | Same endpoint as Claude |
| Skill + tool list | Trigger wording from agent-setup rule; tool names/descriptions from generated |
| Agent rules file | Generated — |
| OpenAI Agents SDK instructions | Generated — same generator |
| Codex marketplace entry | Codex marketplace schema |
Local checkout in Codex (team marketplace path):
# From a clone of this repo, point Codex at .agents/plugins/marketplace.json
# then install api-governance-openai (UI / plugin install — see Codex plugin docs).Validate package consistency (manifest, tool parity, AGENTS.md empty-diff vs regeneration):
node scripts/validate-openai-package.jsRequires a local ~/coderifts-app checkout (or CODERIFTS_APP_ROOT) for the AGENTS.md
regeneration check. Directory listing / account submission steps are not automated here.
GitHub Copilot kit
Reference copies of the generated Copilot MCP configs + instructions (single source:
coderifts-app generators). Same hosted MCP and the same three tools — no fourth tool.
Primary install (living command — prefer this over copying from the kit):
npx coderifts copilot-setup
# optional: --out <dir> --check (drift-gate) --forceAgent-host instructions (including .github/copilot-instructions.md) come from:
npx coderifts agent-setupThree Copilot surfaces (root keys differ)
From the generated guide (copilot/docs/copilot-mcp.md — do not re-author this table):
Surface | Config location | Root key | Auth |
VS Code / Copilot Chat |
|
|
|
Copilot cloud agent + code review | Repo Settings → Copilot → MCP servers (paste JSON) |
| Agents secret |
Custom agent (org/enterprise) | Agent profile |
|
|
Tools allowlisted everywhere: preflight_change_set, verify_receipt, get_decision_details.
Vendored reference tree (copilot/)
Path | Role | Source of truth |
| VS Code / Copilot Chat | Generated — |
| Cloud agent paste JSON ( | Generated — same |
| Custom agent YAML frontmatter | Generated — same |
| Install guide + surfaces table | Generated — same |
| Copilot coding-agent instructions | Generated — |
| Provenance + re-sync commands | Packaging note (this repo) |
Validate empty-diff vs regeneration + 3-tool discipline:
node scripts/validate-copilot-kit.jsRequires a local ~/coderifts-app checkout (or CODERIFTS_APP_ROOT). The kit is a
communication / distribution mirror — npx coderifts copilot-setup remains the install path.
MCP server
CodeRifts runs as a hosted Streamable HTTP MCP server. Any MCP-compatible agent (Claude Desktop, Cursor, LangGraph, AutoGen, custom) can connect and run governance checks before tool calls or merges.
Endpoint:
https://app.coderifts.com/mcpTransport: Streamable HTTP (protocol version
2025-06-18)Server:
CodeRifts API Governancev1.0.0Auth:
initializeandtools/listare open (no key);tools/callrequires an API key - sendAuthorization: Bearer <key>orX-API-Key: <key>.
Connect
{
"mcpServers": {
"coderifts": {
"url": "https://app.coderifts.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_CODERIFTS_API_KEY>"
}
}
}
}Verify the connection
curl -sS https://app.coderifts.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'Expected: a JSON-RPC result with serverInfo and capabilities.tools.
Try without a key
Two public endpoints need no auth at all:
curl -s "https://app.coderifts.com/api/v1/public/preflight?url=https://petstore3.swagger.io/api/v3/openapi.json"
curl -s -X POST https://app.coderifts.com/api/v1/public/actionguard-check \
-H "Content-Type: application/json" \
-d '{"filename":".github/workflows/ci.yml","base_content":null,"head_content":"jobs:\n b:\n steps:\n - uses: some-owner/some-action@main"}'Both return 200 with a decision field.
Tools
The hosted MCP server exposes exactly three tools (from live tools/list / generated mcp.json):
Tool | What it does |
| Preflight a complete base→head change set of contract artifacts. Returns risk score and breaking-change analysis. With |
| Verify a signed chain-receipt you already hold: signature authenticity, body binding, and (when lifecycle indices are available) whether it is currently authorized for a stated operation/target. Requires |
| Retrieve a past decision by |
On the authorize path of preflight_change_set, the decision envelope includes fields such as decision, execution_action, risk_score, safe_for_agent, and related analysis fields so agent runtimes can branch on a stable contract. Prefer branching on execution_action when present.
How agents use it
Before merging an API change (or before an agent acts on a contract change), call
preflight_change_setwith full before/after artifacts andpreflight_mode: "authorize"(pluscontext.operation).Read
execution_action/decision: CONTINUE/ALLOW proceeds, WARN flags, REQUIRE_APPROVAL pauses for a human, STOP/BLOCK stops the merge / aborts the agent step.If you already hold a receipt and only need to confirm it is still valid, call
verify_receipt— do not re-preflight unless the change set or operation changed.To inspect a prior decision by id, call
get_decision_details.
Decision logic is deterministic: a single breaking change is never silently allowed. Tests can pass and still ship a broken contract — CodeRifts checks the contract itself at PR time.
Also available
GitHub App (zero-config, one-click install) on the GitHub Marketplace - posts a four-gate governance report (API contract, schema-vs-code, auth surface, workflow actions) on every pull request.
SDKs:
@coderifts/sdk(TypeScript / npm),coderifts-sdk(Python / PyPI).CLI:
coderifts(npm) with a pre-push hook.Integrations: Backstage plugin, VS Code extension, LangGraph / AutoGen / CrewAI.
Links
Website: https://coderifts.com
Decision Spec: https://coderifts.com/decision-spec/
API reference: https://app.coderifts.com/api/docs
Manifest: https://coderifts.com/mcp.json
Receipt verifier (verify our receipts without trusting us): https://github.com/coderifts/receipt-verifier
Contact: hello@coderifts.com
License
See LICENSE.
This server cannot be installed
Maintenance
Related MCP Servers
AlicenseAqualityBmaintenanceMCP server for AI-agent governance using trust scoring, behavioral signals, and pre-flight action checks.10381Apache 2.0
@routescore/mcpofficial
AlicenseAqualityBmaintenanceMCP server that exposes Routescore's public API for risk assessment, including MEV cover, bridge refund, and swap checks, as tools for AI agents.866MIT- Alicense-qualityCmaintenanceMCP server that provides impact preview and approval workflow for AI agent actions, allowing users to see diffs and risk assessments before any changes are executed.1MIT
- Alicense-qualityAmaintenanceAI code reviews and git activity digests with machine-readable risk scoring, available as an MCP server for use within an agent session.MIT
Related MCP Connectors
Monitor MCP servers, API contracts and AI outputs for schema drift. Alerts on breaking changes.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Security firewall for AI agents — scans MCP calls for injection, secrets, and risks.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/coderifts/api-governance'
If you have feedback or need assistance with the MCP directory API, please join our Discord server