File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44from typing import AsyncGenerator
55
66import anyio
7+ from anyio .streams .memory import MemoryObjectReceiveStream , MemoryObjectSendStream
78from pydantic import ValidationError
89from websockets .asyncio .client import connect as ws_connect
9- from anyio .streams .memory import MemoryObjectReceiveStream , MemoryObjectSendStream
1010from websockets .typing import Subprotocol
1111
1212import mcp .types as types
@@ -59,7 +59,8 @@ async def ws_reader():
5959
6060 async def ws_writer ():
6161 """
62- Reads JSON-RPC messages from write_stream_reader and sends them to the server.
62+ Reads JSON-RPC messages from write_stream_reader and
63+ sends them to the server.
6364 """
6465 async with write_stream_reader :
6566 async for message in write_stream_reader :
Original file line number Diff line number Diff line change 88import uvicorn
99from pydantic import AnyUrl
1010from starlette .applications import Starlette
11- from starlette .requests import Request
1211from starlette .routing import WebSocketRoute
1312
1413from mcp .client .session import ClientSession
You can’t perform that action at this time.
0 commit comments