openai-agents-python/tests/mcp
Nathan Brake af80e3a971
Prevent MCP ClientSession hang (#580)
Per
https://modelcontextprotocol.io/specification/draft/basic/lifecycle#timeouts

"Implementations SHOULD establish timeouts for all sent requests, to
prevent hung connections and resource exhaustion. When the request has
not received a success or error response within the timeout period, the
sender SHOULD issue a cancellation notification for that request and
stop waiting for a response.

SDKs and other middleware SHOULD allow these timeouts to be configured
on a per-request basis."

I picked 5 seconds since that's the default for SSE
2025-04-24 12:12:46 -04:00
..
__init__.py [2/n] Add MCP support to Runner 2025-03-24 15:08:02 -04:00
conftest.py [2/n] Add MCP support to Runner 2025-03-24 15:08:02 -04:00
helpers.py [5/n] MCP tracing 2025-03-25 19:28:48 -04:00
test_caching.py [2/n] Add MCP support to Runner 2025-03-24 15:08:02 -04:00
test_connect_disconnect.py [2/n] Add MCP support to Runner 2025-03-24 15:08:02 -04:00
test_mcp_tracing.py [5/n] MCP tracing 2025-03-25 19:28:48 -04:00
test_mcp_util.py Ensure MCP works when inputSchema.properties is missing (#454) 2025-04-07 18:38:36 -04:00
test_runner_calls_mcp.py [2/n] Add MCP support to Runner 2025-03-24 15:08:02 -04:00
test_server_errors.py Prevent MCP ClientSession hang (#580) 2025-04-24 12:12:46 -04:00