From 905a92c23da11e9114dabfa07f91e075903e42d1 Mon Sep 17 00:00:00 2001 From: Potluck Mittal Date: Mon, 13 Jul 2026 16:59:35 -0400 Subject: [PATCH] Add oauth.authServerMetadataUrl hint to bundled .mcp.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Users installing the Val Town plugin from the directory get no auth prompt and no working tools, with no error surfaced (repro + network trace in val-town/plugins#). The plugin-install client path never attempts a connection to the MCP server at all, so this alone won't fix that — the actual gap is in the install/first-use trigger logic on the claude.ai side (see anthropics/claude-code#36307 and anthropics/claude-ai-mcp#359, which reports the marketplace sync pipeline silently drops the oauth block from bundled .mcp.json files). Adding this now so we're ready once that's fixed upstream. --- plugin/.mcp.json | 5 ++++- plugin/mcp.json | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugin/.mcp.json b/plugin/.mcp.json index 3525886..c21cef6 100644 --- a/plugin/.mcp.json +++ b/plugin/.mcp.json @@ -2,7 +2,10 @@ "mcpServers": { "valtown": { "type": "http", - "url": "https://api.val.town/v3/mcp" + "url": "https://api.val.town/v3/mcp", + "oauth": { + "authServerMetadataUrl": "https://api.val.town/.well-known/oauth-authorization-server" + } } } } diff --git a/plugin/mcp.json b/plugin/mcp.json index 00feb82..cc4de62 100644 --- a/plugin/mcp.json +++ b/plugin/mcp.json @@ -1,7 +1,10 @@ { "mcpServers": { "valtown": { - "url": "https://api.val.town/v3/mcp" + "url": "https://api.val.town/v3/mcp", + "oauth": { + "authServerMetadataUrl": "https://api.val.town/.well-known/oauth-authorization-server" + } } } }