MCP
McpServerSourcePy
Section titled “McpServerSourcePy”MCP server transport source. Construct via the variant factories below. All arguments are positional and required; pass None explicitly for unused fields.
McpServerSourcePy.Http
Section titled “McpServerSourcePy.Http”Http( url: str, timeout_secs: int | None, headers: dict[str, str] | None,) -> 'McpServerSourcePy'McpServerSourcePy.Process
Section titled “McpServerSourcePy.Process”Process( command: str, args: list[str], work_dir: str | None, env: dict[str, str] | None,) -> 'McpServerSourcePy'McpServerSourcePy.WebSocket
Section titled “McpServerSourcePy.WebSocket”WebSocket( url: str, timeout_secs: int | None, headers: dict[str, str] | None,) -> 'McpServerSourcePy'McpServerConfigPy
Section titled “McpServerConfigPy”Configuration 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 |
McpClientConfigPy
Section titled “McpClientConfigPy”Configuration 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 |
Generated from mistralrs-pyo3/mistralrs.pyi.