Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
4f8c21c
1
Parent(s): 7ffe6a5
Fix docstring
Browse files
src/fastmcp/client/client.py
CHANGED
|
@@ -58,13 +58,13 @@ class Client:
|
|
| 58 |
- MCPConfig: MCP server configuration
|
| 59 |
- dict: Transport configuration
|
| 60 |
roots: Optional RootsList or RootsHandler for filesystem access
|
| 61 |
-
sampling_handler: Optional handler for sampling requests
|
| 62 |
-
Optional handler for log messages
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
in the FastMCP global settings.
|
| 68 |
|
| 69 |
Examples:
|
| 70 |
```python # Connect to FastMCP server client =
|
|
|
|
| 58 |
- MCPConfig: MCP server configuration
|
| 59 |
- dict: Transport configuration
|
| 60 |
roots: Optional RootsList or RootsHandler for filesystem access
|
| 61 |
+
sampling_handler: Optional handler for sampling requests
|
| 62 |
+
log_handler: Optional handler for log messages
|
| 63 |
+
message_handler: Optional handler for protocol messages
|
| 64 |
+
progress_handler: Optional handler for progress notifications
|
| 65 |
+
timeout: Optional timeout for requests (seconds or timedelta)
|
| 66 |
+
init_timeout: Optional timeout for initial connection (seconds or timedelta).
|
| 67 |
+
Set to 0 to disable. If None, uses the value in the FastMCP global settings.
|
| 68 |
|
| 69 |
Examples:
|
| 70 |
```python # Connect to FastMCP server client =
|