Skip to content

Commit a0a9c5b

Browse files
committed
small fixes
1 parent bbe79c2 commit a0a9c5b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

examples/servers/simple-streamablehttp/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ A simple MCP server example demonstrating the StreamableHttp transport, which en
55
## Features
66

77
- Uses the StreamableHTTP transport for server-client communication
8+
- Supports REST API operations (POST, GET, DELETE) for `/mcp` endpoint
89
- Task management with anyio task groups
910
- Ability to send multiple notifications over time to the client
1011
- Proper resource cleanup and lifespan management

src/mcp/server/streamableHttp.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -577,11 +577,6 @@ async def connect(
577577
"""
578578

579579
# Create the memory streams for this connection
580-
read_stream: MemoryObjectReceiveStream[JSONRPCMessage | Exception]
581-
read_stream_writer: MemoryObjectSendStream[JSONRPCMessage | Exception]
582-
583-
write_stream: MemoryObjectSendStream[JSONRPCMessage]
584-
write_stream_reader: MemoryObjectReceiveStream[JSONRPCMessage]
585580

586581
read_stream_writer, read_stream = anyio.create_memory_object_stream[
587582
JSONRPCMessage | Exception

0 commit comments

Comments
 (0)