-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
P3Nice to haves, rare edge casesNice to haves, rare edge casesbugSomething isn't workingSomething isn't working
Description
Initial Checks
- I confirm that I'm using the latest version of MCP Python SDK
- I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue
Description
Two SSE tests in tests/shared/test_sse.py are flaky:
Affected tests:
test_sse_client_basic_connection_mounted_app(line 326)test_request_context_isolation(line 462)
CI evidence: https://github.com/modelcontextprotocol/python-sdk/actions/runs/19330649603/job/55292600721?pr=1586
Test locations:
tests/shared/test_sse.py:326-test_sse_client_basic_connection_mounted_apptests/shared/test_sse.py:462-test_request_context_isolation
Related Issues
- Bug Report: FastMCP
RuntimeError: Received request before initialization was completeLeading to Empty SSE Responses When Embedded in FastAPI #737 - RuntimeError: Received request before initialization was complete (SSE) - Fix flaky test test_response in test_streamable_http.py #1573 - Similar flaky test pattern in streamable HTTP (404 instead of 200)
Python & MCP Python SDK
Latest SDK version
Metadata
Metadata
Assignees
Labels
P3Nice to haves, rare edge casesNice to haves, rare edge casesbugSomething isn't workingSomething isn't working