MCP Endpoint Lint - handshake, tool schemas, JSON-RPC errors
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}} free no key
我該用這個嗎
品質與安全性
發現項目(6)
- HIGH
- MEDIUM在 handshake_report 中
- MEDIUM在 tools_list_report 中
- MEDIUM在 error_conformance 中
- MEDIUM在 discovery_report 中
- MEDIUM在 score_card 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"mcp-endpoint-lint": {
"url": "https://www.pathwren.workers.dev/c/mcp-registry-official/mcp/lint"
}
}
}遠端端點
https://www.pathwren.workers.dev/c/mcp-registry-official/mcp/lintstreamable-http它能做什麼
工具清單
工具(7)
🟢whoami
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}} — POST that to https://www.pathwren.workers.dev/mcp/lint and the answer is the user-agent you sent, the class this host's own instrument books it as, whether we have logged you here before — and the part only this server can answer: your own client's record on this host, surface by surface, with the status codes it took, plus exactly what this server would do with a URL you handed it (which hosts it refuses, what it identifies itself as, the timeout and the rate limit). Takes no arguments. Safe to call. Deterministic. Touches no third party. Nothing is fetched to build it: every fact comes from the headers on your own request or from a file this host already publishes. Only this server answers the last part — its five siblings answer one other question each about you, same empty arguments, each under the tool named beside its path: /mcp (whoami), /mcp/doctor (no_arguments_check_this_hosts_own_discovery_documents), /mcp/triage (no_arguments_triage_this_hosts_own_crawler_log), /mcp/robots (no_arguments_lint_this_hosts_robots_txt), /mcp/netcheck (no_arguments_report_the_crawler_ip_ranges_this_host_mirrors), /mcp/markdown (markdown_lane_self_report) on https://www.pathwren.workers.dev. Example: arguments={} returns your user-agent, your address, the class we book you as, whether we have seen you here before, and your own client's record on this host — every surface of ours your user-agent has been seen on, with the status codes it took.
輸入結構描述
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false,
"examples": [
{}
]
}輸出結構描述
{
"type": "object",
"properties": {
"you": {
"type": "object",
"description": "The user-agent you sent and the address you came from."
},
"we_book_you_as": {
"type": "object",
"description": "The class this host's own instrument records for that user-agent."
},
"we_have_seen_you": {
"type": "object",
"description": "Whether this user-agent appears in the published observation window."
},
"answered_by": {
"type": "object",
"description": "Which server answered, at which endpoint."
},
"this_call_touched": {
"type": "object",
"description": "Exactly which files were read to answer. No third party is contacted."
},
"caveats": {
"type": "array",
"items": {
"type": "string"
},
"description": "What this answer does NOT establish — a user-agent is a claim."
},
"license": {
"type": "string"
},
"independent": {
"type": "boolean",
"description": "This host is independent and unaffiliated."
}
},
"required": [
"you",
"we_book_you_as",
"we_have_seen_you",
"answered_by",
"this_call_touched",
"caveats",
"license",
"independent"
],
"description": "Facts about the caller, derived only from the headers of this request and from files this host already publishes.",
"additionalProperties": true
}🟢example
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"example","arguments":{}}} — POST that exact body to https://www.pathwren.workers.dev/mcp/lint and you are done: free, read-only, no API key, no account, no consent prompt, nothing for you to invent, and what comes back is this server's own worked example — score_card, run for real on a canned input from this host's own data — so you see the exact shape of an answer before you send anything of yours. Takes no arguments. Safe to call. Deterministic. Touches no third party. Runs this server's own worked example end to end — score_card on this server's built-in fixture — an in-process MCP endpoint with one real defect wired in per check (it ignores the protocol version you ask for, refuses a second initialize, publishes a tool whose `required` names a property that does not exist, and answers an unknown method with an HTML 500). No outbound request is made and no third party is touched — and returns exactly the structuredContent a real call returns, not a mock and not a description of one. Use it to see the shape of an answer before you decide what to send. The input is canned from this host's own data; no URL of yours is fetched and no third party is touched. Example: arguments={} runs score_card with {"url":"fixture://mcp-endpoint-lint/demo"} and returns its real answer.
輸入結構描述
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false,
"examples": [
{}
]
}輸出結構描述
{
"type": "object",
"properties": {
"ran": {
"type": "object",
"description": "The tool name and the exact arguments that were run."
},
"input_came_from": {
"type": "string",
"description": "Where the canned input came from — always this host's own data."
},
"what_it_shows": {
"type": "string"
},
"answer": {
"type": "object",
"description": "The real structuredContent of that call, not a mock."
},
"reproduce": {
"type": "string",
"description": "A command that reproduces this answer."
},
"this_is_not_a_mock": {
"type": "string"
},
"answered_by": {
"type": "object"
},
"license": {
"type": "string"
}
},
"required": [
"ran",
"input_came_from",
"what_it_shows",
"answer",
"reproduce",
"this_is_not_a_mock",
"answered_by",
"license"
],
"description": "This server's own worked example, executed for real on a canned input from this host's own data.",
"additionalProperties": true
}🟢handshake_report(url, protocol_version)
FIRST CALL, needs nothing: {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}} — POST initialize to an MCP endpoint you name and report what came back: the protocol version it negotiated against the one you asked for, the capabilities it advertises, serverInfo, timing, the transport shape (JSON or SSE frame, session id, content-type), and — sent a second time, byte for byte — whether the server answers an identical initialize the same way. Also asks for a version nobody publishes, to see whether it negotiates down or agrees to anything. Makes 3 requests, 6 s timeout each, user-agent growth-loop/1.0 (+https://www.pathwren.workers.dev/mcp-lint.html). Example: url='https://mcp.example.com/mcp' — or call with {} to run it against the built-in fixture, which makes no outbound request at all.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The MCP endpoint to lint — the URL you POST JSON-RPC to, e.g. https://mcp.example.com/mcp. Not stored anywhere. This server refuses its own publisher, IP literals and private names."
},
"protocol_version": {
"type": "string",
"description": "The protocolVersion to ask for. Defaults to 2026-07-28."
}
},
"required": [
"url"
],
"additionalProperties": false,
"examples": [
{
"url": "fixture://mcp-endpoint-lint/demo"
}
]
}🟢tools_list_report(url)
FIRST CALL, needs nothing: {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}} — Handshake, then tools/list, then check every tool it returns: a missing or empty description, a description too short to choose on, a missing inputSchema, an inputSchema that is not an object schema, JSON-Schema faults (an invalid type keyword, a `required` naming a property that is not in `properties`, a pattern that will not compile, an empty enum), names that break the character rule, and names that collide — exactly, or once case is ignored. Each finding names the tool and says what breaks. Makes 3 requests, 6 s timeout each. Example: url='https://mcp.example.com/mcp' — or {} for the built-in fixture, whose six tools carry one of each fault.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The MCP endpoint to lint — the URL you POST JSON-RPC to, e.g. https://mcp.example.com/mcp. Not stored anywhere. This server refuses its own publisher, IP literals and private names."
}
},
"required": [
"url"
],
"additionalProperties": false,
"examples": [
{
"url": "fixture://mcp-endpoint-lint/demo"
}
]
}🟢error_conformance(url)
FIRST CALL, needs nothing: {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}} — Send five things a real client eventually sends by accident and check what comes back: an unknown method (expects -32601), tools/call naming a tool that does not exist (expects -32602/-32601 or a result with isError), tools/call with no tool name (expects -32602), a body that is not JSON (expects -32700), and a body missing "jsonrpc":"2.0" (expects -32600). Reports the HTTP status and the error code side by side, and flags an HTML error page or a 5xx where a JSON-RPC error belongs — the failure that makes a client report the wrong cause. Makes 5 requests, 6 s each. Example: url='https://mcp.example.com/mcp' — or {} for the fixture, which fails two of the five.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The MCP endpoint to lint — the URL you POST JSON-RPC to, e.g. https://mcp.example.com/mcp. Not stored anywhere. This server refuses its own publisher, IP literals and private names."
}
},
"required": [
"url"
],
"additionalProperties": false,
"examples": [
{
"url": "fixture://mcp-endpoint-lint/demo"
}
]
}🟢discovery_report(host)
FIRST CALL, needs nothing: {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}} — GET the documents an MCP client reads BEFORE the handshake and report what each one answered: /.well-known/oauth-protected-resource in BOTH forms — the root form everyone publishes and the RFC 9728 §3.1 insertion form a spec-following client actually requests for a resource served under a path — /.well-known/oauth-authorization-server, /.well-known/mcp, /.well-known/mcp.json, /mcp.json and /llms.txt. Each result carries the status, the verdict (served, missing, gated, soft-404 — a 200 carrying an HTML error page — or invalid JSON) and what a client does with that document. Makes one GET per document, 6 s each. Example: host='mcp.example.com' or host='https://mcp.example.com/mcp' (a path turns on the RFC 9728 insertion-form check) — or {} for the built-in fixture.
輸入結構描述
{
"type": "object",
"properties": {
"host": {
"type": "string",
"description": "A hostname, or the full endpoint URL. Give the full URL when your endpoint is served under a path: that is what the RFC 9728 §3.1 insertion form is derived from."
}
},
"required": [
"host"
],
"additionalProperties": false,
"examples": [
{
"host": "fixture://mcp-endpoint-lint/demo"
}
]
}🟢score_card(url)
FIRST CALL, needs nothing: {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"whoami","arguments":{}}} — Run handshake_report, tools_list_report, error_conformance and discovery_report against one endpoint and return a single verdict: a score out of 100 (handshake 30, tool schemas 30, error conformance 25, discovery 15), a letter grade, every finding by severity with the section it came from, and the full detail of each section underneath. This is the tool to call from a monitor: the score is stable enough to alert on and the findings say what to fix. Makes up to 19 requests to the URL you give it, 6 s each, and is rate-limited per caller and per target host. Example: url='https://mcp.example.com/mcp' — or {} to score the built-in fixture (it gets a D) with no outbound request at all.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The MCP endpoint to lint — the URL you POST JSON-RPC to, e.g. https://mcp.example.com/mcp. Not stored anywhere. This server refuses its own publisher, IP literals and private names."
}
},
"required": [
"url"
],
"additionalProperties": false,
"examples": [
{
"url": "fixture://mcp-endpoint-lint/demo"
}
]
}社群
證據