Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/mcp/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
from mcp.client.client import Client
from mcp.client.session import ClientSession

__all__ = [
"Client",
"ClientSession",
]
__all__ = ["Client", "ClientSession"]
5 changes: 4 additions & 1 deletion src/mcp/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ def __init__(
self,
server: Server[Any] | FastMCP,
*,
# TODO(Marcelo): When do `raise_exceptions=True` actually raises?
# Note: raise_exceptions only affects transport/stream errors and exceptions
# that escape request handlers. Tool exceptions in FastMCP are caught by
# the call_tool decorator and converted to error results. See test_client.py
# test_raise_exceptions_returns_error_result_for_tool_exceptions for details.
raise_exceptions: bool = False,
read_timeout_seconds: float | None = None,
sampling_callback: SamplingFnT | None = None,
Expand Down
4 changes: 2 additions & 2 deletions src/mcp/client/session_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


class SseServerParameters(BaseModel):
"""Parameters for intializing a sse_client."""
"""Parameters for initializing a sse_client."""

# The endpoint URL.
url: str
Expand All @@ -46,7 +46,7 @@ class SseServerParameters(BaseModel):


class StreamableHttpParameters(BaseModel):
"""Parameters for intializing a streamable_http_client."""
"""Parameters for initializing a streamable_http_client."""

# The endpoint URL.
url: str
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/mcp/client/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from websockets.asyncio.client import connect as ws_connect
from websockets.typing import Subprotocol

import mcp.types as types
from mcp import types
from mcp.shared.message import SessionMessage


Expand Down
Loading