Mcp Probe

io.github.Incultnitollc由 GitHub 账号 Incultnitollc 发布v1.2.0更新于 Oct 24, 2026

Inspect and score any MCP server 0-100 on publishability, schema and protocol before publish.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

一个命令行工具,用于测试 MCP 服务器的工具、资源和提示词,并在发布前给出 0-100 的可发布性评分。

可以做什么
  • 对本地 stdio 或远程 HTTP/SSE 的 MCP 服务器做健康检查,用自动生成的示例参数调用每个工具、资源和提示词。
  • 校验工具 schema,发现缺失描述、必填字段错误和类型格式问题,并汇总为通过/失败记分卡。
  • 按协议、边界情况和描述/元数据等维度给出 0-100 的可发布性评分,可选纳入 npm 包元数据。
  • 录制工具、资源和提示词的契约快照,再对比或门禁变更,归类为破坏性、安全性、新增或信息。
  • 输出 JSON、HTML 或 Markdown 报告,并用退出码接入 CI 流水线和 GitHub Actions。
适用场景
适合 MCP 服务器作者在发布前把自动化、可重复的检查放进测试套件或 CI 门禁;也适合在集成第三方服务器前快速拿到一份评分卡。
运行要求
以 npm 包形式在本地运行,可通过 npx 或全局安装,npm 分发意味着需要 Node.js。目标可以是 stdio 服务器命令,也可以是带可选传输方式和请求头参数的远程 URL。未声明账号或 API 密钥;需要认证的目标要在命令行传入如 Authorization 的请求头。
安装前请注意
工具调用会用自动生成的参数实际调用每个工具,目标服务器可能因此执行真实的写入、发送或删除操作,只应对可信服务器或沙箱使用。契约录制只做列举、不调用工具。认证目标需要在命令行传入令牌请求头,可能留在 shell 历史或 CI 日志中。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Probe,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[mcp-probe — one command to diagnose your MCP server]

mcp-probe

One command to diagnose your MCP server.

Tests every tool, resource, and prompt your server exposes — then gives you a health report with a pass/fail scorecard.

Built on the Anthropic Model Context Protocol (MCP) spec.

Note: Published to npm as @incultnitollc/mcp-probe. The CLI binary is mcp-probe. The unscoped name mcp-doctor on npm is owned by an unrelated tool, so this project ships under a scope. Versions <= 0.2.1 shipped under the deprecated @incultnitostudiosllc scope — install @incultnitollc/mcp-probe instead.

[mcp-probe demo]

npx @incultnitollc/mcp-probe test "npx -y @modelcontextprotocol/server-everything"

Test your MCP server in 30 seconds

CheckDescription
Tool callingCalls every tool with auto-generated sample arguments based on the input schema
Resource readingReads every resource and verifies content is returned
Prompt renderingGets every prompt with sample arguments and verifies messages are returned
Schema validationChecks tool schemas for missing descriptions, broken required fields, malformed types
Health scoringSummarizes everything into a pass/fail scorecard

Install

bash
npm install -g @incultnitollc/mcp-probe

Or run directly:

bash
npx @incultnitollc/mcp-probe test "your-server-command"

Usage

Local stdio server

bash
npx @incultnitollc/mcp-probe test "npx -y @modelcontextprotocol/server-everything"

Remote server (Streamable HTTP)

bash
npx @incultnitollc/mcp-probe test https://your-server.example.com/mcp

Remote server (SSE)

bash
npx @incultnitollc/mcp-probe test https://your-server.example.com/mcp --transport sse

Authenticated remote server

bash
npx @incultnitollc/mcp-probe test https://your-server.example.com/mcp \  --header "Authorization: Bearer $TOKEN"

Options

FlagDescription
--jsonOutput results as JSON
--timeout <ms>Per-operation timeout (default 30000)
--transport <kind>Force stdio, sse, or http (auto-detected from target)
--header <Name: value>Add header to remote transport. Repeatable.

Exit codes

  • 0 — All checks passed
  • 1 — One or more checks failed (useful for CI gates)

JSON output

Use --json to get structured output for automation:

bash
mcp-probe test --json "your-server" | jq '.score'
json
{  "toolsCallable": 12,  "toolsTotal": 13,  "resourcesReadable": 7,  "resourcesTotal": 7,  "promptsGettable": 3,  "promptsTotal": 4,  "schemaErrors": 0,  "schemaWarnings": 1}

How tool calling works

mcp-probe auto-generates arguments for each tool based on its inputSchema:

  • Only required fields get values (safest approach)
  • Uses default values and enum first choices when available
  • Infers smart defaults from field names (url → https://example.com, email → [email protected])
  • Falls back to type-appropriate defaults (string → "test", number → 1, boolean → false)

This means tools with complex required inputs may fail — and that's useful information. It tells you your tool isn't self-contained enough for automated testing.

Publishability score (v1.1.0+)

mcp-probe ships a second, complementary check: a publishability composite that scores your server 0–100 on whether its schemas, descriptions, and metadata are ready for other people to install. Run it as a shorthand:

bash
npx @incultnitollc/mcp-probe score "npx -y @your-scope/your-server" --package ./package.json

Or fold it into a full test run with --publishability:

bash
npx @incultnitollc/mcp-probe test "npx -y @your-scope/your-server" --publishability --package ./package.json

The composite combines three sub-scores — Protocol (does the wire format work), Edge cases (does it handle weird inputs), and Publishability (would a stranger understand your tools) — and a five-axis breakdown across the publishability dimension:

AxisWhat it checks
description-five-axisPer-tool description density across purpose, mutation, side-effects, invariants, examples. Tools below 3.0/5 axes fire a ≤60 composite cap.
enum-shapeCatches prose-only enums (e.g. "one of: open, closed" in the description with no JSON Schema enum).
mutation-legibilityDoes each tool tell a planner it mutates, or only reads? Name prefix / description signal / annotation all count.
anti-purpose-clauseHigh-blast tools (delete, send, transfer) should include a "do not use for X, prefer Y" pointer to a narrower tool.
distribution-metadatanpm package readiness — description length, keyword count, repository / license / homepage fields. Skipped without --package.

What scores look like on real servers

The five official Anthropic MCP servers all land at 60/100 under v1.1.0 — the description-five-axis cap fires on every one. That's not a bug in the rubric; that's the bar Anthropic ships at, and the bar most servers will start from. Full scorecards in docs/publishability-scorecards/.

CI gate

yaml
- uses: incultnitollc/mcp-probe@v1  with:    command: 'node dist/index.js'    publishability: 'true'    package: './package.json'    fail-under: '70'

Pre-publish vs install-time

mcp-probe's publishability score is the pre-publish quality lane — for server authors before they ship. For the install-time security lane — server installers before they connect a third-party server — see @stephenywilson/mcp-doctor. Different audiences, complementary tools.

Contract testing — "VCR for MCP" (v1.2.0+)

test/score tell you if your server is healthy today. Contract testing tells you what changed since last time — so a breaking schema edit or a poisoned tool description never ships silently.

Record a snapshot of your server's contract (its tools, resources, prompts, and their schemas — no traffic, no side effects), commit the .mcpvcr file, then diff or gate every PR against it.

bash
# 1. Record a baseline (lists only — never calls a tool)mcp-probe record "node dist/index.js" --out .mcp/contract.mcpvcrgit add .mcp/contract.mcpvcr && git commit -m "record MCP contract baseline"
# 2. See what a change did to the contractmcp-probe diff --baseline .mcp/contract.mcpvcr "node dist/index.js"
# 3. Gate CI — exit 1 on breaking or security changesmcp-probe gate --baseline .mcp/contract.mcpvcr "node dist/index.js"

Every change is classified so the gate is meaningful, not noisy:

SeverityExamples
❌ breakingtool removed · new required argument · property removed · type changed · enum narrowed
⚠️ securitytool description mutated (rug-pull / tool-poisoning) · readOnlyHint dropped · tool became destructive
✅ additivenew tool · new optional field · enum widened
ℹ️ infoserver name · resource/prompt description text

gate fails on breaking,security by default — tune with --fail-on breaking (or any comma-separated set). Snapshots are deterministic: re-recording an unchanged server produces a byte-identical file, so committed baselines and diffs stay clean. Compare two recorded files offline with --against <file> instead of a live target, and write a ready-to-post PR comment with --markdown <path>.

Why it matters: the 2026-07-28 MCP spec ships breaking changes (dropped initialize handshake, error-code and JSON-Schema shifts, HTTP+SSE → Streamable HTTP). A recorded .mcpvcr baseline turns "did we break our clients?" into a one-line CI check. See examples/contract-gate.yml for the full PR workflow with auto-commenting.

Use cases

  • MCP server development — Run mcp-probe in your test suite to catch regressions
  • CI/CD gates — Block deploys if your MCP server doesn't pass health checks
  • Server evaluation — Quickly assess third-party MCP servers before integrating them
  • Schema quality — Find missing descriptions and malformed schemas before users hit them

CI integration

mcp-probe exits 0 on full pass and 1 on any failure, so it drops directly into any CI pipeline:

yaml
# .github/workflows/mcp-health.yml- name: Health-check MCP server  run: npx @incultnitollc/mcp-probe test "$MCP_SERVER_CMD"

Use --json for structured output and jq to gate on specific metrics (e.g. fail the build if schemaWarnings > 0).

GitHub Action

Drop mcp-probe into your MCP server's GitHub Actions workflow in two lines:

yaml
- uses: incultnitollc/mcp-probe@v1  with:    command: 'node dist/index.js'

Gate your PRs on a publishability composite:

yaml
- uses: incultnitollc/mcp-probe@v1  with:    command: 'node dist/index.js'    publishability: 'true'    package: './package.json'    fail-under: '70'

Inputs

NameRequiredDefaultDescription
commandyes—Command that launches your MCP server (e.g. node dist/index.js or npx -y @your-scope/your-server).
fail-underno0Fail the job if the publishability composite drops below this value (0–100). Requires publishability: 'true'.
publishabilitynofalseRun the publishability suite — 5 checks + 0–100 composite. Requires mcp-probe >= 1.1.0 (ships 2026-05-23).
packageno''Path to package.json for the distribution-metadata check. Empty skips the distribution check.
html-reportno''Path to write the HTML scorecard. Upload via actions/upload-artifact in a follow-on step.
mcp-probe-versionnolatestnpm version, dist-tag, or latest. Pin for reproducible builds.
json-outputno''Path to write the JSON report for downstream parsing.

Outputs

NameDescription
composite-scorePublishability composite (0–100). Only set when publishability: 'true'.
bandGrade band: publishable / almost / rough / not-ready. Only set when publishability: 'true'.
tools-pass-ratetools_callable / tools_listed as a decimal (e.g. 0.83).
schema-warningsTotal schema warning count across all tools.

More examples: examples/basic.yml · examples/publishability-gate.yml · examples/matrix.yml.

Marketplace listing: github.com/marketplace/actions/mcp-probe-mcp-server-health-check.

Compared to MCP Inspector

The official MCP Inspector is a GUI for interactive exploration — point, click, see what a server returns. mcp-probe is a CLI for automated, repeatable diagnosis — every tool/resource/prompt called automatically, pass/fail scorecard out, exit code in. Use Inspector when you're exploring; use mcp-probe in CI, in pre-publish checks, or when you want a shareable scorecard of someone else's server.

Ecosystem

  • MCP Registry — Cross-source catalog of MCP servers (~6,900 indexed across 6 upstream lists) with quality scores powered by mcp-probe. CLI: npm i -g @incultnitollc/mcpr. Built by Incultnito LLC.

Development

bash
git clone https://github.com/incultnitollc/mcp-probe.gitcd mcp-probenpm installnpm run dev -- test "npx -y @modelcontextprotocol/server-everything"npm test

License

MIT - Incultnito LLC

来源:README.md,提交 090490a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.2.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分