GeezerVison is showing github.com — Add optional tool metadata to Server Card for offline discovery · Issue #30 · modelcontextprotocol/ext-server-card
Add optional tool metadata to Server Card for offline discovery #30Labels enhancementNew feature or requestv2For the second iteration of the SEP DescriptionOne 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.
Related: SEP-2127 comment ActivityS-Reagan commented on 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 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. vyshnavigadamsetti commented on Jun 30, 2026 christophercolumbusdog commented on 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/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
requiredScopes per tool, which also serves the scope-visibility asks in SEP-1881 and org discussion #698
- 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. frankkilcommins commented on 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 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 jdkim commented on Sep 21, 2026 jdkim commented on Oct 6, 2026 SamMorrowDrums commented on 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 commented on Oct 7, 2026 jdkim commented on Oct 10, 2026 jdkim commented on Oct 15, 2026 vyshnavigadamsetti commented on 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 commented on Oct 16, 2026
MetadataMetadataenhancementNew feature or requestv2For the second iteration of the SEP DevelopmentNo branches or pull requestsIssue actions
|