Skip to content

Commit 56f694e

Browse files
committed
Move StreamingASGITransport into the library code, so MCP integrations can use this in their tests
1 parent 4e73552 commit 56f694e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/server/fastmcp/auth/streaming_asgi_transport.py renamed to src/mcp/server/streaming_asgi_transport.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
This transport runs the ASGI app as a separate anyio task, allowing it to
55
handle streaming responses like SSE where the app doesn't terminate until
66
the connection is closed.
7+
8+
This is only intended for writing tests for the SSE transport.
79
"""
810

911
import typing

tests/server/fastmcp/auth/test_auth_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
)
4040
from mcp.types import JSONRPCRequest
4141

42-
from .streaming_asgi_transport import StreamingASGITransport
42+
from mcp.server.streaming_asgi_transport import StreamingASGITransport
4343

4444

4545
# Mock client store for testing

0 commit comments

Comments
 (0)