MCP Shipyard
← Rules catalog

Claude uses only the first authorization server in your MCP metadata

Claude reads the first entry in authorization_servers and never falls back. Put the issuer you want first, or list only one.

minorauth.multiple-issuersClaude

List your primary authorization server first in authorization_servers, or list only one. The rule auth.multiple-issuers is a minor finding for Claude. It warns when the protected resource metadata lists more than one issuer.

What you see

  • A scan reports 2 issuers listed (or however many) as a warning.
  • Sign-in goes to an identity provider you did not intend, or fails because the first one does not accept Claude, even though a later entry would.

Why it happens

Servers sometimes list several issuers to support more than one identity provider (a corporate one and a social one, or an old and a new one during a migration). The protected resource metadata standard allows a list.

Claude's authentication page says: "If you list more than one, Claude uses the first entry and doesn't fall back to later entries." So later entries are never tried, however the order was chosen.

Check it yourself

curl -s https://mcp.acme.example/.well-known/oauth-protected-resource | jq .authorization_servers

Then fetch the metadata of the first entry and confirm it advertises PKCE S256, a registration route, and the endpoints you expect (auth.as-metadata-missing, auth.pkce-s256, auth.client-registration-claude).

Fix

  1. Move the issuer that supports Claude's flow to the first position.
  2. If one authorization server can federate the others, publish only that one and let it offer the choice of identity provider on its own login page.
  3. Make sure that first issuer's issuer value matches the entry exactly (auth.issuer-mismatch).

Other clients may choose differently when several issuers are listed. ChatGPT behaviour for multiple entries is not documented on the pages this rule cites, so do not rely on a particular order there.

Verify

Re-run the curl command, run a fresh sign-in from Claude and confirm it reaches the intended login page. Re-scan.

Which clients care

Claude, per the rule.

Source

Claude authentication docs (serve discovery metadata): https://claude.com/docs/connectors/building/authentication

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server