Skip to content

docs(discovery): clarify that card name and serverInfo.name need not be equal - #59

Open
davila7 wants to merge 1 commit into
modelcontextprotocol:mainfrom
davila7:docs/card-name-vs-serverinfo-name
Open

davila7 wants to merge 1 commit into
modelcontextprotocol:mainfrom
davila7:docs/card-name-vs-serverinfo-name

Conversation

@davila7

@davila7 davila7 commented Dec 5, 2026

Copy link
Copy Markdown

Adds one paragraph to "Consistency with Runtime Behavior" in docs/discovery.md clarifying that the card's name and the runtime serverInfo.name are not expected to be equal, and how servers and clients should treat the difference.

Motivation and Context

The section says the serverInfo a client sees once connected (name, version) SHOULD NOT contradict the Server Card. For version that is a plain comparison. For name it is not: the card's name must match namespace/name, while serverInfo.name has no required format. A client following the current text cannot tell whether a difference is a contradiction or just two naming conventions.

In practice they usually differ. Servers that publish a card today, comparing the card's name with the serverInfo.name returned by initialize:

Server Card name serverInfo.name
GitHub MCP Server (#34) io.github.github/github-mcp-server github-mcp-server
Hugging Face co.huggingface/mcp co.huggingface/mcp
aitmpl com.aitmpl/aitmpl aitmpl
seoaeogeo.app app.seoaeogeo/seo-aeo-geo seoaeogeo
cheapcarent.com com.cheapcarent/search cheapcarent-search

Five servers, four conventions. GitHub's values come from its source (pkg/http/servercard/card.go, pkg/github/server.go) and aitmpl's from ours; the other three are live initialize responses from 2026-12-05. We found these while adding Server Card checks to the aitmpl.com catalog, which fetches <url>/server-card for the 82 remote MCP servers it lists (13 serve one).

The new paragraph says:

  • a difference between card name and serverInfo.name alone is not a contradiction;
  • servers SHOULD set serverInfo.name to the card's full name or its segment after the slash, so a client can match them;
  • clients SHOULD NOT treat a differing serverInfo.name as evidence that the card describes another server.

How Has This Been Tested?

Docs only: npx prettier --check docs/discovery.md passes. No schema or example changes.

Breaking Changes

None. The server-side SHOULD is new guidance; existing cards stay valid.

Types of changes

  • Documentation update

Additional context

If maintainers prefer to leave servers unconstrained, the first and last points stand on their own and I can drop the server SHOULD.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant