works with /mcp/ in both mcp inspector and vscode
This commit is contained in:
@@ -242,7 +242,7 @@ async def handle_oauth_protected_resource(request: Request):
|
|||||||
config = get_oauth_config()
|
config = get_oauth_config()
|
||||||
base_url = config.get_oauth_base_url()
|
base_url = config.get_oauth_base_url()
|
||||||
|
|
||||||
# For streamable-http transport, the MCP server runs at /mcp/
|
# For streamable-http transport, the MCP server runs at /mcp
|
||||||
# This is the actual resource being protected
|
# This is the actual resource being protected
|
||||||
resource_url = f"{base_url}/mcp/"
|
resource_url = f"{base_url}/mcp/"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user