File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -858,8 +858,9 @@ async def main():
858
858
# For machine-to-machine scenarios, use ClientCredentialsProvider
859
859
# instead of OAuthClientProvider.
860
860
861
- # If you already have a user token from another provider,
862
- # you can exchange it for an MCP token using TokenExchangeProvider.
861
+ # If you already have a user token from another provider, you can
862
+ # exchange it for an MCP token using the token-exchange grant
863
+ # implemented by TokenExchangeProvider.
863
864
token_exchange_auth = TokenExchangeProvider(
864
865
server_url = " https://api.example.com" ,
865
866
client_metadata = OAuthClientMetadata(
Original file line number Diff line number Diff line change
1
+ The Python SDK exposes the entire ` mcp ` package for use in your own projects.
2
+ It includes an OAuth server implementation with support for the RFC 8693
3
+ ` token-exchange ` grant type.
4
+
1
5
::: mcp
Original file line number Diff line number Diff line change 3
3
This is the MCP Server implementation in Python.
4
4
5
5
It only contains the [ API Reference] ( api.md ) for the time being.
6
+
7
+ The built-in OAuth server supports the RFC 8693 ` token-exchange ` grant type,
8
+ allowing clients to exchange user tokens from external providers for MCP
9
+ access tokens.
You can’t perform that action at this time.
0 commit comments