AgentStack
MCP verified MIT Self-run

Mcp Probe

mcp-k08200-mcp-probe · by k08200

CI readiness gate for MCP servers — handshake, discovery, tool-call dry-runs, HTTP/SSE, GitHub Actions output

No reviews yet
0 installs
2 views
0.0% view→install

Install

$ agentstack add mcp-k08200-mcp-probe

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Mcp Probe? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

mcp-probe

[](https://github.com/k08200/mcp-probe/actions/workflows/ci.yml) [](https://www.npmjs.com/package/@k08200/mcp-probe) [](LICENSE)

Self-report is not a receipt.

mcp-probe is a CI readiness gate for MCP servers. It checks what actually happened at runtime, not just what a server advertised through tools/list.

An MCP server can start, advertise a clean schema, and still fail every real tool call because auth, scopes, downstream permissions, response shapes, or environment setup are broken.

mcp-probe gives CI an independent receipt for the path an agent actually depends on:

  • MCP initialize handshake
  • tools/list discovery
  • real tools/call dry-runs
  • sidecar sample inputs for meaningful calls
  • contract assertions for result shape, JSON Schema, row limits, stable error codes, and leak checks
  • GitHub Actions summaries and machine-readable JSON output
  • JSON receipt artifacts for independent CI evidence

Tested Servers

Smoke-tested targets:

| Server | Coverage | |---|---| | @modelcontextprotocol/server-memory | pass: handshake, tools/list, schema validation; 9 tools | | @modelcontextprotocol/server-sequential-thinking | pass: handshake, tools/list, schema validation; 1 tool | | @modelcontextprotocol/server-everything | pass: handshake, tools/resources/prompts discovery, schema validation; 14 tools, 7 resources, 4 prompts; executable contract recipe in examples/recipes/everything.config.json | | examples/fixtures/stdio-mcp-server.js | tool calls, auth warning, DB read contract, denied write, JSON Schema, receipt artifact |

Trying it on another MCP server? Add the result to #4 Tested MCP servers.

Looking For Real-World Recipes

The core tool is useful only if it reflects real MCP failure modes. If you run MCP servers in agent workflows, recipe contributions are especially useful for:

| Server | What to validate | Issue | |---|---|---| | Datadog | OAuth/scopes, logs/metrics read paths, auth handoff failures | #1 | | Supabase | read-only roles, row limits, tenant/project scope, denied writes | #2 | | Gmail | OAuth browser handoff, stable auth errors, no private email leaks | #3 |

Do not paste secrets. Recipes should use placeholders such as ${DATADOG_MCP_TOKEN} and read-only sample calls.

Want to contribute a recipe for another server? Start with [docs/RECIPE_GUIDE.md](docs/RECIPE_GUIDE.md) and [examples/recipes/TEMPLATE.tools.json](examples/recipes/TEMPLATE.tools.json).

Quick Start

npx @k08200/mcp-probe@latest @modelcontextprotocol/server-memory

For CI, scaffold a config, sidecar, and workflow:

npx @k08200/mcp-probe@latest init \
  --target @your-org/your-mcp-server \
  --discover \
  --lock-tools \
  --github-actions

Then run:

npx @k08200/mcp-probe@latest --config mcp-probe.config.json --github-summary --fail-on-warn

init --discover uses the advertised input schemas to seed sidecar samples, including defaults, enum values, numeric minimums, nested objects, and arrays. Review those samples before running them in CI; generated inputs are a starting point, not proof that the call is safe for your environment. Do not run generated sidecars against production credentials until mutating, admin, export, or environment-inspection tools have been removed or replaced with safe read-only samples.

When discovery succeeds, the generated config includes expectedTools so CI fails if a required tool disappears. Add --lock-tools to also generate allowedTools, which fails CI when unexpected tools appear.

Commands

# Check one server
mcp-probe @modelcontextprotocol/server-memory

# Check a local server
mcp-probe ./server.js

# Check a remote Streamable HTTP server
mcp-probe https://mcp.example.com/mcp --header "Authorization: Bearer $TOKEN"

# Batch-check from config
mcp-probe --config mcp-probe.config.json

# Persist an independent readiness receipt artifact
mcp-probe --config mcp-probe.config.json --receipt-file mcp-probe.receipt.json

# Call tools, not just tools/list
mcp-probe @scope/server --probe-tools

# Use meaningful sidecar inputs
mcp-probe @scope/server --tools-file .mcp-probe.json

# Preflight local mcp-probe setup
mcp-probe doctor

# Make warnings fail CI too
mcp-probe --config mcp-probe.config.json --fail-on-warn

# Create missing config/sidecar/workflow files
mcp-probe doctor --fix --target @scope/server

# Scaffold CI config from the server's live tools/list catalog
mcp-probe init --target @scope/server --discover --lock-tools --github-actions

Config

Use mcp-probe.config.json when a repository depends on one or more MCP servers:

{
  "timeoutMs": 10000,
  "servers": [
    {
      "name": "datadog",
      "target": "https://mcp.example.com/mcp",
      "transport": "http",
      "headers": {
        "Authorization": "Bearer ${DATADOG_MCP_TOKEN}"
      },
      "expectedTools": ["logs_query"],
      "forbiddenTools": ["delete_dashboard", "rotate_api_key"],
      "toolsFile": "./datadog.tools.json"
    }
  ]
}

Relative local target and toolsFile paths are resolved from the config file directory.

Use expectedTools for tools that must be advertised, allowedTools for an exact allow-list, and forbiddenTools for dangerous tools that must not appear in low-trust configs. When expectedTools and a toolsFile are both set, every expected tool must also have a sidecar sample input so CI proves the tool is actually dry-run.

Run:

mcp-probe --config mcp-probe.config.json --github-summary --fail-on-warn

Sidecar Inputs

Auto-generated tool inputs mostly test schema validation. Production CI should use sidecar inputs that reach real read-only paths.

When a sidecar is provided, mcp-probe calls only the tools listed in that file. Tools that are discovered but not listed are not called.

{
  "tools": {
    "logs_query": {
      "input": {
        "query": "service:web status:error",
        "timeframe": "1h"
      },
      "retry": {
        "attempts": 3,
        "delayMs": 1000,
        "retryOn": [429, 500, 502, 503, 504, "timeout"]
      },
      "expect": {
        "status": "pass",
        "not_error_code": [401, 403],
        "requiredFields": ["source", "freshness"],
        "maxRows": 100,
        "jsonSchema": {
          "type": "object",
          "required": ["source", "freshness"],
          "properties": {
            "source": { "type": "string" },
            "freshness": { "type": "string" }
          }
        }
      }
    }
  }
}

Supported assertions:

| Assertion | Purpose | |---|---| | status | Expected call status: pass, fail, or warn. | | requiredFields | Fields that must appear somewhere in the result payload. | | maxRows | Maximum allowed row count from metadata or row arrays. | | errorCode | Stable error code expected in an error response. | | contains | Text snippets that must appear. | | notContains | Text snippets that must not appear, useful for leak checks. | | not_error_code | HTTP/status codes treated as warnings, usually auth handoff codes. | | jsonSchema | JSON Schema subset for validating the observed tool result shape. Supports type, required, properties, items, enum, additionalProperties, minimum, maximum, minLength, maxLength, and pattern. |

Use retry for transient downstream failures only. Retry attempts are recorded in JSON output and receipt artifacts so flaky dependencies are visible instead of silently hidden.

Doctor

doctor checks whether the repository is ready to run mcp-probe in CI:

mcp-probe doctor

It validates:

  • Node.js version
  • config file shape
  • sidecar file shape
  • expectedTools sidecar sample coverage
  • GitHub Actions workflow presence, strict CI flags, receipt generation, and artifact upload
  • whether mcp-probe is actually executed from a workflow run: step

doctor --fix creates missing files. It does not rewrite existing workflows unless --force is explicitly passed. When a config already declares expectedTools, missing sidecar files are scaffolded with those tool names instead of a generic placeholder.

mcp-probe doctor --fix --target @your-org/your-mcp-server

GitHub Actions

name: MCP Probe

on:
  pull_request:
  push:
    branches: [main]

jobs:
  mcp-probe:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: actions/setup-node@v6
        with:
          node-version: 20
      - run: |
          npx @k08200/mcp-probe@latest \
            --config mcp-probe.config.json \
            --github-summary \
            --fail-on-warn \
            --receipt-file mcp-probe.receipt.json
      - uses: actions/upload-artifact@v4
        with:
          name: mcp-probe-receipt
          path: mcp-probe.receipt.json

Receipt Artifacts

--receipt-file writes a redacted JSON artifact containing the observed handshake, tool catalog, dry-run calls, contract assertions, and final status.

Use it when CI needs durable evidence of what actually happened, not just terminal output:

mcp-probe --config mcp-probe.config.json --receipt-file mcp-probe.receipt.json

Exit Codes

| Code | Meaning | |---|---| | 0 | Passed, or warnings only unless --fail-on-warn is set | | 1 | One or more checks failed |

Warnings do not fail CI by default. They are intended for degraded states such as OAuth handoff or permission issues that should be visible but may not block every deploy. Use --fail-on-warn for production readiness gates where auth handoff, permission warnings, or incomplete receipts should block the workflow.

Development

npm install
npm run typecheck
npm test
npm run build

License

MIT

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

  • Author: k08200
  • Source: k08200/mcp-probe
  • License: MIT
  • Homepage: https://www.npmjs.com/package/@k08200/mcp-probe

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.