MCP Server Enterprise Login Compatibility
awca22 · reddit · 2026-07-18
The author details integrating MCP servers with enterprise login systems. The core challenge is that MCP clients attempt automatic OAuth client registration, unsupported by many enterprise IdPs.
Two scenarios are described:
- Personal projects where MCP servers can't be exposed directly due to embedded OpenRouter keys;
- Work environments needing to expose an API-key-only MCP service to AI agents and colleagues, blocked by security policies against direct key usage.
The specific roadblock: Cloudflare Access lacks support for the dynamic client registration flow expected by MCP clients, triggering the "Incompatible auth server: does not support dynamic client registration" error. The author explains how DCR works in the MCP spec and why IdPs like Entra, Okta, and Cognito disallow self-registration.
Their solution is a custom OAuth bridge layer that:
- Provides /.well-known metadata;
- Handles DCR and PKCE;
- Registers clients to the bridge;
- Connects to the actual enterprise IdP to issue short-lived, audience-bound JWTs.
This open-source project, mcp-sso, works with claude.ai, ChatGPT, Claude Code, Codex CLI, and the official MCP SDK, tested against Cloudflare Access, Google, and Entra. The author notes Claude clients only attempt CIMD if metadata declares clientidmetadatadocumentsupported: true, otherwise falling back to DCR.
More from coding & agent
- shadcn's /improve skill paired with Grok on SuperGrok Heavy for plowing through issues — shadcn · 2026-10-27
- Paradigm Launches Envoys: Your Claude Code and Codex on Your Research Graph, Free — tensorqt · 2026-10-27
- AXL launches remote MCP server exposing 1,284 sales and marketing APIs to Claude and Codex — EdTech_Padre · 2026-10-27
- GitHub's Thomas Dohmke ships Entire, a Git forge built for agent-human collaboration — carrycooldude · 2026-10-27
- OmarchyTV hits GitHub: Omarchy-style TV launcher with AI TUI and MCP — alexcovo_eth · 2026-10-27
- AWS on agent prompt caching: explicit + implicit patterns to slash token costs — AWS ML Blog · 2026-10-27