Skip to content

Specify how MCP clients can work with a confidential OAuth2 client that runs as a REST server #2178

Description

@sberyozkin

Is your feature request related to a problem? Please describe.

When a REST server that signs in users with an authorization code flow and requests a user authorization to let it access an MCP server on the user's behalf, it can acquire an access token with a correct MCP server audience and propagate it with the internal MCP client to access a secured MCP server.

Currently, the MCP authorization specification covers AI assistant like flows where a user login is initiated per every imported secured MCP server in an interactive mode - something that can not work in scope of requests to confidential OIDC clients that run as REST servers and use an AI service with a pre-configured MCP client internally.

Using a client_credentials or other extension grant is sub-optimal in such cases.

Describe the solution you'd like

Make a distinction in the specification between public and confidential OIDC clients.
Specify how a REST server that acts as a confidential OIDC client can request a user authorization to access a secured MCP server, using a scope or a RAR authorization_details.

Describe alternatives you've considered

Using a client_credentials or other extension grants is an option that can work but it is sub-optimal given that an access token with an MCP server audience, acquired upon an authorization code flow completion is already available.

Additional context

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions