mcp-language-server icon indicating copy to clipboard operation
mcp-language-server copied to clipboard

MCP spec conformance: 10 requirement(s) violated (via @hasmcp/mcp-spec-test)

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

Starting mcp-language-server --workspace <dir> --lsp gopls against a trivial Go workspace and talking to it over stdio, the conformance suite never gets a response to server/discover or a version-less request within 10 seconds, and the stock official MCP SDK client also times out completing initialize. This closely matches the original sweep's finding (originally 8 violated; this re-run shows 10, likely because the currently-tested revision, 2026-07-28, exercises server/discover which the original run may not have hit the same way). Note: the launch command downloads a newer Go toolchain and builds gopls/mcp-language-server from source because the test container's stock Go (1.19) and the published binaries are too old/incompatible for this repo's current go.mod requirements — that part of the command is an environment workaround, not the bug being reported; the actual failure (no response to the handshake) happens well after the binary starts running (the server's own log shows it successfully starts, loads the LSP, and registers tools).

Conformance report

MCP 2026-07-28 conformance report

Verdict: not conformant — 10 requirements violated.

Target `sh -c 'export PATH=/tmp/go/bin:/root/go/bin:$PATH; [ -x /tmp/go/bin/go ]
Transport stdio
Revision tested 2026-07-28
Revisions supported 2026-07-28, 2025-11-25
Passed 4
Failed 10
Not verified 22
Cases applied 36
Duration 207151ms
Generated 2026-08-24T14:38:10.048Z
Tool @hasmcp/mcp-spec-test 0.1.1

Failed (10)

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 Cannot read properties of undefined (reading 'supportedVersions')
  • server/discover is a CacheableResult with usable cache hints Cannot read properties of undefined (reading 'ttlMs')
  • server/discover reports server identity and capabilities Cannot read properties of undefined (reading 'capabilities')
  • server/discover is stable across calls within its own TTL Cannot read properties of undefined (reading 'supportedVersions')
  • server/discover advertises a revision this suite supports Cannot read properties of undefined (reading 'supportedVersions')

Version negotiation

  • a request with no version at all is served on the default a version-less request must be served, got 0: {"_raw":"no response within 10000ms"}

0 !== 200

Official SDK interop

  • a stock official-SDK client completes the handshake MCP error -32001: Request timed out
  • the handshake settles on a revision inside the supported window initialize must return a protocolVersion, got undefined
  • a stock official-SDK client can list tools MCP error -32001: Request timed out

Not verified (22)

skipped; a skip is not a pass

Capability methods

  • tools/list returns schema-conformant tools cannot determine what the target supports — server/discover returned no result (status 0)
  • tools/call on an unknown tool is an error, not a crash cannot determine what the target supports — server/discover returned no result (status 0)
  • tools/call returns a schema-conformant CallToolResult cannot determine what the target supports — server/discover returned no result (status 0)
  • prompts/list returns schema-conformant prompts cannot determine what the target supports — server/discover returned no result (status 0)
  • prompts/get returns messages with a role and content cannot determine what the target supports — server/discover returned no result (status 0)
  • resources/list returns schema-conformant resources cannot determine what the target supports — server/discover returned no result (status 0)
  • resources/templates/list returns schema-conformant templates cannot determine what the target supports — server/discover returned no result (status 0)
  • resources/read returns contents for every sampled resource cannot determine what the target supports — server/discover returned no result (status 0)
  • resources/read on an unknown uri is an error cannot determine what the target supports — server/discover returned no result (status 0)
  • following nextCursor terminates and does not repeat a page cannot determine what the target supports — server/discover returned no result (status 0)
  • 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 cannot determine what the target supports — server/discover returned no result (status 0)
  • an unsupported version is rejected with the supported list cannot determine what the target supports — server/discover returned no result (status 0)
  • 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 cannot determine what the target supports — server/discover returned no result (status 0)
  • cacheable list results carry the schema-required cache hints cannot determine what the target supports — server/discover returned no result (status 0)
  • results identify the server in _meta cannot determine what the target supports — server/discover returned no result (status 0)
  • 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 cannot determine what the target supports — server/discover returned no result (status 0)
  • the acknowledgment carries the subscription id for correlation cannot determine what the target supports — server/discover returned no result (status 0)
  • a listen requesting no notification types is not a subscription to everything cannot determine what the target supports — server/discover returned no result (status 0)
  • 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 (4)

checked and conformant

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

subscriptions/listen

  • schema sanity: SubscriptionsListenResult requires _meta and resultType

How to reproduce

With Docker:

docker pull hasmcp/mcp-spec-test:latest
docker run --rm hasmcp/mcp-spec-test -c "sh -c 'export PATH=/tmp/go/bin:/root/go/bin:\$PATH; [ -x /tmp/go/bin/go ] || (curl -sL https://go.dev/dl/go1.24.0.linux-amd64.tar.gz -o /tmp/go.tgz && tar -C /tmp -xzf /tmp/go.tgz); export PATH=/tmp/go/bin:/root/go/bin:\$PATH; [ -x /root/go/bin/gopls ] || go install golang.org/x/tools/gopls@latest; [ -x /root/go/bin/mcp-language-server ] || go install github.com/isaacphi/mcp-language-server@latest; mkdir -p /tmp/ws && cd /tmp/ws && [ -f go.mod ] || (go mod init wsmod && printf \"package main\\nfunc main(){}\\n\" > main.go); /root/go/bin/mcp-language-server --workspace /tmp/ws --lsp /root/go/bin/gopls'"

Without Docker (npx):

npx @hasmcp/mcp-spec-test@latest -c "sh -c 'export PATH=/tmp/go/bin:/root/go/bin:\$PATH; [ -x /tmp/go/bin/go ] || (curl -sL https://go.dev/dl/go1.24.0.linux-amd64.tar.gz -o /tmp/go.tgz && tar -C /tmp -xzf /tmp/go.tgz); export PATH=/tmp/go/bin:/root/go/bin:\$PATH; [ -x /root/go/bin/gopls ] || go install golang.org/x/tools/gopls@latest; [ -x /root/go/bin/mcp-language-server ] || go install github.com/isaacphi/mcp-language-server@latest; mkdir -p /tmp/ws && cd /tmp/ws && [ -f go.mod ] || (go mod init wsmod && printf \"package main\\nfunc main(){}\\n\" > main.go); /root/go/bin/mcp-language-server --workspace /tmp/ws --lsp /root/go/bin/gopls'"

This issue was filed as part of an automated MCP conformance sweep. Given the server's own log confirms it starts up, loads gopls, and registers tools successfully before this timeout, this doesn't look like an environment/dependency artifact — but as always, feel free to close if it turns out not to be applicable (e.g. if this stdio transport intentionally doesn't implement the newer handshake methods being tested here).

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