FofaMap icon indicating copy to clipboard operation
FofaMap copied to clipboard

MCP spec conformance: 7 requirement(s) violated (via @hasmcp/mcp-spec-test) — spec 2026-07-28

Open hasmcp-dev opened this issue 3 months ago • 3 comments

Running the @hasmcp/mcp-spec-test conformance suite against this server (launched with uvx --from git+https://github.com/asaotomo/FofaMap fofamap-mcp), tested against protocol revision 2026-07-28, shows the server doesn't implement the server/discover method (JSON-RPC "Method not found"), and that a version-less tools/list request is refused with an "Invalid request parameters" error instead of being served on a default version. This produces 7 requirement violations. Note that when the same server was tested against the older 2025-11-25 revision it advertises support for, it passed everything that could be checked — so this appears specific to newer-revision behavior (likely server/discover simply not being implemented yet) rather than a general breakage; no separate issue was filed for 2025-11-25 since nothing failed there.

Conformance report

MCP 2026-07-28 conformance report target uvx --from git+https://github.com/asaotomo/FofaMap fofamap-mcp transport stdio supported 2026-07-28, 2025-11-25

FAILED (7) — the server deviates from the spec here

server/discover ✗ server/discover is answered without a session or handshake expected 200, got 0: {"_raw":"no response within 10000ms"} 0 !== 200 ✗ server/discover advertises the versions the server can serve server/discover unexpected JSON-RPC error: {"code":-32601,"message":"Method not found","data":"server/discover"} ✗ server/discover is a CacheableResult with usable cache hints server/discover unexpected JSON-RPC error: {"code":-32601,"message":"Method not found","data":"server/discover"} ✗ server/discover reports server identity and capabilities server/discover unexpected JSON-RPC error: {"code":-32601,"message":"Method not found","data":"server/discover"} ✗ server/discover is stable across calls within its own TTL server/discover unexpected JSON-RPC error: {"code":-32601,"message":"Method not found","data":"server/discover"} ✗ server/discover advertises a revision this suite supports server/discover unexpected JSON-RPC error: {"code":-32601,"message":"Method not found","data":"server/discover"}

Version negotiation ✗ a request with no version at all is served on the default a version-less tools/list must be served, not refused: {"code":-32602,"message":"Invalid request parameters","data":""}

NOT VERIFIED (22) — skipped; a skip is not a pass

Capability methods – tools/list returns schema-conformant tools – tools/call on an unknown tool is an error, not a crash – tools/call returns a schema-conformant CallToolResult – prompts/list returns schema-conformant prompts – prompts/get returns messages with a role and content – resources/list returns schema-conformant resources – resources/templates/list returns schema-conformant templates – resources/read returns contents for every sampled resource – resources/read on an unknown uri is an error – following nextCursor terminates and does not repeat a page – an invalid pagination cursor is rejected (SHOULD) cannot determine what the target supports — server/discover returned no result (status 0)

Version negotiation – a version declared in _meta is accepted – an unsupported version is rejected with the supported list – clientInfo is optional (SHOULD, not MUST) cannot determine what the target supports — server/discover returned no result (status 0)

Result envelope – every result carries the required resultType – cacheable list results carry the schema-required cache hints – results identify the server in _meta – a client on an older version receives no newer-revision fields cannot determine what the target supports — server/discover returned no result (status 0)

subscriptions/listen – subscriptions/listen acknowledges only the opted-in notification types – the acknowledgment carries the subscription id for correlation – a listen requesting no notification types is not a subscription to everything – a cancelled subscription ends with a conformant teardown result, if it sends one cannot determine what the target supports — server/discover returned no result (status 0)

PASSED (7)

server/discover ✓ the suite is reading a schema that matches the features it selected

Result envelope ✓ schema sanity: the envelope fields match the features selected

Official SDK interop ✓ the official SDK does not yet implement the newest revision ✓ a stock official-SDK client completes the handshake ✓ the handshake settles on a revision inside the supported window ✓ a stock official-SDK client can list tools

subscriptions/listen ✓ schema sanity: SubscriptionsListenResult requires _meta and resultType

Summary 7 passed 7 failed 22 not verified 36 cases applied, in 22798ms

Verdict: not conformant — 7 requirements violated.

How to reproduce

With Docker:

docker pull hasmcp/mcp-spec-test:latest
docker run --rm hasmcp/mcp-spec-test -c "uvx --from git+https://github.com/asaotomo/FofaMap fofamap-mcp" --spec-version 2026-07-28

(or, if that image lacks a manifest for your platform: git clone https://github.com/hasmcp/mcp-spec-test && cd mcp-spec-test && docker build -t mcp-spec-test . && docker run --rm mcp-spec-test -c "uvx --from git+https://github.com/asaotomo/FofaMap fofamap-mcp" --spec-version 2026-07-28)

Without Docker (npx):

npx @hasmcp/mcp-spec-test@latest -c "uvx --from git+https://github.com/asaotomo/FofaMap fofamap-mcp" --spec-version 2026-07-28

This issue was filed as part of an automated conformance sweep of public MCP servers using @hasmcp/mcp-spec-test. If this turns out to be a false positive specific to the test environment (missing credentials/dependencies, etc.), please feel free to close it.

hasmcp-dev avatar Aug 24 '26 05:08 hasmcp-dev

Thanks for the report. I checked it against the current tree and the published 2026-07-28 discovery spec.

This is the same seven-case result the conformance bot filed against the official Python SDK example server: https://github.com/modelcontextprotocol/python-sdk/issues/3372

FofaMap does not ship its own JSON-RPC dispatcher. stdio uses the SDK dual-era loop (mcp>=2,<3, currently 2.3.0). A first request with empty params has no params._meta["io.modelcontextprotocol/protocolVersion"], so the SDK classifies the connection as the legacy initialize handshake. On that path server/discover is not a method, which is -32601, and tools/list before initialize is -32602. That is the behavior the suite recorded.

The spec's own server/discover example requires that envelope: https://modelcontextprotocol.io/specification/2026-07-28/server/discover

The same report also says the 2025-11-25 revision passed, and a stock SDK client can complete the handshake and list tools. I am closing this as a false positive for FofaMap. If the SDK later answers those empty-params probes, this server will follow it through the existing dependency instead of forking the protocol loop.

asaotomo avatar Nov 01 '26 03:11 asaotomo

Closing as a false positive. The failures match the official MCP Python SDK's handling of empty-params 2026-07-28 probes, and the published discovery request requires the protocol envelope.

asaotomo avatar Nov 01 '26 03:11 asaotomo