openai-agents-python/src/agents/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 [1/n] Add MCP types to the SDK 2025-03-25 12:51:40 -04:00
server.py Prevent MCP ClientSession hang (#580) 2025-04-24 12:12:46 -04:00
util.py Ensure MCP works when inputSchema.properties is missing (#454) 2025-04-07 18:38:36 -04:00