{"title":"Serving /.well-known/mcp.json For MCP Directories","html_url":"https://deallocatedobjects.com/posts/serving-well-known-mcp-json-for-mcp-directories","source_url":"","markdown_content":"I 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\n```rust title=\"mcpub/src/main.rs\"\nmatch tokio::time::timeout(\n    Duration::from_secs(CHECK_TIMEOUT_S),\n    client.get(&wk_url).send(),\n).await {\n    Ok(Ok(resp)) => resp.status() != 404,\n    _            => false,\n}\n```\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\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\n```json title=\"https://taskhold.com/.well-known/ai-catalog.json\"\n{\n  \"specVersion\": \"1.0\",\n  \"entries\": [\n    {\n      \"identifier\": \"urn:air:taskhold.com:mcp\",\n      \"displayName\": \"Taskhold MCP server (task list shared with your coding agents)\",\n      \"type\": \"application/mcp-server-card+json\",\n      \"url\": \"https://taskhold.com/api/mcp/server-card\",\n      \"representativeQueries\": [\"What should I work on next from my task list?\"]\n    }\n  ]\n}\n```\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](/posts/how-remote-mcp-servers-trigger-oauth-sign-in). That file names the authorization server:\n\n```json title=\"https://taskhold.com/.well-known/oauth-protected-resource/api/mcp\"\n{\n  \"resource\": \"https://taskhold.com/api/mcp\",\n  \"authorization_servers\": [\"https://taskhold.com\"],\n  \"scopes_supported\": [\"tasks\"]\n}\n```\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\n\nTaskhold's `mcp.json` is a static file that points at the real documents instead of copying them (trimmed):\n\n```json title=\"https://taskhold.com/.well-known/mcp.json\"\n{\n  \"name\": \"Taskhold\",\n  \"websiteUrl\": \"https://taskhold.com\",\n  \"servers\": [\n    {\n      \"url\": \"https://taskhold.com/api/mcp\",\n      \"transport\": \"streamable-http\",\n      \"authentication\": {\n        \"type\": \"oauth2\",\n        \"protectedResourceMetadata\": \"https://taskhold.com/.well-known/oauth-protected-resource/api/mcp\"\n      }\n    }\n  ],\n  \"serverCard\": \"https://taskhold.com/.well-known/mcp/server-card.json\"\n}\n```\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.","html_content":"<p>I was adding <a href=\"https://taskhold.com/?ref=deallocated-post\">Taskhold</a> to <a href=\"https://mcpub.dev\">mcpub.dev</a>, an open MCP directory, and its submit step says to create <code>/.well-known/mcp.json</code> on your domain first, with any content. So what’s that file supposed to contain?</p>\n<p>Nothing in particular, it turns out. mcpub is open source, and its whole check is one GET:</p>\n<figure class=\"code\" data-lang=\"rust\"><figcaption><span class=\"file\">mcpub/src/main.rs</span><span class=\"lang\">Rust</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">match</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> tokio</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">time</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">timeout</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">    Duration</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">::</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">from_secs</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">CHECK_TIMEOUT_S</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">),</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    client</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">get</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">&#x26;</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">wk_url)</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">send</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(),</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.await</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> {</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">    Ok</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">Ok</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(resp)) </span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=></span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> resp</span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">.</span><span style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">status</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">() </span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">!=</span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> 404</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    _            </span><span style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=></span><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> false</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre></figure><p>Anything but a 404 within 5 seconds passes, and the README says an empty <code>{}</code> 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.</p>\n<h2 id=\"where-the-spec-ended-up\" data-level=\"3\">Where The Spec Ended Up</h2>\n<p>The path comes from <a href=\"https://github.com/modelcontextprotocol/modelcontextprotocol/issues/1649\">SEP-1649</a>, an October 2025 proposal for “MCP Server Cards” at <code>.well-known/mcp.json</code>. It was replaced by <a href=\"https://modelcontextprotocol.io/seps/2127-mcp-server-cards\">SEP-2127</a>, merged in October 2026 as an optional extension, which splits discovery in two:</p>\n<ol>\n<li>An <strong>AI Catalog</strong> at <code>/.well-known/ai-catalog.json</code> lists the servers on a domain.</li>\n<li>Each server’s <strong>card</strong> lives where the catalog says, with <code>&lt;your MCP URL&gt;/server-card</code> as the default.</li>\n</ol>\n<p>The working group’s <a href=\"https://github.com/modelcontextprotocol/ext-server-card/blob/main/docs/discovery.md\">discovery doc</a> explains why the card moved out: “<code>.well-known</code> is for <em>site-wide</em> metadata, whereas an individual server’s card is <em>application-level</em> 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.</p>\n<p>A card is small on purpose: a reverse-DNS <code>name</code>, <code>version</code>, a <code>description</code> of up to 100 characters, and <code>remotes</code> 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 <code>tools/list</code> after connecting. Serve it as <code>application/mcp-server-card+json</code> with <code>Access-Control-Allow-Origin: *</code>, since browser-based clients read it, plus <code>Cache-Control: public, max-age=3600</code> and an <code>ETag</code>. <a href=\"https://callforme.tel/?ref=deallocated-post\">CallForMe</a>’s card uses <code>remotes</code> to list two endpoints: an OAuth one and an open one for clients that can’t do OAuth.</p>\n<p>Taskhold’s catalog has one entry:</p>\n<figure class=\"code\" data-lang=\"json\"><figcaption><span class=\"file\">https://taskhold.com/.well-known/ai-catalog.json</span><span class=\"lang\">JSON</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">{</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"specVersion\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"1.0\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"entries\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: [</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    {</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">      \"identifier\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"urn:air:taskhold.com:mcp\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">      \"displayName\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"Taskhold MCP server (task list shared with your coding agents)\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">      \"type\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"application/mcp-server-card+json\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">      \"url\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"https://taskhold.com/api/mcp/server-card\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">      \"representativeQueries\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: [</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"What should I work on next from my task list?\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">]</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    }</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">  ]</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre></figure><p>Some directories still read the older SEP-1649 card at <code>/.well-known/mcp/server-card.json</code>, 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 <code>McpServer</code> and calling <code>tools/list</code>, so it can’t drift from what the server offers.</p>\n<p>There’s no auth field either. MCP already finds auth through the 401 on the first request, which points at <code>/.well-known/oauth-protected-resource</code>, as I covered in <a href=\"https://deallocatedobjects.com/posts/how-remote-mcp-servers-trigger-oauth-sign-in\">how remote MCP servers trigger OAuth sign-in</a>. That file names the authorization server:</p>\n<figure class=\"code\" data-lang=\"json\"><figcaption><span class=\"file\">https://taskhold.com/.well-known/oauth-protected-resource/api/mcp</span><span class=\"lang\">JSON</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">{</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"resource\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"https://taskhold.com/api/mcp\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"authorization_servers\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: [</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"https://taskhold.com\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">],</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"scopes_supported\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: [</span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"tasks\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">]</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre></figure><p>The discovery doc calls the OAuth files “genuinely site-wide,” which is why they stay under <code>.well-known</code> while the card moved out. The card says where to connect and the OAuth files say how to sign in.</p>\n<h2 id=\"what-i-serve\" data-level=\"3\">What I Serve</h2>\n<p>Taskhold’s <code>mcp.json</code> is a static file that points at the real documents instead of copying them (trimmed):</p>\n<figure class=\"code\" data-lang=\"json\"><figcaption><span class=\"file\">https://taskhold.com/.well-known/mcp.json</span><span class=\"lang\">JSON</span></figcaption><pre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">{</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"name\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"Taskhold\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"websiteUrl\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"https://taskhold.com\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"servers\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: [</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    {</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">      \"url\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"https://taskhold.com/api/mcp\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">      \"transport\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"streamable-http\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">      \"authentication\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: {</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">        \"type\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"oauth2\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">        \"protectedResourceMetadata\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"https://taskhold.com/.well-known/oauth-protected-resource/api/mcp\"</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">      }</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    }</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">  ],</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"serverCard\"</span><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: </span><span style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"https://taskhold.com/.well-known/mcp/server-card.json\"</span></span>\n<span class=\"line\"><span style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}</span></span></code></pre></figure><p>For a remote MCP server with OAuth, here’s what I’d serve, most important first:</p>\n<ul>\n<li>the OAuth metadata (<code>oauth-protected-resource</code> and <code>oauth-authorization-server</code>), because clients can’t sign in without it</li>\n<li>a card at <code>&lt;MCP URL&gt;/server-card</code> in the SEP-2127 shape</li>\n<li><code>/.well-known/ai-catalog.json</code> pointing at that card</li>\n<li><code>/.well-known/mcp.json</code> for directories like mcpub that ask for it</li>\n</ul>\n<p>One loose end: the <code>$schema</code> URL every card is required to use returned a 404 when I checked, and there’s an <a href=\"https://github.com/modelcontextprotocol/modelcontextprotocol/issues/3562\">open issue</a> for it. Use the URL anyway, and hold off on validating against it in CI.</p>","created_at":"2026-11-27T14:00:00.000Z","updated_at":"2026-11-27T14:00:00.000Z"}