From 4bcd95cc41bf7180f3ddc74cfe6d0e0e09db4679 Mon Sep 17 00:00:00 2001 From: saidsurucu Date: Wed, 2 Jul 2025 03:24:45 +0300 Subject: [PATCH] Add service_documentation to OAuth metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Point Claude to correct MCP endpoint path /mcp/ - This should fix the 405 Method Not Allowed errors - OAuth metadata now includes service_documentation field 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- mcp_auth_http_adapter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mcp_auth_http_adapter.py b/mcp_auth_http_adapter.py index 63ce4ae..7c4c61c 100644 --- a/mcp_auth_http_adapter.py +++ b/mcp_auth_http_adapter.py @@ -42,7 +42,8 @@ async def get_oauth_metadata(): "grant_types_supported": ["authorization_code", "refresh_token"], "code_challenge_methods_supported": ["S256"], "token_endpoint_auth_methods_supported": ["none"], - "scopes_supported": ["mcp:tools:read", "mcp:tools:write", "openid", "profile", "email"] + "scopes_supported": ["mcp:tools:read", "mcp:tools:write", "openid", "profile", "email"], + "service_documentation": f"{BASE_URL}/mcp/" })