Initial Checks
Description
The test is flaky. See: https://github.com/modelcontextprotocol/python-sdk/actions/runs/19020904095/job/54315849330?pr=1565
Output:
basic_server=None, basic_server_url='http://127.0.0.1:50695/'deftest_response(basic_server: None, basic_server_url: str):
"""Test response handling for a valid request."""mcp_url=f"{basic_server_url}/mcp"response=requests.post(
mcp_url,
headers={
"Accept": "application/json, text/event-stream",
"Content-Type": "application/json",
},
json=INIT_REQUEST,
)
>assertresponse.status_code==200Eassert404==200E+where404=<Response [404]>.status_codetests/shared/test_streamable_http.py:624: AssertionErrorExample Code
Python & MCP Python SDK
Initial Checks
Description
The test is flaky. See: https://github.com/modelcontextprotocol/python-sdk/actions/runs/19020904095/job/54315849330?pr=1565
Output:
Example Code
Python & MCP Python SDK