You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -462,6 +474,8 @@ The streamable HTTP transport supports:
462
474
463
475
> **Note**: SSE transport is being superseded by [Streamable HTTP transport](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http).
464
476
477
+
By default, SSE servers are mounted at `/sse` and Streamable HTTP servers are mounted at `/mcp`. You can customize these paths using the methods described below.
478
+
465
479
You can mount the SSE server to an existing ASGI server using the `sse_app` method. This allows you to integrate the SSE server with other ASGI applications.
466
480
467
481
```python
@@ -617,7 +631,7 @@ server = Server("example-server", lifespan=server_lifespan)
Caution: The `mcp run` and `mcp dev` tool doesn't support low-level server.
710
+
695
711
### Writing MCP Clients
696
712
697
713
The SDK provides a high-level client interface for connecting to MCP servers using various [transports](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports):
The SDK includes [authorization support](https://modelcontextprotocol.io/specification/2025-03-26/basic/authorization) for connecting to protected MCP servers:
802
+
803
+
```python
804
+
from mcp.client.auth import OAuthClientProvider, TokenStorage
805
+
from mcp.client.session import ClientSession
806
+
from mcp.client.streamable_http import streamablehttp_client
807
+
from mcp.shared.auth import OAuthClientInformationFull, OAuthClientMetadata, OAuthToken
0 commit comments