Repository navigation
MCP connectors: support Client ID Metadata Documents (needed for Tableau's hosted MCP server) #1296
Closed
EljieGoc-ong
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The problem
The MCP connectors (
gatekeeper-mcp,gatekeeper-mcp-portal) can only identify themselves to an authorization server by dynamic client registration (RFC 7591). Some MCP servers' authorization servers don't offer it and take Client ID Metadata Documents instead, which the current MCP authorization spec prefers.Tableau's hosted MCP server is one (docs):
https://mcp.tableau.comanswers401withresource_metadatapointing at its protected resource metadata, whose authorization server ishttps://sso.online.tableau.com./.well-known/oauth-authorization-serverhasclient_id_metadata_document_supported: true,code_challenge_methods_supported: ["S256"], and noregistration_endpoint.client_idURL, its/oauth2/authorizetries to fetch the document, so it doesn't appear to restrict clients to a fixed list.Pasting
https://mcp.tableau.cominto the MCP connector therefore fails withIncompatible auth server: does not support dynamic client registration.A proposed change
@modelcontextprotocol/client2.3.0 already supports this: it usesOAuthClientProvider.clientMetadataUrlwhen the server advertisesclient_id_metadata_document_supported. The connectors just never set it. A small change could:<BASE_URL>/oauth/client-metadata.json(itsclient_idis that URL; the sameclient_name, single redirect URI andtoken_endpoint_auth_method: "none"as today's registration; nothing secret), andclientMetadataUrl.It needs to be opt-in (for example
MCP_CLIENT_METADATA_DOCUMENT: "true"). The authorization server fetches the document without the user's cookies, so behind Cloudflare Access it is unreachable until that path is exempted. The SDK also prefers it over registration whenever a server offers both, so turning it on by default would break servers that registration serves today.I've opened a PR with an implementation, tests and README updates for you to assess or close as you see fit: #1295. Would you take this, or would you rather solve it another way?
All reactions