You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add optional tool metadata to Server Card for offline discovery #30
One thing we keep running into with the current spec direction: without tool definitions in the card, the card doesn't really tell you what a server does.
The spec defers primitives because servers are dynamic, but there's a whole class of consumers that will never connect to a live MCP server like registries, developer portals, agent orchestrators planning tool routing. For them the card ends up like an API catalog that lists URLs but no operations.
The OpenAPI parallel feels apt here: static documentation of what a server supports, used for discovery not execution. That model works well in practice and I think the same approach can work for MCP tools.
The fix seems straightforward: add optional tools, resources, and prompts arrays using the existing MCP types. Dynamic servers just don't set them. Clients still use tools/list at runtime as the source of truth. The static list is for discovery, not execution.
We built an open-source renderer that already visualizes static tool definitions from card JSON and it works really well in practice. Happy to demo if helpful.
Really like this direction, and the OpenAPI-for-discovery framing makes sense to me. The optional + opt-out + "tools/list stays the source of truth" model is exactly right, so no concerns there.
The one thing I'd add comes from the gateway/aggregator side, because "dynamic servers just don't set them" isn't quite cost-free for us. We run a gateway in front of ~1,100 servers where the tool list is per-caller: it shifts with the user's RBAC scope, per-integration credential state, usage-based discovery, and tool-scanning, so we genuinely can't publish an honest static list. That part's fine. But if static servers populate rich tool arrays and dynamic ones just leave the field empty, then in the exact consumers this is for (registries, portals, orchestrators) the dynamic servers render as empty or featureless next to the static ones. "Absent" is ambiguous too: a consumer can't tell "no tools" from "didn't bother" from "dynamic."
So my one real ask is to make dynamic a first-class value for these fields, not just "set it or don't." Let a server positively say "I have tools, they're dynamic, fetch them at runtime" as a distinct signal from an empty list and from a static list. Then a registry or orchestrator has something accurate to show and route on, and dynamic servers aren't quietly penalized for being honest. I think this came up as a sticking point on the original SEP, so not a new idea, just a vote for it.
One related thing worth keeping in mind: for a gateway especially, a static tool list at a .well-known endpoint is also a public recon surface, and tool descriptions are exactly the prompt-injection/poisoning vector. So even if the field existed we wouldn't populate it, which is another reason the dynamic marker matters: it lets us signal capability without publishing the actual surface.
Happy to be a dynamic/gateway test case if it helps figure out what these servers should expose instead. My guess is capability booleans, maybe counts or categories, and a pointer to live listing, rather than full tool defs. Either way, glad to weigh in early.
Strong +1, and some operator evidence for the consumer class this issue describes.
I run an internal MCP gateway and a server directory at my company, fronting a few dozen OAuth-protected servers. The directory's job is to answer "what does this server offer?" for engineers deciding what to integrate, and for security reviews that build per-tool allowlists. There's currently no spec-compliant way to answer that question. tools/list sits behind the same authorization as tool calls, so in practice we pick between bad options. Have a human authenticate so the gateway can harvest the catalog with their token, then cache it; the cache goes stale, and there's no unauthenticated way to refresh or even validate it. Use a service identity, which may see a different catalog than a real user. Or have every server team duplicate their tool definitions out of band, which drifts from the runtime truth.
SEP-2127's "Why exclude primitives?" section gives the standing objection, that primitives vary by user and session so runtime tools/list is the only reliable truth. From the operator's seat that argument cuts the other way. Because there is no advertised catalog, everyone builds one anyway, out of band, harvested under whatever identity happened to be available. That catalog is more wrong than a publisher-authored one would ever be, and nothing in the protocol can tell you it's wrong. An advertised catalog is the OpenAPI model, the stable surface a publisher chooses to document, with no promise that every caller can invoke every entry. tools/list stays the per-principal runtime truth, unchanged. The draft spec already anticipates shared intermediaries caching catalogs (SEP-2549 gives tools/list results ttlMs and cacheScope: "public"); this proposal just takes the borrowed identity out of the loop.
The proposal should also state explicitly that the tool metadata must be retrievable without user authentication, wherever it ends up living, since that's the entire value for this consumer class. Spec issue #540 raised the same pre-auth gap for resources back in May 2025 and it's still open.
A few mechanics that would make this dependable for gateways and registries:
a content hash or version per tool entry, so a consumer can detect drift against what tools/list later returns
per-tool opt-out (a visibility flag), so publishers can keep genuinely sensitive tools out of the advertised set; servers whose tools are fully tenant-defined simply publish nothing
On the security objection that usually comes up here: keeping schemas from unauthenticated callers can limit information leakage, and the opt-out covers that. It shouldn't be mistaken for access control. If knowing that a tool named delete_database exists materially weakens a deployment, the deployment's authorization is the problem, and the cost of the secrecy is paid by every registry, gateway, and security-review workflow in the ecosystem.
SEP-2127 invites "a follow-on SEP" to work out "variant enumeration and clear consumer contracts" before primitive advertisement is added. Happy to help draft that if there's appetite from the WG.
Also a +1 here from an Arazzo Specification perspective. We had hoped that declarative tool advertisement would have made it into the Server Card extension definition. This would have enabled use to leverage these cards as part of our sourceDescriptions and then enable authoring workflows which leverage MCP tools, and in a manner where we could validate the correctness of the workflow document pre-execution.
This approach would follow along for how we support referencing OpenAPI, AsyncAPI, and also proposed SOAP enhancements (leveraging WSDLs) for our v1.2 RC.
Happy to contribute to making this a reality (at least one that can be opted in to).
Generally adding new tools requires deployments, and thus variant forms of Server Cards can be regenerated to appropriately ensure what's declared is valid for the intended audience.
The folks at Cisco DevNet are working on a similar type of spec for describing MCP servers: https://mcpdesc.org/docs/specification/ which we're considering but would naturally would prefer to adopt a formal/official mcp specification (or extension) approach.
Reacted by Simon Heimler, Kevin Duffey, Mohammed Alama and Vyshnavi Gadamsetti
+1, with evidence from the directory side and two points the thread has not covered yet.
We run aitmpl.com, an open catalog of Claude Code components that lists 180 MCP servers. A directory page needs to answer "what does this server offer?" before anyone connects, and we hit the same wall described above: of the 180, only 82 are remote, and many of those need auth before tools/list. So we did what the operator comment above predicted and built an out-of-band list. Each MCP component can declare mcpTools, mcpSkills and mcpEvents next to its config, keyed by server name, and the page renders them. It is declared by the author, not probed, and we tell authors to copy it from the live tools/list. Only 4 components declare it so far, which is the cost of an out-of-band format nobody else reads. A field in the card would be the place authors already publish.
Two things I'd add to the proposal:
Primitives now include more than tools, resources and prompts. Servers can serve skills (io.modelcontextprotocol/skills) and event types (SEP-3415, events/list). Both are things a directory wants to show before connecting, and both live behind extensions. If static primitives come back, it would help to define them so an extension can add its own list (skills, event types) without a schema change each time. That ties this to Add support for declaring Capabilities in Server Cards #48.
Carry tool annotations, not just names and schemas. For security review the useful pre-connect facts are readOnlyHint, destructiveHint and openWorldHint: that is what an allowlist is built from. They already exist on Tool, so reusing the type keeps them; a trimmed "name + description" shape would lose them.
On the dynamic case, +1 to the explicit dynamic marker suggested above. Our page already has to say "not declared" rather than "no tools", and a positive signal from the server would remove that guess.
Happy to test a draft against our catalog (13 servers there already publish a card) and share the consumer code: scripts/mcp_server_cards.py and dashboard/src/lib/mcp-capabilities.ts in davila7/claude-code-templates.
Following up after reading jdkim's static-primitives draft and #56, since that's where this is actually heading.
Annotations: the draft already covers my second point. Tool entries are full Tool objects, so annotations come along.
Skills and events: my first point would fit as a small extension to the draft. Today it defines tools, prompts and resources arrays. Skills (skills/list) and event types (events/list) have their own list operations and need the same "equals what the list returns for any caller" contract. One option is to let an official extension add its own array under its identifier, so a server serving skills can declare them without a new SEP each time. That is the case we hit in our catalog: the aitmpl MCP serves two skills next to its four tools, and today we can only declare them out of band.
Groups (Discuss impact of progressive disclosure (groups) on primitives in Server Cards #56): if groups land, a group looks like the natural unit to publish statically. Servers could declare the groups that are the same for every caller and leave the rest to groups/get, which covers part of the dynamic case without a separate marker.
Activity
S-Reagan commentedon Jun 23, 2026
Really like this direction, and the OpenAPI-for-discovery framing makes sense to me. The optional + opt-out + "tools/list stays the source of truth" model is exactly right, so no concerns there.
The one thing I'd add comes from the gateway/aggregator side, because "dynamic servers just don't set them" isn't quite cost-free for us. We run a gateway in front of ~1,100 servers where the tool list is per-caller: it shifts with the user's RBAC scope, per-integration credential state, usage-based discovery, and tool-scanning, so we genuinely can't publish an honest static list. That part's fine. But if static servers populate rich tool arrays and dynamic ones just leave the field empty, then in the exact consumers this is for (registries, portals, orchestrators) the dynamic servers render as empty or featureless next to the static ones. "Absent" is ambiguous too: a consumer can't tell "no tools" from "didn't bother" from "dynamic."
So my one real ask is to make
dynamica first-class value for these fields, not just "set it or don't." Let a server positively say "I have tools, they're dynamic, fetch them at runtime" as a distinct signal from an empty list and from a static list. Then a registry or orchestrator has something accurate to show and route on, and dynamic servers aren't quietly penalized for being honest. I think this came up as a sticking point on the original SEP, so not a new idea, just a vote for it.One related thing worth keeping in mind: for a gateway especially, a static tool list at a
.well-knownendpoint is also a public recon surface, and tool descriptions are exactly the prompt-injection/poisoning vector. So even if the field existed we wouldn't populate it, which is another reason thedynamicmarker matters: it lets us signal capability without publishing the actual surface.Happy to be a dynamic/gateway test case if it helps figure out what these servers should expose instead. My guess is capability booleans, maybe counts or categories, and a pointer to live listing, rather than full tool defs. Either way, glad to weigh in early.
docs: frame Server Card as a standalone connection entry point
vyshnavigadamsetti commentedon Jun 30, 2026
@pavelkornev @maiargu
christophercolumbusdog commentedon Jul 24, 2026
Strong +1, and some operator evidence for the consumer class this issue describes.
I run an internal MCP gateway and a server directory at my company, fronting a few dozen OAuth-protected servers. The directory's job is to answer "what does this server offer?" for engineers deciding what to integrate, and for security reviews that build per-tool allowlists. There's currently no spec-compliant way to answer that question.
tools/listsits behind the same authorization as tool calls, so in practice we pick between bad options. Have a human authenticate so the gateway can harvest the catalog with their token, then cache it; the cache goes stale, and there's no unauthenticated way to refresh or even validate it. Use a service identity, which may see a different catalog than a real user. Or have every server team duplicate their tool definitions out of band, which drifts from the runtime truth.SEP-2127's "Why exclude primitives?" section gives the standing objection, that primitives vary by user and session so runtime
tools/listis the only reliable truth. From the operator's seat that argument cuts the other way. Because there is no advertised catalog, everyone builds one anyway, out of band, harvested under whatever identity happened to be available. That catalog is more wrong than a publisher-authored one would ever be, and nothing in the protocol can tell you it's wrong. An advertised catalog is the OpenAPI model, the stable surface a publisher chooses to document, with no promise that every caller can invoke every entry.tools/liststays the per-principal runtime truth, unchanged. The draft spec already anticipates shared intermediaries caching catalogs (SEP-2549 givestools/listresultsttlMsandcacheScope: "public"); this proposal just takes the borrowed identity out of the loop.The proposal should also state explicitly that the tool metadata must be retrievable without user authentication, wherever it ends up living, since that's the entire value for this consumer class. Spec issue #540 raised the same pre-auth gap for resources back in May 2025 and it's still open.
A few mechanics that would make this dependable for gateways and registries:
tools/listlater returnsrequiredScopesper tool, which also serves the scope-visibility asks in SEP-1881 and org discussion #698On the security objection that usually comes up here: keeping schemas from unauthenticated callers can limit information leakage, and the opt-out covers that. It shouldn't be mistaken for access control. If knowing that a tool named
delete_databaseexists materially weakens a deployment, the deployment's authorization is the problem, and the cost of the secrecy is paid by every registry, gateway, and security-review workflow in the ecosystem.SEP-2127 invites "a follow-on SEP" to work out "variant enumeration and clear consumer contracts" before primitive advertisement is added. Happy to help draft that if there's appetite from the WG.
frankkilcommins commentedon Jul 28, 2026
Also a +1 here from an Arazzo Specification perspective. We had hoped that declarative tool advertisement would have made it into the Server Card extension definition. This would have enabled use to leverage these cards as part of our
sourceDescriptionsand then enable authoring workflows which leverage MCP tools, and in a manner where we could validate the correctness of the workflow document pre-execution.This approach would follow along for how we support referencing OpenAPI, AsyncAPI, and also proposed SOAP enhancements (leveraging WSDLs) for our v1.2 RC.
Happy to contribute to making this a reality (at least one that can be opted in to).
Generally adding new tools requires deployments, and thus variant forms of Server Cards can be regenerated to appropriately ensure what's declared is valid for the intended audience.
The folks at Cisco DevNet are working on a similar type of spec for describing MCP servers: https://mcpdesc.org/docs/specification/ which we're considering but would naturally would prefer to adopt a formal/official mcp specification (or extension) approach.
docs: add Server Card roadmap priorities (#47)
jdkim commentedon Sep 21, 2026
jdkim commentedon Oct 6, 2026
SamMorrowDrums commentedon Oct 7, 2026
@jdkim we will revisit but it will likely not be until November. Please also share in the community discord for more eyes.
vyshnavigadamsetti commentedon Oct 7, 2026
@SamMorrowDrums we have a similar issue raised which will go in the same direction modelcontextprotocol/modelcontextprotocol#540
jdkim commentedon Oct 10, 2026
jdkim commentedon Oct 15, 2026
vyshnavigadamsetti commentedon Oct 16, 2026
@jdkim I started the discussion in the discord channel in the servercard wg. It would be great if we could get the discussion going on there.
jdkim commentedon Oct 16, 2026
davila7 commentedon Dec 5, 2026
+1, with evidence from the directory side and two points the thread has not covered yet.
We run aitmpl.com, an open catalog of Claude Code components that lists 180 MCP servers. A directory page needs to answer "what does this server offer?" before anyone connects, and we hit the same wall described above: of the 180, only 82 are remote, and many of those need auth before
tools/list. So we did what the operator comment above predicted and built an out-of-band list. Each MCP component can declaremcpTools,mcpSkillsandmcpEventsnext to its config, keyed by server name, and the page renders them. It is declared by the author, not probed, and we tell authors to copy it from the livetools/list. Only 4 components declare it so far, which is the cost of an out-of-band format nobody else reads. A field in the card would be the place authors already publish.Two things I'd add to the proposal:
io.modelcontextprotocol/skills) and event types (SEP-3415,events/list). Both are things a directory wants to show before connecting, and both live behind extensions. If static primitives come back, it would help to define them so an extension can add its own list (skills, event types) without a schema change each time. That ties this to Add support for declaring Capabilities in Server Cards #48.readOnlyHint,destructiveHintandopenWorldHint: that is what an allowlist is built from. They already exist onTool, so reusing the type keeps them; a trimmed "name + description" shape would lose them.On the dynamic case, +1 to the explicit
dynamicmarker suggested above. Our page already has to say "not declared" rather than "no tools", and a positive signal from the server would remove that guess.Happy to test a draft against our catalog (13 servers there already publish a card) and share the consumer code:
scripts/mcp_server_cards.pyanddashboard/src/lib/mcp-capabilities.tsin davila7/claude-code-templates.Generated by Claude Code
davila7 commentedon Dec 5, 2026
Following up after reading jdkim's
static-primitivesdraft and #56, since that's where this is actually heading.Toolobjects, soannotationscome along.tools,promptsandresourcesarrays. Skills (skills/list) and event types (events/list) have their own list operations and need the same "equals what the list returns for any caller" contract. One option is to let an official extension add its own array under its identifier, so a server serving skills can declare them without a new SEP each time. That is the case we hit in our catalog: the aitmpl MCP serves two skills next to its four tools, and today we can only declare them out of band.Remote.extensionsInforather thanRemote.extensions, so the draft's migration section may need that rename.groups/get, which covers part of the dynamic case without a separate marker.Generated by Claude Code