memorix icon indicating copy to clipboard operation
memorix copied to clipboard

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

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

Running npx -y memorix serve against the @hasmcp/mcp-spec-test conformance suite pinned to MCP spec revision 2026-07-28, the server does not implement the new pre-handshake server/discover method (it returns a JSON-RPC -32601 Method not found error, or in some runs the process/socket doesn't respond within the timeout), and the official-SDK client fails to complete the initialize handshake for this revision. By contrast, this same server tested cleanly against the older 2025-11-25 revision (0 failures, everything that could be checked passed) — so this appears to be specifically a gap in support for the newer 2026-07-28 revision (notably its new server/discover pre-handshake capability), not a general regression. No separate issue is being filed for 2025-11-25 since it showed no violations there.

Conformance report

MCP 2026-07-28 conformance report target npx -y memorix serve transport stdio supported 2026-07-28, 2025-11-25

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":"server exited"} 0 !== 200

Official SDK interop ✗ a stock official-SDK client completes the handshake MCP error -32000: Connection closed ✗ 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 -32000: Connection closed

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 (4)

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

Summary 4 passed 10 failed 22 not verified 36 cases applied, in 26789ms

Verdict: not conformant — 10 requirements violated.

Note: a separate run without pinning a spec revision (which also lands on 2026-07-28, since it's the newest the server offers) instead showed the server/discover call itself succeeding at the transport level but returning a JSON-RPC -32601 Method not found error for the identity/capabilities-reporting checks, with 9 requirements violated instead of 10. Both runs agree that server/discover on the 2026-07-28 revision does not behave per spec; the exact failure mode (timeout vs. method-not-found) appears to vary run to run.

How to reproduce

With Docker:

docker pull hasmcp/mcp-spec-test:latest
docker run --rm hasmcp/mcp-spec-test -c "npx -y memorix serve" --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 "npx -y memorix serve" --spec-version 2026-07-28)

Without Docker (npx):

npx @hasmcp/mcp-spec-test@latest -c "npx -y memorix serve" --spec-version 2026-07-28

This issue was generated by an automated MCP conformance sweep across public MCP server repos. If this is expected (e.g. server/discover / the 2026-07-28 revision isn't a support target yet), 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

Memorix 1.8.2 adds a real partial compatibility layer for the MCP 2026-07-28 discovery path.

The server now accepts server/discover before initialize and returns the discovery result through the production stdio/HTTP entry points. Versionless tools/list and tools/call remain usable, and legacy initialize continues to work.

This is intentionally not a claim of complete modern MCP conformance. With the repository's current MCP SDK v1, modern result metadata outside discovery, Tasks, subscriptions, and list-response caching are still not implemented. The issue remains OPEN while those boundaries are unresolved.

Upgrade with npm install -g [email protected] and verify discovery-before-initialize plus versionless tools/list/tools/call against the built server.

AVIDS2 avatar Aug 25 '26 02:08 AVIDS2

Memorix 1.8.3 fixes the real stdio pre-handshake startup window: serve now receives and queues early JSON-RPC input, answers server/discover before initialization, and hands queued messages to the SDK transport when ready.

Docker conformance verification: 22 pass / 5 fail / 9 not verified. The three startup failures are gone. The remaining boundaries are unsupported modern MCP envelope/result metadata, list-cache fields, unsupported-version rejection, subscriptions, and related modern capabilities; these remain outside the 1.8.3 partial compatibility scope.

Thanks for reporting the startup timing issue.

AVIDS2 avatar Aug 25 '26 09:08 AVIDS2

@AVIDS2 thanks for fixing. I hope you found the spec-test tool helpful. If you are comfortable, a Github star would be great to support github.com/hasmcp/mcp-spec-test.

hasmcp-dev avatar Aug 27 '26 01:08 hasmcp-dev

Memorix 1.8.5 addresses the original startup/conformance failure and makes the boundary explicit.

  • The official MCP v2 path now handles modern stateless stdio/HTTP discovery, metadata, version negotiation, subscriptions, and legacy clients; direct protocol tests and real stdio/HTTP smokes pass.
  • Durable MCP Tasks are explicitly rejected because Memorix does not yet have a durable task store. List responses expose a zero-TTL hint; Memorix does not pretend to provide reusable server-side list caching.
  • The external @hasmcp/mcp-spec-test runner could not reach the server on this Windows host because it imports a drive-letter path as an ESM URL. This is recorded as a harness limitation, not counted as a conformance pass.

Closing this report as addressed at the supported contract. A future issue should track durable Tasks or reusable caching separately rather than calling these intentional boundaries “partial” support.

AVIDS2 avatar Aug 30 '26 03:08 AVIDS2