Skip to content

Commit 107190d

Browse files
committed
debug
1 parent 6c4d151 commit 107190d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/pytest/test_mcp_session_autocreate.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ def _run_airline_server():
2323
# Map Python versions to port offsets: 3.10->0, 3.11->1, 3.12->2
2424
port_offset = minor_version - 10
2525
port = str(9780 + port_offset)
26+
print(f"[SERVER DEBUG] Python 3.{minor_version} -> Setting PORT={port}")
2627
os.environ["PORT"] = port
2728
from eval_protocol.mcp_servers.tau2.tau2_mcp import AirlineDomainMcp
2829

30+
print(f"[SERVER DEBUG] About to create AirlineDomainMcp with PORT={os.environ.get('PORT')}")
2931
server = AirlineDomainMcp(seed=None)
32+
print(f"[SERVER DEBUG] Server created, FastMCP port={server.mcp.settings.port}")
33+
print(f"[SERVER DEBUG] About to run on port {port}")
3034
server.run(transport="streamable-http")
3135

3236

@@ -44,8 +48,10 @@ async def test_tool_call_returns_json_without_prior_initial_state():
4448
# Map Python versions to port offsets: 3.10->0, 3.11->1, 3.12->2
4549
port_offset = minor_version - 10
4650
port = str(9780 + port_offset)
51+
print(f"[TEST DEBUG] Python 3.{minor_version} -> Looking for server on port {port}")
4752

4853
base_url = f"http://127.0.0.1:{port}/mcp"
54+
print(f"[TEST DEBUG] base_url = {base_url}")
4955
client = httpx.Client(timeout=1.0)
5056
start_time = time.time()
5157
deadline = start_time + 20

0 commit comments

Comments
 (0)