mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 14:54:24 +01:00
Update paths in examples
This commit is contained in:
@@ -6,12 +6,12 @@ This module implements a Server-Sent Events (SSE) transport layer for MCP server
|
|||||||
Example usage:
|
Example usage:
|
||||||
```
|
```
|
||||||
# Create an SSE transport at an endpoint
|
# Create an SSE transport at an endpoint
|
||||||
sse = SseServerTransport("/messages")
|
sse = SseServerTransport("/messages/")
|
||||||
|
|
||||||
# Create Starlette routes for SSE and message handling
|
# Create Starlette routes for SSE and message handling
|
||||||
routes = [
|
routes = [
|
||||||
Route("/sse", endpoint=handle_sse),
|
Route("/sse", endpoint=handle_sse),
|
||||||
Mount("/messages", app=sse.handle_post_message),
|
Mount("/messages/", app=sse.handle_post_message),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Define handler functions
|
# Define handler functions
|
||||||
|
|||||||
Reference in New Issue
Block a user