-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add mcp.json discovery protocol
#1054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Very interested in this, is there a corresponding SEP Issue for it to facilitate discussion? |
|
Some previous discussion: https://github.com/orgs/modelcontextprotocol/discussions/84 I strongly suggest adopting/embedding the |
Not yet, sorry mind catching me up on what SEP means? Would it just be something like this? https://github.com/orgs/modelcontextprotocol/discussions/84
Ooh, thanks for letting me know! Will take a look, definitely happy to unify the proposals if it makes sense 👍 |
Yep! full details here: https://modelcontextprotocol.io/community/sep-guidelines But we've gained a way to decide on these things :) |
+1 on this! You should feel free to evolve that shape to include the features important to the .well-known use case. We'd all benefit from aligning on this static representation of servers we can unify across all the relevant use cases. I think the only thing missing from the current iteration of Couple small thoughts from earlier conversations on .well-known:
Thank you for taking this on! Very much needed. Edit: As a follow-on to point 2, the registry working group is about to propose another .well-known endpoint for the purpose of storing HTTP-based domain verification. Something like |
|
Please change the label from SEP-requested to SEP once a SEP is available. |
|
(Why was it closed?) |
|
Hi! Sorry, I just don't have the bandwidth to navigate the convo and align on format and next steps here, but I suspect this is still very much needed. If no one else can pick this up then I can try to find time to reopen |
Introduces server discovery mechanism for MCP via
/.well-known/mcp.json, enabling automatic detection of MCP servers on domains.Motivation and Context
The MCP ecosystem needs a standardized way for remote MCP servers to advertise their presence and capabilities. This PR introduces a discovery mechanism that enables:
/.well-known/mcp.jsonon any domainExample discovery file (GET https://www.notion.so/.well-known/mcp.json):
{ "name": "Notion", "description": "Connect your Notion workspace to search, update, and trigger workflows across tools.", "icon": "https://www.notion.so/images/notion-logo-block-main.svg", "endpoint": "https://mcp.notion.com/mcp" }Implementation Details
ServerDiscoveryMetadatainterface to TypeScript schema/specification/draft/server/discovery/docs/concepts/discoveryendpointfield is required when web transports are availableHow Has This Been Tested?
Breaking Changes
None - this is an additive feature that doesn't affect existing functionality.
Types of changes
Checklist
Additional context
This feature is based on discussions with teams at Cursor and Anthropic about improving MCP server discoverability. The well-known URI pattern follows RFC 8615 standards.