T-07MCP Authorization

/tools/mcp-authorization

A remote MCP server names an authorization server. The client discovers it, the user consents, and the token stays on the request — not in the prompt.

Step-by-step walkthrough6 steps
  1. A remote MCP server is not a child process you already trust. Revision 2025-11-25 expects it to name who may call it.
  2. The client discovers the authorization server from the server’s metadata — OAuth protected-resource metadata, and OpenID Connect discovery.
  3. The user consents to scopes. A later call can ask for more, incrementally, instead of one blanket grant up front.
  4. The token comes back to the client and rides on the MCP request. The model still only sees tool definitions and results.
  5. Pasting the token into the prompt puts a credential where persuasion can print it. The window is not a keychain.
  6. No token, or the wrong audience, and the server refuses the call. Authorization is the server’s, not a line in the system prompt.
Key insight

Revision 2025-11-25 makes discovery part of the protocol: OAuth 2.0 protected-resource metadata and OpenID Connect, plus incremental scopes when a call needs more than the first grant. The model never has to see the credential to use the tool.

Failure mode

Treating authorization as a header you paste into the system prompt, or as optional because the server is “ours”. A token in context can be exfiltrated; a server with no check will run whatever the model was talked into.

Elsewhere in the atlas