conformance/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Paul Carleton 22196ca809
fix: bump SDK to 1.26.0, add session management to tools_call scenario (#134)
* fix: bump SDK to 1.26.0, add session management to tools_call scenario

SDK 1.26.0 made Protocol.connect() throw if already connected to a
transport. The tools_call scenario was calling server.connect(transport)
on every request with the same Server instance, which now throws.

Fixed by adding proper session management: each initialize request
creates a new Server + Transport pair, and subsequent requests are
routed to the correct transport via the mcp-session-id header.

* fix: return 404 for invalid session IDs in tools_call POST handler

The else branch was returning 400 for both missing-session and
invalid/stale-session cases. The MCP spec requires 404 for invalid
session IDs and 400 only for non-initialization requests without
any session ID.

* refactor: keep tools_call stateless, create fresh server per request

Instead of adding session management, simply create a new Server
instance per request. This preserves the original stateless design
while fixing the SDK 1.26.0 Protocol.connect() restriction.
2026-02-05 15:43:21 +00:00
..
checks feat: support protocol version 2025-11-25 (#81) 2026-01-05 11:54:56 +00:00
runner Add allowClientError to Scenario interface for expected client failures (#123) 2026-01-26 18:31:54 +00:00
scenarios fix: bump SDK to 1.26.0, add session management to tools_call scenario (#134) 2026-02-05 15:43:21 +00:00
schemas feat: add pre-registration conformance test (#120) 2026-01-23 11:43:56 +00:00
expected-failures.test.ts feat: add --expected-failures baseline and composite GitHub Action (#113) 2026-01-22 10:41:04 +00:00
expected-failures.ts feat: add --expected-failures baseline and composite GitHub Action (#113) 2026-01-22 10:41:04 +00:00
index.ts feat: move march back-compat auth tests to optional backcompat suite (#127) 2026-01-29 18:14:49 +00:00
schemas.ts Add interactive mode with verbose checking (#23) 2025-11-11 17:49:36 +00:00
types.ts Add allowClientError to Scenario interface for expected client failures (#123) 2026-01-26 18:31:54 +00:00