From 68eaeaf58c3b878b3985587bcf657eccce8fb6ae Mon Sep 17 00:00:00 2001 From: Jonathan Norris Date: Mon, 27 Jul 2026 12:58:47 -0400 Subject: [PATCH] fix(mcp-worker): restore dynamic client registration endpoint Signed-off-by: Jonathan Norris --- mcp-worker/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mcp-worker/src/index.ts b/mcp-worker/src/index.ts index 69c10841..736d5522 100644 --- a/mcp-worker/src/index.ts +++ b/mcp-worker/src/index.ts @@ -167,6 +167,11 @@ export default { defaultHandler: app, authorizeEndpoint: '/oauth/authorize', tokenEndpoint: '/oauth/token', + // Enables RFC 7591 Dynamic Client Registration. MCP clients such as + // Claude Code and `mcp-remote` require a `registration_endpoint` in the + // OAuth discovery metadata to obtain a client_id; without it they fail + // with "does not support dynamic client registration". See PR #577. + clientRegistrationEndpoint: '/oauth/register', tokenExchangeCallback: createTokenExchangeCallback(env), })