Repository navigation
Conversation
17 checks on the card a server hosts at <url>/server-card, pinned to ext-server-card@28db12c9: schema, CORS (preflight read from OPTIONS), caching, consistency with server/discover. Only 2xx is graded. Refs modelcontextprotocol#550.
|
SDK runs, for the table above. typescript-sdk#2527 ran its example unmodified. Python and Go ran a local wrapper around their documented example, with the remote moved to localhost (Python drops its AI Catalog and host allow-list; Go adds the typescript-sdk python-sdk#2951 (576f76e6), typescript-sdk#2527 (c6032245), curl: the GET sends go-sdk#1024 (11eac37e), the curl: no — |
A giant turkey stopped the world turning, finally circled back, wrote a draft to keep things moving. Happy Thanksgiving, guys!
Closes #550. A draft until #550's three questions are answered (end).
Requirement
SEP-2127 is Extensions Track; its normative text lives in ext-server-card, and the SEP asks implementers to "follow the current, versioned extension specification rather than this historical snapshot". The scenario is pinned to ext-server-card@28db12c9, current main. Tested requirements quote the same sentences at the SEP's snapshot (526201bb); 28db12c9 adds
Remote.extensionsInfo(ext-server-card#55). The repo README still labels it experimental.What changes
sep-2127-server-card: the 16 checks from #550, plus a preflight check (#550's correction), registered underio.modelcontextprotocol/server-card, the Extension Identifier in SEP-2127's header.card-schema-valid; any other status (404, 405, 3xx, 401, 5xx) skips every check. No answer at all failscard-schema-valid. Missing prerequisites useuntestableCheck()(#248).pending, beside Tasks and Skills: the extension is optional, so a default run should not grade it.cache-controlrequires aCache-Controlheader and does not gradepublicormax-age=3600, which the spec shows in a code block under that SHOULD. Say if those directives should be graded.card-schema-validversion-semverversionis SemVer 2.0.0card-media-typeContent-Type: application/mcp-server-card+jsoncors-allow-originAccess-Control-Allow-Origin: *cors-expose-headersAccess-Control-Expose-HeadersincludesETagcors-preflight*or the origincors-allow-methodsAccess-Control-Allow-MethodsincludesGETcors-allow-headersAccess-Control-Allow-HeadersincludesContent-Type,If-None-Matchcache-controlCache-ControlheaderetagETagheaderif-none-match304consistent-transportstreamable-httpconsistent-protocol-versionsupportedProtocolVersions⊆server/discoversupportedVersionsconsistent-versionversionvsserverInfo.versionconsistent-namenamevsserverInfo.name, when that is reverse-DNSconsistent-titletitlevsserverInfo.titleconsistent-descriptiondescriptionvsserverInfo.description(IDs drop the
sep-2127-prefix here.)$schemaURL form;name,versionanddescriptionare schema-required. A card failing the v1 schema is graded FAILURE; say if a failure other than$schemashould be WARNING.src/seps/sep-2127.yaml): HTTPS in production, rate limiting, client requirements, the disclosure MUST NOT,icons. AI Catalog discovery is out of scope.SOURCEfile, assrc/spec-types/is. The everything-server hosts a card.traceability.jsonpicks up the new row on its weekly refresh.Prove it passes and fails
examples/servers/typescript/sep-2127-server-card-fixture.ts, asserted innegative.test.ts:/good/mcp: all 17SUCCESS, with and without a trailing slash on the URL./html/mcp:card-schema-validand all five CORS checksFAILURE; nothing skipped./contradict/mcp: a correctly served card contradictingserver/discover; all six consistency checksWARNING./none/mcp(404),/auth/mcp(401): all 17SKIPPED.card-schema-validFAILURE, naming the cause.Forcing every graded check to
SUCCESS(skips left as skips) turns three of the six cases red. Everything-server:Passed: 15/15.npm run build,npm run checkandnpm test(647/647) pass.SDKs
main(5ee54ee3)SKIPPED(no card)cors-expose-headerscors-expose-headers,cors-allow-headers,cors-preflight(on the Fetch reading)python-sdk#3139 (draft) not run. Output and curl confirmation in the first comment.
Open questions from #550
pendingas here,active, or a suite of its own for extensions?dns-rebinding.tsdoes: the right shape?—
Drafted and coded by Claude · Edited, Reviewed and Approved by James Wolfe