docs/src/content/docs/reference/python/mcp.md
McpServerSourcePyMCP server transport source. Construct via the variant factories below. All arguments are positional and required; pass None explicitly for unused fields.
McpServerSourcePy.HttpHttp(
url: str,
timeout_secs: int | None,
headers: dict[str, str] | None,
) -> 'McpServerSourcePy'
McpServerSourcePy.ProcessProcess(
command: str,
args: list[str],
work_dir: str | None,
env: dict[str, str] | None,
) -> 'McpServerSourcePy'
McpServerSourcePy.WebSocketWebSocket(
url: str,
timeout_secs: int | None,
headers: dict[str, str] | None,
) -> 'McpServerSourcePy'
McpServerConfigPyConfiguration for an individual MCP server
| Field | Type | Default |
|---|---|---|
id | str | required |
name | str | required |
source | McpServerSourcePy | required |
enabled | bool | True |
tool_prefix | Optional[str] | None |
resources | Optional[list[str]] | None |
bearer_token | Optional[str] | None |
McpClientConfigPyConfiguration for MCP client integration
| Field | Type | Default |
|---|---|---|
servers | list[McpServerConfigPy] | required |
auto_register_tools | bool | True |
tool_timeout_secs | Optional[int] | None |
max_concurrent_calls | Optional[int] | None |
<small>Generated from mistralrs-pyo3/mistralrs.pyi.</small>