{"slug": "serving-well-known-mcp-json-for-mcp-directories", "title": "Serving /.well-known/mcp.json For MCP Directories", "summary": "Jake Marsh documented serving /.well-known/mcp.json for MCP directories after mcpub.dev required the file to list Taskhold, finding that mcpub's open-source check accepts any response other than a 404 within 5 seconds and that an empty {} passes. Marsh reported the discovery path now follows SEP-2127, merged in October 2026 as an optional extension that splits discovery into an AI Catalog at /.well-known/ai-catalog.json and per-server cards at <MCP URL>/server-card, replacing the October 2025 SEP-1649 proposal. Marsh also noted Smithery's scanner still reads the older SEP-1649 card at /.well-known/mcp/server-card.json and listed no tools for Taskhold until that card was served.", "body_md": "# Serving /.well-known/mcp.json For MCP Directories\n\n[Jake Marsh](https://deallocatedobjects.com/about)\n\nI was adding [Taskhold](https://taskhold.com/?ref=deallocated-post) to [mcpub.dev](https://mcpub.dev), an open MCP directory, and its submit step says to create `/.well-known/mcp.json` on your domain first, with any content. So what’s that file supposed to contain?\n\nNothing in particular, it turns out. mcpub is open source, and its whole check is one GET:\n\nAnything but a 404 within 5 seconds passes, and the README says an empty `{}` is fine. It’s proof you control the domain. The one way to fail it is a catch-all route that renders a 404 page for unknown paths.\n\n## Where The Spec Ended Up[#](#where-the-spec-ended-up)\n\nThe path comes from [SEP-1649](https://github.com/modelcontextprotocol/modelcontextprotocol/issues/1649), an October 2025 proposal for “MCP Server Cards” at `.well-known/mcp.json`. It was replaced by [SEP-2127](https://modelcontextprotocol.io/seps/2127-mcp-server-cards), merged in October 2026 as an optional extension, which splits discovery in two:\n\n1. An **AI Catalog** at`/.well-known/ai-catalog.json` lists the servers on a domain.\n2. Each server’s **card** lives where the catalog says, with`<your MCP URL>/server-card` as the default.\n\nThe working group’s [discovery doc](https://github.com/modelcontextprotocol/ext-server-card/blob/main/docs/discovery.md) explains why the card moved out: “`.well-known` is for *site-wide* metadata, whereas an individual server’s card is *application-level* metadata.” They also ruled out serving the card from a plain GET on the MCP endpoint, because in Streamable HTTP that GET already opens the SSE stream.\n\nA card is small on purpose: a reverse-DNS `name`, `version`, a `description` of up to 100 characters, and `remotes` with each endpoint’s transport and URL. It leaves out the tool list, since tools can differ per signed-in user, and clients should get them from `tools/list` after connecting. Serve it as `application/mcp-server-card+json` with `Access-Control-Allow-Origin: *`, since browser-based clients read it, plus `Cache-Control: public, max-age=3600` and an `ETag`. [CallForMe](https://callforme.tel/?ref=deallocated-post)’s card uses `remotes` to list two endpoints: an OAuth one and an open one for clients that can’t do OAuth.\n\nTaskhold’s catalog has one entry:\n\nSome directories still read the older SEP-1649 card at `/.well-known/mcp/server-card.json`, which includes the tool list. Smithery’s scanner was one: it listed no tools for Taskhold until I served that card, because it couldn’t get past the sign-in. Taskhold builds that list by registering the real tools on a throwaway `McpServer` and calling `tools/list`, so it can’t drift from what the server offers.\n\nThere’s no auth field either. MCP already finds auth through the 401 on the first request, which points at `/.well-known/oauth-protected-resource`, as I covered in [how remote MCP servers trigger OAuth sign-in](https://deallocatedobjects.com/posts/how-remote-mcp-servers-trigger-oauth-sign-in). That file names the authorization server:\n\nThe discovery doc calls the OAuth files “genuinely site-wide,” which is why they stay under `.well-known` while the card moved out. The card says where to connect and the OAuth files say how to sign in.\n\n## What I Serve[#](#what-i-serve)\n\nTaskhold’s `mcp.json` is a static file that points at the real documents instead of copying them (trimmed):\n\nFor a remote MCP server with OAuth, here’s what I’d serve, most important first:\n\n- the OAuth metadata (`oauth-protected-resource` and`oauth-authorization-server` ), because clients can’t sign in without it\n- a card at `<MCP URL>/server-card` in the SEP-2127 shape\n- `/.well-known/ai-catalog.json` pointing at that card\n- `/.well-known/mcp.json` for directories like mcpub that ask for it\n\nOne loose end: the `$schema` URL every card is required to use returned a 404 when I checked, and there’s an [open issue](https://github.com/modelcontextprotocol/modelcontextprotocol/issues/3562) for it. Use the URL anyway, and hold off on validating against it in CI.", "url": "https://wpnews.pro/news/serving-well-known-mcp-json-for-mcp-directories", "canonical_source": "https://deallocatedobjects.com/posts/serving-well-known-mcp-json-for-mcp-directories", "published_at": "2026-11-27 14:00:00+00:00", "updated_at": "2026-11-27 14:11:53.286877+00:00", "lang": "en", "topics": ["agent-protocols", "ai-agents", "developer-tools", "ai-tools"], "entities": ["Jake Marsh", "Taskhold", "mcpub.dev", "Model Context Protocol", "SEP-2127", "SEP-1649", "Smithery", "CallForMe"], "also_reported_by": [], "takeaway": "Serve an OAuth metadata file, a SEP-2127 server card at <MCP URL>/server-card, an ai-catalog.json pointing at it, and a /.well-known/mcp.json that returns anything but a 404 within 5 seconds, since mcpub accepts an empty {} and Smithery only listed Taskhold's tools once the older SEP-1649 card was s", "recommendation": {"advice": "Serve /.well-known/oauth-protected-resource and oauth-authorization-server first, then a SEP-2127 card at <MCP URL>/server-card plus /.well-known/ai-catalog.json, and add the legacy SEP-1649 card so scanners like Smithery can list your tools.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/serving-well-known-mcp-json-for-mcp-directories", "markdown": "https://wpnews.pro/news/serving-well-known-mcp-json-for-mcp-directories.md", "text": "https://wpnews.pro/news/serving-well-known-mcp-json-for-mcp-directories.txt", "jsonld": "https://wpnews.pro/news/serving-well-known-mcp-json-for-mcp-directories.jsonld"}}