File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 33from mcp .client .client import Client
44from mcp .client .session import ClientSession
55
6- __all__ = [
7- "Client" ,
8- "ClientSession" ,
9- ]
6+ __all__ = ["Client" , "ClientSession" ]
Original file line number Diff line number Diff line change @@ -66,7 +66,10 @@ def __init__(
6666 self ,
6767 server : Server [Any ] | FastMCP ,
6868 * ,
69- # TODO(Marcelo): When do `raise_exceptions=True` actually raises?
69+ # Note: raise_exceptions only affects transport/stream errors and exceptions
70+ # that escape request handlers. Tool exceptions in FastMCP are caught by
71+ # the call_tool decorator and converted to error results. See test_client.py
72+ # test_raise_exceptions_returns_error_result_for_tool_exceptions for details.
7073 raise_exceptions : bool = False ,
7174 read_timeout_seconds : float | None = None ,
7275 sampling_callback : SamplingFnT | None = None ,
Original file line number Diff line number Diff line change 3030
3131
3232class SseServerParameters (BaseModel ):
33- """Parameters for intializing a sse_client."""
33+ """Parameters for initializing a sse_client."""
3434
3535 # The endpoint URL.
3636 url : str
@@ -46,7 +46,7 @@ class SseServerParameters(BaseModel):
4646
4747
4848class StreamableHttpParameters (BaseModel ):
49- """Parameters for intializing a streamable_http_client."""
49+ """Parameters for initializing a streamable_http_client."""
5050
5151 # The endpoint URL.
5252 url : str
File renamed without changes.
Original file line number Diff line number Diff line change 88from websockets .asyncio .client import connect as ws_connect
99from websockets .typing import Subprotocol
1010
11- import mcp . types as types
11+ from mcp import types
1212from mcp .shared .message import SessionMessage
1313
1414
You can’t perform that action at this time.
0 commit comments