Skip to content

Commit 8ac5dff

Browse files
committed
lint and fix a test
1 parent 215867d commit 8ac5dff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/agents/mcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ 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-
67+
6868
client_session_timeout_seconds: the read timeout passed to the MCP ClientSession.
6969
"""
7070
self.session: ClientSession | None = None

tests/mcp/test_server_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class CrashingClientSessionServer(_MCPServerWithClientSession):
88
def __init__(self):
9-
super().__init__(cache_tools_list=False)
9+
super().__init__(cache_tools_list=False, client_session_timeout_seconds=5)
1010
self.cleanup_called = False
1111

1212
def create_streams(self):

0 commit comments

Comments
 (0)