Your MCP Client Registration Breaks When the Server Drops DCR
Dynamic Client Registration let an MCP client walk up to any server, POST for a client_id, and connect, with no setup. The 2026-07-28 spec deprecated it in favor of Client ID Metadata Documents, where your client_id is a URL the authorization server fetches.
A team I was helping ran an agent that connected to a shifting set of MCP servers, some internal, some from partners. The agent did not know any of them ahead of time, so it leaned on Dynamic Client Registration: on first contact with a server, it POSTed its metadata to the authorization server's registration endpoint, got a client_id back, and ran the OAuth flow. This worked for months and felt like magic, because nobody had to pre-provision anything. Then one partner tightened their identity provider, turned off open dynamic registration, and switched to the newer scheme the 2026-07-28 spec recommends. The agent had no code path for that. It hit the old registration endpoint, got a 404, and every tool behind that server went dark, with a log line that said nothing about why.
What dynamic registration actually did for you
The problem CIMD and DCR both solve is boring but real: OAuth assumes a client already has a client_id, and an MCP client meeting a server for the first time does not. There is no human to click through a developer console and register an app. The agent needs an identity now, at connection time, for a server it may never talk to again.
Dynamic Client Registration, specified in RFC 7591, solved that by letting the client register itself at runtime. The client POSTs a short metadata document to a registration endpoint, the authorization server mints a fresh client_id, and the flow continues. No pre-arrangement, no shared secret passed around out of band.
POST /register HTTP/1.1
Host: auth.partner.example
Content-Type: application/json
{
"client_name": "Field Ops Agent",
"redirect_uris": ["https://agent.example.com/callback"],
"grant_types": ["authorization_code"],
"token_endpoint_auth_method": "none"
}
# 201 Created
# { "client_id": "d4f9a1c7-...", "client_id_issued_at": 1764700000 }
That is genuinely convenient, and it is why MCP adopted it early. The catch is what it costs the server side. A registration endpoint that anyone can POST to is an open door: it mints a new identity on demand, which means it is a spam and denial-of-service target, and it tends to accumulate thousands of ephemeral client_id records that nobody can map back to a real caller. There is no clean way to revoke one, because you do not know which client holds it. The convenience for the client is a liability for the server, and that imbalance is what the spec is now correcting.
Why the spec is walking away from it
The 2026-07-28 client registration section is explicit: Dynamic Client Registration is deprecated, and new implementations should use Client ID Metadata Documents instead. DCR stays available only as a fallback for authorization servers that do not yet support the newer scheme. The word deprecated is doing the same careful work it does for the other features the revision retired. Nothing broke on the wire. DCR still functions, and will keep functioning for a defined window.
How long a window? The same feature lifecycle policy that governs the twelve month deprecation clock behind sampling applies here: a minimum of twelve months measured from the 2026-07-28 release, and the earliest actual removal is the first specification revision released as Current after that window elapses. So DCR is safe in the spec into at least mid-2027, and probably longer. That is the comfortable reading.
The uncomfortable reading is that the spec clock is not the clock that will bite you. Each authorization server decides independently when to stop accepting new dynamic registrations, and a security-conscious one has every reason to close its open registration endpoint well before the spec forces anything, exactly as my client's partner did. The spec gives you until mid-2027. A single server can give you until next Tuesday. Your migration deadline is set by the strictest server you depend on, not by the standard.
How Client ID Metadata Documents work
The replacement inverts where the identity lives. Instead of the server minting and storing a client_id for you, your client_id is an HTTPS URL that you host and that serves a small JSON document describing the client. The OAuth Client ID Metadata Document draft defines the format, and a practitioner walkthrough of CIMD covers the MCP-specific wiring. The document is the identity, and the authorization server reads it on demand.
// Served at https://agent.example.com/.well-known/oauth-client
// This URL is the client_id. No registration call precedes it.
{
"client_id": "https://agent.example.com/.well-known/oauth-client",
"client_name": "Field Ops Agent",
"redirect_uris": ["https://agent.example.com/callback"],
"grant_types": ["authorization_code"],
"token_endpoint_auth_method": "none"
}
When the client starts an OAuth flow, it passes that URL as the client_id. The authorization server sees a URL, fetches it, parses the document, and now knows the client's name and registered redirect URIs without ever having stored anything. The client_id inside the document must equal the URL it is served from, which stops a document from claiming to be a client it is not.
Two things fall out of this that matter in production. First, there is no registration round trip at all, so the whole class of failures around a missing, rate-limited, or disabled registration endpoint disappears. Second, the identity is now something you control and can change in one place. Rotating a redirect URI, renaming the client, or retiring it entirely is an edit to the document you serve, not a request to update a record inside every authorization server that ever registered you. The flip side, which the section on serving the document gets into, is that the URL has to stay reachable, because an identity that returns a 500 is an identity that cannot authenticate.
The negotiation that decides which path you get
Here is the part teams skip and then debug at 2 a.m. You do not get to choose CIMD or DCR unilaterally. The authorization server chooses what it supports, and your client has to read that choice and adapt. This is a negotiation, and like MCP protocol version negotiation, it fails quietly when the two ends assume different defaults instead of checking.
The authorization server advertises its capabilities in its metadata. If it signals Client ID Metadata Document support, you use your hosted URL. If it does not, you look for a registration_endpoint and fall back to DCR. If there is neither, you fall back again to a client_id you were issued out of band and stored in config. A correct MCP client in this transition implements all three and selects at runtime.
// Decide the registration path from what the server actually advertises.
// Do not assume one scheme; a server you do not control picks for you.
async function resolveClientId(authServerMeta: AuthServerMetadata): Promise<string> {
if (authServerMeta.client_id_metadata_document_supported) {
// Preferred: our hosted document URL IS the client_id. No call needed.
return "https://agent.example.com/.well-known/oauth-client";
}
if (authServerMeta.registration_endpoint) {
// Deprecated but allowed: register dynamically, cache the result per server.
return await dynamicRegister(authServerMeta.registration_endpoint);
}
// Last resort: a client_id provisioned out of band and stored in config.
const preRegistered = config.preRegisteredClientId(authServerMeta.issuer);
if (preRegistered) return preRegistered;
throw new Error(`no registration path for issuer ${authServerMeta.issuer}`);
}
The failure my client hit was precisely the gap in this function. Their code was the middle branch only. When the partner's server stopped advertising a registration_endpoint, there was no first branch to catch the newer scheme and no third branch to fall back to, so the lookup threw and the connection died. The fix was not a new credential. It was teaching the client to read the server's advertised capabilities and route accordingly, so a server dropping DCR degrades to CIMD rather than to an outage.
Serving a document that holds up
CIMD moves a hosting responsibility onto you that DCR did not have. Your client_id is now a live endpoint, and if it is flaky, your authentication is flaky. Treat the document URL like any other production dependency on the critical path, because during the OAuth flow it is one.
The document has to be reachable, stable, and honest. Reachable means served over HTTPS with a real certificate and enough availability that an authorization server fetching it mid-flow does not time out. Stable means the URL does not move, because the URL is the identity: change it and you are a different client, with none of the consent or trust the old URL accumulated. Honest means the redirect_uris in the document are exactly the ones your client actually uses, no wildcards and no stale entries, because those URIs are the whole defense against an attacker redirecting an authorization code somewhere you do not control.
There is also a direction of trust that reverses here, and it is worth naming. Under DCR the client sent data to the server. Under CIMD the authorization server fetches a URL the client supplied, which means the server is now making an outbound request to an address a caller gave it. That is a server-side concern, server operators have to guard against a document URL pointing at an internal address, but as a client author you should know your URL is being fetched by every server you connect to, so what you serve there is effectively public. Keep secrets out of it. Scoping what the resulting token is allowed to do is a separate problem, the one behind giving each agent a scoped, delegated identity rather than a single broad credential, and CIMD does not solve it for you.
If you run a gateway or a secret manager in front of your model and tool credentials already, the pattern from pinning, isolating, and rotating supply chain credentials is the right home for the issued tokens too. CIMD changes how you get a client_id, not how carefully you hold what the flow returns.
The parts that bite
The spec deadline is not your deadline. Reading that DCR is supported until mid-2027 and planning around that date is the mistake. Your real deadline is whenever the strictest authorization server you depend on closes its registration endpoint, and a server you do not operate can do that with no notice to you. Build the CIMD path now, while DCR still works, so that a server flipping the switch is a no-op for you instead of an incident.
A missing fallback branch is an outage, not a warning. The whole point of negotiation is graceful degradation, and it only degrades gracefully if every branch exists. A client that implements CIMD only will fail against a server that still does DCR and nothing else, and a client that implements DCR only fails the moment a server moves on. The cost of the third branch, a pre-registered client_id in config, is a few lines, and it is the branch that keeps a lights-out agent connecting when the other two are unavailable.
Your client_id URL is now on the critical path for auth. Teams host the metadata document on the same box as the app and forget it, until a deploy or a cert expiry takes the URL down and suddenly no new OAuth flow can start, because the authorization server cannot fetch the identity. Monitor that URL like an endpoint that matters, because it is one, and keep an audit record of which servers fetched it, in the same spirit as decision records that make agent actions accountable.
Changing the URL silently changes who you are. Because the identity is the URL, renaming your well-known path or moving to a new domain creates a brand new client as far as every authorization server is concerned. Any consent a user granted, any allow-listing a server operator did, is attached to the old URL and does not follow you. Pick the URL once, deliberately, and treat moving it as a migration with its own re-consent, not a routine refactor.
Public does not mean careless. The document is fetched by every server you connect to, so it is effectively public, and that is fine for a name and redirect URIs. It is not fine for anything you would not publish. The reflex to stuff extra configuration into the document because it is convenient is the reflex to avoid.
The takeaway
Dynamic Client Registration made MCP clients easy to stand up and hard for servers to secure, and the 2026-07-28 spec resolved that tension by deprecating DCR in favor of Client ID Metadata Documents. The new scheme is genuinely better: no open registration endpoint to abuse, an identity you control and can change in one place, and no registration round trip to fail. The cost is that your client_id is now a live URL you have to keep reachable and honest, and that you no longer get to assume which scheme a server speaks.
So the migration is not a swap, it is an addition. Implement CIMD as the preferred path, keep DCR as the documented fallback, keep a pre-registered client_id as the last resort, and choose at runtime from what the authorization server advertises. Do it now, while all three still work, because the clock that ends DCR for you is owned by the strictest server you depend on, not by the standard. If your agent connects to MCP servers through dynamic registration and you are not sure which server will drop it first, book a consultation call and we can map the migration before a partner's identity provider maps it for you.
Questions this essay answers
01What is MCP client registration and why is DCR being deprecated?
Before an MCP client can run an OAuth flow against a server's authorization server, it needs a client_id. Dynamic Client Registration, from RFC 7591, let the client POST its metadata to a registration endpoint and get a client_id back at runtime, so an agent could connect to a server it had never seen. The 2026-07-28 revision deprecated DCR in favor of Client ID Metadata Documents, because an open registration endpoint is hard to secure and tends to mint a new identity per client with no clean way to revoke or audit it.
02How does a Client ID Metadata Document work?
With CIMD, your client_id is itself an HTTPS URL that serves a small JSON document describing the client: its name, its redirect URIs, and related metadata. There is no registration call first. When the client starts an OAuth flow, it passes that URL as the client_id, and the authorization server fetches the document to learn who the client is. The identity lives at a URL you control, so updating or retiring a client is a change to the document you serve, not a database row inside every server.
03Will my existing DCR-based MCP client stop working?
Not immediately. Deprecated means the feature still functions for a defined window, not that it was removed. The MCP feature lifecycle sets a minimum of twelve months from the 2026-07-28 release before anything can be removed, so DCR keeps working into at least mid-2027. The real risk is not the spec clock. It is an individual authorization server that stops accepting new dynamic registrations early, at which point a client that only knows how to do DCR cannot obtain a client_id and the connection fails.
04What should an MCP client do during the transition?
Negotiate, do not assume. Check the authorization server metadata: if it advertises Client ID Metadata Document support, use your hosted URL as the client_id. If it does not, fall back to Dynamic Client Registration where a registration endpoint is present, and fall back again to a pre-registered client_id you were issued out of band. Implement all three paths and pick at runtime, so one server's choice does not strand your client and a server dropping DCR degrades gracefully instead of failing.
