{"record":{"id":"4dd2394920eae5a4","repo":"BerriAI/litellm","slug":"mcp-server-authorization-url-is-not-configured-en","errorCode":null,"errorMessage":"MCP server authorization url is not configured. Endpoint discovery anchored on the configured Issuer (RFC 8414) failed or its metadata did not include this endpoint; check the proxy logs for 'MCP OAuth' warnings from server load, verify the Issuer, or set Authorization URL and Token URL manually.","messagePattern":"MCP server authorization url is not configured\\. Endpoint discovery anchored on the configured Issuer \\(RFC 8414\\) failed or its metadata did not include this endpoint; check the proxy logs for 'MCP OAuth' warnings from server load, verify the Issuer, or set Authorization URL and Token URL manually\\.","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py","lineNumber":1600,"sourceCode":"        \"client_secret\": \"dummy\",\n        \"redirect_uris\": client_facing_redirect_uris,\n    }\n\n    if mcp_server.client_id and not (\n        persist_credentials\n        and mcp_server.registration_url\n        and await _persisted_dcr_redirect_uri_is_stale(mcp_server, current_redirect_uri)\n    ):\n        return dummy_return\n\n    if await _reuse_persisted_dcr_client_if_available(\n        mcp_server,\n        current_redirect_uri=current_redirect_uri if persist_credentials else None,\n    ):\n        return dummy_return\n\n    if mcp_server.authorization_url is None:\n        raise HTTPException(\n            status_code=400,\n            detail=_endpoint_not_configured_detail(\n                mcp_server,\n                \"authorization url\",\n                \"set Authorization URL and Token URL manually\",\n                \"set Issuer to discover them from the identity provider (RFC 8414)\",\n            ),\n        )\n\n    if mcp_server.registration_url is None:\n        return dummy_return\n\n    bridge_relay: Final = _dcr_bridge_relays_client_registration(mcp_server)\n    if bridge_relay and not client_redirect_uris:\n        raise HTTPException(\n            status_code=400,\n            detail=\"redirect_uris is required to register a client with this server\",\n        )","sourceCodeStart":1582,"sourceCodeEnd":1618,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py#L1582-L1618","documentation":"Error \"MCP server authorization url is not configured. Endpoint discovery anchored on the configured Issuer (RFC 8414) failed or its metadata did not include this endpoint; check the proxy logs for 'MCP OAuth' warnings from server load, verify the Issuer, or set Authorization URL and Token URL manually.\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py:1600 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the configured Issuer is reachable and returns RFC 8414 metadata.","Set Authorization URL and Token URL manually in the server config."],"exampleFix":"Configure authorization_url and token_url explicitly.","handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}