roam-code icon indicating copy to clipboard operation
roam-code copied to clipboard

MCP spec conformance: 2 requirement(s) violated (via @hasmcp/mcp-spec-test) — spec 2025-11-25

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

Re-testing against the older spec revision 2025-11-25 (this server also negotiates 2026-07-28, covered in a separate issue since the failure set there differs), two version-negotiation edge cases time out with no response within 10 seconds: a request sent with no protocol version at all, and one offering an unsupported version. A plain, well-formed initialize handshake via the official SDK still completes fine and tools/list works (see "Official SDK interop" passes below), so this looks like the server's request handling only mishandles these two specific malformed/edge-case version-negotiation inputs rather than being broadly broken. (Note: the originally reported "stdout corruption from a stale-index warning" theory did not hold up on closer testing — that warning goes to stderr, not stdout, and a normal handshake works even with no index present.)

Conformance report

MCP 2025-11-25 conformance report

Verdict: not conformant — 2 requirements violated.

Target sh -c "pip install --break-system-packages 'roam-code[mcp]' && roam mcp"
Transport stdio
Revision tested 2025-11-25
Revisions supported 2026-07-28, 2025-11-25
Passed 5
Failed 2
Not verified 13
Cases applied 20
Duration 48128ms
Tool @hasmcp/mcp-spec-test 0.1.1

Failed (2)

the server deviates from the spec here

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"}
  • an unsupported version offered at the handshake is refused or downgraded, not echoed expected either an error or a protocolVersion, got {"_raw":"no response within 10000ms"}

Not verified (13)

skipped; a skip is not a pass

Capability methods

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

Version negotiation

  • initialize returns the schema-required fields no session — initialize returned no result (status 0)
  • the handshake settles on the revision under test no session — initialize returned no result (status 0)

Passed (5)

checked and conformant

server/discover

  • the suite is reading a schema that matches the features it 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

How to reproduce

With Docker:

docker pull hasmcp/mcp-spec-test:latest
docker run --rm hasmcp/mcp-spec-test -c "sh -c \"pip install --break-system-packages 'roam-code[mcp]' && roam mcp\"" --spec-version 2025-11-25

(or, if that image can't run on 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 "sh -c \"pip install --break-system-packages 'roam-code[mcp]' && roam mcp\"" --spec-version 2025-11-25)

Without Docker (npx):

npx @hasmcp/mcp-spec-test@latest -c "sh -c \"pip install 'roam-code[mcp]' && roam mcp\"" --spec-version 2025-11-25

This issue was generated by an automated MCP conformance sweep across public MCP server repos. If this is a test-harness timing artifact rather than a real server bug, feel free to close it — it's meant as a heads-up, not a demand.

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

Thanks for testing this, and for taking the time to correct the earlier findings.

I checked the three handshake cases directly against the current checkout, with installation kept separate from starting the server. A normal connection works; leaving out the version gets an immediate invalid-parameters reply; and an unsupported version gets a supported version back, after which listing tools works. I couldn't reproduce the two hangs in that setup.

I've added tests that launch the real CLI to keep those cases covered. The refreshed test environment uses MCP 1.29.1 and FastMCP 3.4.7; the full release checks are still running, so this isn't a release announcement yet.

One thing worth trying with the harness: install Roam first, then launch roam mcp --no-auto-index directly. Installing inside the launch command can consume the timeout and put installation output on the protocol stream. If it still hangs that way, the exact installed versions and captured stderr would help narrow it down. Thanks again for the useful report!

Cranot avatar Sep 04 '26 23:09 Cranot

Quick follow-up: I’ve now run the exact @hasmcp/mcp-spec-test 0.1.1 harness on Linux against the 14.0.1 candidate, with Roam installed before launch and roam mcp --no-auto-index started directly.

For the November 2025 revision, it reports 20 applied checks passed, 0 failed, and 0 unverified. That includes the version-negotiation cases, tool listing and calls, prompts, and sampled resources. There is one separate recommendation about rejecting an invalid pagination cursor; I’m keeping that visible as follow-up work.

The full release checks are still running, so this is candidate evidence, not an announcement that 14.0.1 is available yet. It also doesn’t claim HTTP or July 2026 protocol coverage. Thanks again for the reproducible harness—it helped us check considerably more than the original two cases.

Cranot avatar Sep 05 '26 02:09 Cranot

Thanks again for the report. 14.0.1 is now published, and I repeated the check with a fresh install from PyPI, not the development checkout.

Using the same @hasmcp/mcp-spec-test 0.1.1 harness and the November 2025 revision: 20 checks passed, none failed, and none remained unverified. Both reported negotiation cases are covered. The 23 non-applicable checks are not counted as passes, and the separate invalid-pagination-cursor recommendation remains a follow-up item.

The important setup detail is to install roam-code[mcp]==14.0.1 first, then launch roam mcp --no-auto-index directly. This keeps installation output and download time out of the connection itself. The tested environment used MCP 1.29.1 and FastMCP 3.4.7 on Linux.

I'm closing this specific timeout report based on those results. July 2026 compatibility stays tracked separately in #106; this result does not claim HTTP/SSE coverage. If either timeout returns with the direct launch, please reopen with the installed versions and stderr—we'd be happy to dig further.

14.0.1 release

Cranot avatar Sep 05 '26 05:09 Cranot