File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1312,10 +1312,10 @@ async def run_tool():
13121312
13131313 # Now resume the session with the same mcp-session-id and protocol version
13141314 headers : dict [str , Any ] = {}
1315- if captured_session_id :
1316- headers [MCP_SESSION_ID_HEADER ] = captured_session_id
1317- if captured_protocol_version :
1318- headers [MCP_PROTOCOL_VERSION_HEADER ] = captured_protocol_version
1315+ assert captured_session_id is not None
1316+ headers [MCP_SESSION_ID_HEADER ] = captured_session_id
1317+ assert captured_protocol_version is not None
1318+ headers [MCP_PROTOCOL_VERSION_HEADER ] = captured_protocol_version
13191319
13201320 async with create_mcp_http_client (headers = headers ) as httpx_client :
13211321 async with streamable_http_client (f"{ server_url } /mcp" , http_client = httpx_client ) as (
You can’t perform that action at this time.
0 commit comments