Repository navigation
Description
src/seps/traceability.json lists two requirements as untested, both SEP-2243, both server-leg. Neither check ID appears anywhere outside src/seps/sep-2243.yaml (L39, L41) — no scenario emits them, not even as the SKIPPED rows CUSTOM_HEADER_SERVER_DECLARED_CHECK_IDS emits for the other four server checks.
Checking each against docs/specification/draft/basic/transports/streamable-http.mdx gives two different answers.
1. sep-2243-server-not-expect-null — a real gap
The table at streamable-http.mdx L562-567 has two rows that this one check merges:
| Scenario | Client Behavior | Server Behavior |
|---|---|---|
Parameter value is null |
Client MUST omit the header | Server MUST NOT expect the header |
| Parameter not in arguments | Client MUST omit the header | Server MUST NOT expect the header |
The client half is covered — sep-2243-client-omit-null is emitted by src/scenarios/client/http-custom-headers.ts. The server half is covered nowhere. A server that rejects a tools/call whose designated parameter is null or absent, because the Mcp-Param-{Name} header is missing, passes the suite today.
2. sep-2243-server-reject-missing-required — I can't find the spec text
The yaml text is "Required parameter is omitted: Server MUST reject with JSON-RPC error." I can't find that requirement in the draft. The nearest is the fourth row of the same table:
| Client omits header but value is in body | Non-conforming client | Server MUST reject the request |
and that is already covered, as ServerRejectsMissingNameHeader under sep-2243-server-reject-invalid-headers (src/scenarios/server/http-standard-headers.ts L438-447, "Missing Standard Header with Value in Body (Case 47)").
So the row looks either stale or a duplicate of an existing check under a different ID. AGENTS.md says to take the keyword and text from the spec diff, and I can't locate one that matches this wording.
What I'd like to do
For (1): add the null/absent case to src/scenarios/server/http-standard-headers.ts — call a tool whose x-mcp-header parameter is null or omitted, send no Mcp-Param-{Name} header, assert the server accepts; add the ID to CUSTOM_HEADER_SERVER_DECLARED_CHECK_IDS so it emits SKIPPED when the server under test exposes no x-mcp-header tool; add a deliberately-broken server and a vitest case asserting FAILURE, per AGENTS.md.
For (2) I'd rather not invent coverage for text that isn't in the spec. As I see it the options are to retitle the row to the fourth table row and treat it as a duplicate of sep-2243-server-reject-invalid-headers, or to drop it. Happy to do whichever you'd prefer.
If (1) is wanted I'll open a PR.
Activity