360 Secure SkillHub
360 安全技能中心

MCP Wire Check

调用随仓库提供的零依赖 Python 脚本,对单个 MCP Streamable HTTP 端点发起 initialize 与 tools/list 请求,检查版本协商、JSON-RPC 2.0 与内容类型、Mcp-Session-Id、游标分页和 inputSchema 合规性,输出 JSON 报告并用退出码表示结果。

分类:开发
epistemedeus
epistemedeus
热度 37.24
最近更新 2026-12-04 22:52:46

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add epistemedeus/mcp-wire-check
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
mcp-wire-check
description
Run an unpaid read-only check of an MCP Streamable HTTP endpoint for initialize version negotiation, JSON-RPC 2.0 and content type, Mcp-Session-Id, tools/list cursor loops, and inputSchema hygiene. Use before a client depends on the endpoint. Do not pay or call tools.
license
MIT
compatibility
Requires Python 3. Probes are unpaid HTTPS POST of initialize and tools/list only. No wallet, payment, tool call, or telemetry.
metadata
{"author":"neomorphic","version":"0.1.0"}

Check an MCP wire

Check one MCP endpoint with the zero-dependency CLI in this public repository. Do not pay, sign, attach a wallet, call a tool, or send telemetry. The command exit code is the result: 0 has no error, 1 has a failed check, and 2 means the arguments are not usable.

This skill is skills/mcp-wire-check in epistemedeus/x402-data-gateway-skills. npx skills add discovers skills/<name>/SKILL.md. It is not marked metadata.internal.

Run the checker

From a checkout of this repository:

python3 actions/mcp-wire-check/mcp_wire_check.py --url https://example.com/mcp --json

https://example.com/mcp is a placeholder. Pass the real MCP endpoint. The program sends initialize, then notifications/initialized when the negotiated revision uses that handshake, then tools/list. It follows nextCursor and stops on a repeated cursor or the page cap.

Add --units-file units.json to resolve fixes without a network fetch. The default units URL is https://neomorphic.io/commons/units.json.

A skill-only install copies this directory and does not copy actions/. Clone the repository, or use a git tree that contains actions/mcp-wire-check, before running the command.

Rules

  1. Initialize. The result is JSON-RPC 2.0 with protocolVersion, capabilities, and serverInfo.name. Spec: https://modelcontextprotocol.io/specification/2025-06-18/basic/lifecycle
  2. Content type. A request response is application/json or text/event-stream. Spec: https://modelcontextprotocol.io/specification/2025-06-18/basic/transports
  3. Session. For a revision other than 2026-07-28, echo a valid Mcp-Session-Id when the server sends one. Visible ASCII is 0x21 to 0x7E.
  4. Cursors. Follow nextCursor until it is absent. A repeated cursor or a page cap is a failure, and tools already read stay in the report. Spec: https://modelcontextprotocol.io/specification/2025-06-18/server/utilities/pagination
  5. Schemas. Every tool needs an object inputSchema. JSON-RPC error codes must be integers the JSON-RPC 2.0 spec allows. Spec: https://www.jsonrpc.org/specification

Print the JSON report. Quote the finding code, the remediation URLs, and any commons unit id the report attached. Do not invent a unit id.

Install

Default-branch install, after this skill is on the default branch:

npx skills add epistemedeus/x402-data-gateway-skills --skill mcp-wire-check --yes

This file can also be installed from a git tree URL for the branch that contains it. The skills CLI documents that form as https://github.com/<owner>/<repo>/tree/<branch>/skills/<name>. Do not claim a skills.sh directory page lists this skill until a fetch of that page shows it.

Boundaries

Contact is contact@neomorphic.io. Optional handoff documents, which this command does not modify: