@@ -175,10 +175,10 @@ def __init__(self, params: MCPServerStdioParams, cache_tools_list: bool = False)
175
175
"""Create a new MCP server based on the stdio transport.
176
176
177
177
Args:
178
- params: The params that configure the server. This includes:
179
- - The command (e.g. `python` or `node`) that starts the server.
180
- - The args to pass to the server command (e.g. `foo.py` or `server.js`).
181
- - The environment variables to set for the server.
178
+ params: The params that configure the server. This includes the command to run to
179
+ start the server, the args to pass to the command, the environment variables to
180
+ set for the server, the working directory to use when spawning the process, and
181
+ the text encoding used when sending/receiving messages to the server.
182
182
cache_tools_list: Whether to cache the tools list. If `True`, the tools list will be
183
183
cached and only fetched from the server once. If `False`, the tools list will be
184
184
fetched from the server on each call to `list_tools()`. The cache can be
@@ -235,11 +235,9 @@ def __init__(self, params: MCPServerSseParams, cache_tools_list: bool = False):
235
235
"""Create a new MCP server based on the HTTP with SSE transport.
236
236
237
237
Args:
238
- params: The params that configure the server. This includes:
239
- - The URL of the server.
240
- - The headers to send to the server.
241
- - The timeout for the HTTP request.
242
- - The timeout for the SSE connection.
238
+ params: The params that configure the server. This includes the URL of the server,
239
+ the headers to send to the server, the timeout for the HTTP request, and the
240
+ timeout for the SSE connection.
243
241
244
242
cache_tools_list: Whether to cache the tools list. If `True`, the tools list will be
245
243
cached and only fetched from the server once. If `False`, the tools list will be
0 commit comments