Skip to content

Commit 4287a45

Browse files
authored
Update server.py
1 parent d209c1c commit 4287a45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/agents/mcp/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def __init__(self, cache_tools_list: bool, client_session_timeout_seconds: float
6464
by calling `invalidate_tools_cache()`. You should set this to `True` if you know the
6565
server will not change its tools list, because it can drastically improve latency
6666
(by avoiding a round-trip to the server every time).
67+
68+
client_session_timeout_seconds: the read timeout passed to the MCP ClientSession.
6769
"""
6870
self.session: ClientSession | None = None
6971
self.exit_stack: AsyncExitStack = AsyncExitStack()

0 commit comments

Comments
 (0)