arcade-mcp icon indicating copy to clipboard operation
arcade-mcp 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 • 1 comments

An automated MCP protocol conformance sweep using @hasmcp/mcp-spec-test found that the my_server project scaffolded by arcade new (via arcade-mcp) rejects requests that are sent before the client completes the MCP handshake, including the server/discover capability-discovery request and a version-less tools/list. The MCP spec expects server/discover (and a couple of other pre-handshake checks) to be answerable without requiring an initialized session first; this server instead returns a JSON-RPC -32600 Not initialized error for all of them, which cascades into 22 additional checks being skipped because the suite can no longer determine what the server supports. This was tested against spec revision 2026-07-28 (the server's newest supported revision).

Conformance report

MCP 2026-07-28 conformance report target sh -c 'cd /tmp && [ -d my_server ] || (ARCADE_USAGE_TRACKING=0 uv tool run --from arcade-mcp arcade new my_server >/dev/null 2>&1); cd /tmp/my_server/src/my_server && uv run server.py' 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 server/discover unexpected JSON-RPC error: {"code":-32600,"message":"✗ Not initialized\n\n This request cannot be processed before the session is initialized.\n\n To fix:\n 1. Send an 'initialize' request first\n 2. Wait for initialization to complete\n 3. Send 'notifications/initialized' notification\n\n Only 'initialize' and 'ping' methods are allowed before initialization."} ✗ server/discover advertises the versions the server can serve server/discover unexpected JSON-RPC error: {"code":-32600,"message":"✗ Not initialized\n\n This request cannot be processed before the session is initialized.\n\n To fix:\n 1. Send an 'initialize' request first\n 2. Wait for initialization to complete\n 3. Send 'notifications/initialized' notification\n\n Only 'initialize' and 'ping' methods are allowed before initialization."} ✗ server/discover is a CacheableResult with usable cache hints server/discover unexpected JSON-RPC error: {"code":-32600,"message":"✗ Not initialized\n\n This request cannot be processed before the session is initialized.\n\n To fix:\n 1. Send an 'initialize' request first\n 2. Wait for initialization to complete\n 3. Send 'notifications/initialized' notification\n\n Only 'initialize' and 'ping' methods are allowed before initialization."} ✗ server/discover reports server identity and capabilities server/discover unexpected JSON-RPC error: {"code":-32600,"message":"✗ Not initialized\n\n This request cannot be processed before the session is initialized.\n\n To fix:\n 1. Send an 'initialize' request first\n 2. Wait for initialization to complete\n 3. Send 'notifications/initialized' notification\n\n Only 'initialize' and 'ping' methods are allowed before initialization."} ✗ server/discover is stable across calls within its own TTL server/discover unexpected JSON-RPC error: {"code":-32600,"message":"✗ Not initialized\n\n This request cannot be processed before the session is initialized.\n\n To fix:\n 1. Send an 'initialize' request first\n 2. Wait for initialization to complete\n 3. Send 'notifications/initialized' notification\n\n Only 'initialize' and 'ping' methods are allowed before initialization."} ✗ server/discover advertises a revision this suite supports server/discover unexpected JSON-RPC error: {"code":-32600,"message":"✗ Not initialized\n\n This request cannot be processed before the session is initialized.\n\n To fix:\n 1. Send an 'initialize' request first\n 2. Wait for initialization to complete\n 3. Send 'notifications/initialized' notification\n\n Only 'initialize' and 'ping' methods are allowed before initialization."}

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":-32600,"message":"✗ Not initialized\n\n This request cannot be processed before the session is initialized.\n\n To fix:\n 1. Send an 'initialize' request first\n 2. Wait for initialization to complete\n 3. Send 'notifications/initialized' notification\n\n Only 'initialize' and 'ping' methods are allowed before initialization."}

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 an error: {"code":-32600,"message":"✗ Not initialized\n\n This request cannot be processed before the session is initialized.\n\n To fix:\n 1. Send an 'initialize' request first\n 2. Wait for initialization to complete\n 3. Send 'notifications/initialized' notification\n\n Only 'initialize' and 'ping' methods are allowed before initialization."}

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 an error: {"code":-32600,"message":"✗ Not initialized\n\n This request cannot be processed before the session is initialized.\n\n To fix:\n 1. Send an 'initialize' request first\n 2. Wait for initialization to complete\n 3. Send 'notifications/initialized' notification\n\n Only 'initialize' and 'ping' methods are allowed before initialization."}

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 an error: {"code":-32600,"message":"✗ Not initialized\n\n This request cannot be processed before the session is initialized.\n\n To fix:\n 1. Send an 'initialize' request first\n 2. Wait for initialization to complete\n 3. Send 'notifications/initialized' notification\n\n Only 'initialize' and 'ping' methods are allowed before initialization."}

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 an error: {"code":-32600,"message":"✗ Not initialized\n\n This request cannot be processed before the session is initialized.\n\n To fix:\n 1. Send an 'initialize' request first\n 2. Wait for initialization to complete\n 3. Send 'notifications/initialized' notification\n\n Only 'initialize' and 'ping' methods are allowed before initialization."}

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 13411ms

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 --spec-version 2026-07-28 -c "sh -c 'cd /tmp && [ -d my_server ] || (ARCADE_USAGE_TRACKING=0 uv tool run --from arcade-mcp arcade new my_server >/dev/null 2>&1); cd /tmp/my_server/src/my_server && uv run server.py'"

(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 --spec-version 2026-07-28 -c "...")

Without Docker (npx):

npx @hasmcp/mcp-spec-test@latest --spec-version 2026-07-28 -c "sh -c 'cd /tmp && [ -d my_server ] || (ARCADE_USAGE_TRACKING=0 uv tool run --from arcade-mcp arcade new my_server >/dev/null 2>&1); cd /tmp/my_server/src/my_server && uv run server.py'"

This issue was generated by an automated MCP conformance sweep. Since these are the results against a fresh arcade new scaffold rather than any specific real-world deployment, please feel free to close this if it doesn't apply to your setup or turns out to be an environment-specific artifact.

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

arcade-mcp doesn't support 2026-07-28.

EricGustin avatar Sep 04 '26 22:09 EricGustin