- Notifications
You must be signed in to change notification settings - Fork1k
Open
Description
Description
Hello, not sure if this is a bug or a feature request, but currently if I connect an MCP server to an Agent and connection to the MCP server is lost during an agent run, the agent will hang indefinitely. This may be because theMCP client is being initialized without passing in aread_timeout_seconds
. According to themcp library, ifread_timeout_seconds
is not defined, reading will never time out.
References
https://github.com/pydantic/pydantic-ai/blob/main/pydantic_ai_slim/pydantic_ai/mcp.py#L206C1-L211C18
https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/shared/session.py#L187-L188
Metadata
Metadata
Assignees
Labels
No labels