Integrations
Use Breakra wherever your agent works.
The same deterministic engine in your terminal, your agent's tool list, your CI and over HTTP. The local paths are free and send nothing anywhere.
Claude Code
Add the MCP server once; your agent gets the check_openapi_change tool.
claude mcp add --scope user breakra -- npx -y breakra mcp
Cursor and any MCP client
Most MCP clients take a JSON server entry like this one (in Cursor: ~/.cursor/mcp.json). The server speaks MCP over stdio and needs no key or wallet.
{
"mcpServers": {
"breakra": { "command": "npx", "args": ["-y", "breakra", "mcp"] }
}
}
Agent skill
Any agent that can read a URL can follow breakra.dev/skill.md: when to call Breakra, how to pay safely, and how to act on each finding. It's also listed on skills.sh and Tessl.
read breakra.dev/skill.mdGitHub Actions
Fail a pull request when its OpenAPI file breaks callers. This is a plain workflow using the CLI; an official GitHub Action is on the roadmap. The same file, tested, is in examples/github-actions. Exit codes: 0 below --fail-on, 1 at or above it, 2 error (unchecked, never "safe").
# Breakra: fail a pull request when its OpenAPI contract may break callers.
# Copy this file to .github/workflows/breakra.yml, then set SPEC (and the paths filter) to your contract.
# Free: runs the npm CLI on the runner; nothing is sent anywhere. Docs: https://breakra.dev/integrations
name: API contract
on:
pull_request:
paths:
- openapi.yaml # keep in sync with SPEC
permissions:
contents: read
jobs:
breakra:
runs-on: ubuntu-latest
env:
SPEC: openapi.yaml # your OpenAPI 3.0/3.1 contract, JSON or YAML
FAIL_ON: block # block: fail on breaking changes; review: also on potentially breaking and unknown
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Compare the contract with the base branch
env:
BASE: ${{ github.base_ref }}
run: |
if ! git cat-file -e "origin/$BASE:$SPEC" 2>/dev/null; then
echo "$SPEC is new on this branch: nothing to compare."
exit 0
fi
git show "origin/$BASE:$SPEC" > "$RUNNER_TEMP/base-contract"
npx -y breakra@0.2.2 check "$RUNNER_TEMP/base-contract" "$SPEC" --fail-on "$FAIL_ON"
Scripts and other CI
--json prints exactly what the hosted API returns, so scripts, pre-commit hooks and other CI systems can read one stable shape. --use limits the verdict to the operations your code calls.
npx -y breakra@0.2.2 check old.yaml new.yaml --json > result.json
npx -y breakra@0.2.2 check old.yaml new.yaml --use "GET /orders/{id}" --fail-on review
Paying agents (x402)
Agents without Node, or that prefer HTTP, can pay $0.02 USDC on Base per check with x402. No account or API key. Only a 200 is charged; Breakra's own errors never are. Read the payment rules in skill.md before signing.
- Endpoint
POST https://x402.bankr.bot/0xb98f0de777eea8c481b64e33d3e0066cea38fa91/breakra-analyze- Also at
POST https://breakra.dev/api/analyze(forwarded unchanged)- Contract
- /openapi.json
- Client
examples/client.tschecks the terms, signs once and never re-sends with a new payment
A stable contract to build on
Versioned
Every result names its engine_version and rule_set_version. Classification changes bump the rule set; response-shape changes bump the engine.
Deterministic
The same inputs give the same findings and the same analysis_id, locally and hosted, so a result can be kept with the change that caused it.
Stable values
verdict: safe · review · block. compatibility: breaking · potentially_breaking · unknown · compatible · non_contract. Each finding has a stable rule id (RULES.md).
Fails closed
Invalid or unsupported input is an error with a JSON error.code, never a verdict. unknown is never treated as safe.
Building something on Breakra? Tell us.