docs: fix docstrings across public API surface (#2095)

This commit is contained in:
Jonathan Hefner 2026-02-18 23:45:59 -06:00 • committed by GitHub
commit c0328540c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,8 +37,8 @@ from mcp.types import (
class Client:
"""A high-level MCP client for connecting to MCP servers.
Currently supports in-memory transport for testing. Pass a Server or
MCPServer instance directly to the constructor.
Supports in-memory transport for testing (pass a Server or MCPServer instance),
Streamable HTTP transport (pass a URL string), or a custom Transport instance.
Example:
```python
@ -205,7 +205,7 @@ class Client:
Args:
uri: The URI of the resource to read.
meta: Additional metadata for the request
meta: Additional metadata for the request.
Returns:
The resource content.
@ -239,7 +239,7 @@ class Client:
meta: Additional metadata for the request
Returns:
The tool result
The tool result.
"""
return await self.session.call_tool(
name=name,