Gate your MCP deploy in GitHub Actions

Check client compatibility and breaking tool changes before you release a remote MCP server. Copy the workflow and read the result in a PR comment.

Check whether your endpoint is ready for each client mcptest profiles (Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex, Gemini CLI, Windsurf and others), and whether this deploy breaks agents holding the previous tool list.

Copy this workflow

Create .github/workflows/mcp-gate.yml in your server repository. Deploy a reachable preview endpoint first, then replace the example URL.

name: MCP release gate
on: [pull_request, workflow_dispatch]
permissions:
  contents: read
  pull-requests: write
jobs:
  gate:
    runs-on: ubuntu-latest
    steps:
      - uses: integry/mcptest@v1
        with:
          endpoints: https://mcp.example.com/mcp
          baseline: none
          fail-on: blocked
          comment: 'true'
      - uses: actions/upload-artifact@v7
        if: always()
        with:
          name: mcptest-reports
          path: mcptest-reports/

The maintainer creates v1 when publishing. Until then use a reviewed commit SHA; pin a full SHA for reproducible production gates. The action sets up Node 22 and installs itself.

Compare with the last release

Start with baseline: none. Then use baseline: published to compare with the latest published report for the same endpoint, or supply a previous release JSON path. Missing baselines fail closed. Only publish from trusted release jobs if published history should represent the last release.

Set publish: true to make the redacted report public and include a permalink. Publishing is off by default. Use secret environment variable names in bearer-token or api-key, never literal credentials.

Example PR comment

In this example, a newly required input on search blocks the deploy even though every client profile shown is compatible or compatible with caveats. Each finding links to the guide section that explains its rule. With publish: true, the comment also links the published report.

## mcptest: blocked — gate failed

[Remote MCP release gate](https://mcptest.io/ci)

### https://mcp.example.com/mcp

Decision: **blocked**

| Client | Compatibility |
| --- | --- |
| claude-ai | compatible-with-caveats |
| chatgpt | compatible |
| cursor | compatible |
| codex-cli | compatible |

Browser CORS and interactive OAuth remain unverified in headless CI; these are evidence-based verdicts, not client application launches.

Context cost vs baseline: ≈32 → ≈59 estimated tokens \(+27, +84%\)

- lookup: added \(≈17, +17\)
- search: ≈32 → ≈42 \(+10\)

At least one report predates the per-tool breakdown, so both are estimated from the stored names, descriptions and input schemas; output schemas and annotations are not included.

Changes: 1 breaking, 1 safe

- **search** (breaking)
  - [Input "filter" is now required](https://mcptest.io/learn/which-mcp-tool-changes-break-clients#adding-a-required-input) — breaking
- **lookup** (safe)
  - [Tool added](https://mcptest.io/learn/which-mcp-tool-changes-break-clients#changes-that-are-safe) — safe

- Output schemas were not recorded in both snapshots, so output contracts were not compared.
- Tool annotations were not recorded in both snapshots, so behavior hints were not compared.

Grant pull-requests: write to update a single sticky PR comment. Fork PRs without permission skip commenting and retain their job summary and artifacts.

Run both readiness and conformance

The official MCP conformance suite tests against the specification. Run it alongside mcptest for spec checks. mcptest adds client-profile verdicts, OAuth evidence, breaking-change classification and optional session resilience. It does not launch client applications, prove browser CORS from Node, or certify conformance.

Read the CI guide for secrets, required clients, baseline limitations and rollout advice. Action reference lists every input and output.