Skip to content

Commit 5976e77

Browse files
authored
docs
Add token exchange docs
2 parents beeb244 + e92e61d commit 5976e77

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,8 +858,9 @@ async def main():
858858
# For machine-to-machine scenarios, use ClientCredentialsProvider
859859
# instead of OAuthClientProvider.
860860

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.
863864
token_exchange_auth = TokenExchangeProvider(
864865
server_url="https://api.example.com",
865866
client_metadata=OAuthClientMetadata(

docs/api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
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+
15
::: mcp

docs/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
This is the MCP Server implementation in Python.
44

55
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.

0 commit comments

Comments
 (0)