| Name | Type | Description |
|---|---|---|
config_path* | str | Path to the MCP JSON configuration file. |
Load and validate MCP configuration from a JSON file.
Supports multiple server types:
command, args, env fields (default)type: "sse", url, and optional headerstype: "http", url, and optional headersAny server type may also set an optional tool filter:
allowedTools: list of tool names or patterns to keep (all others dropped)disabledTools: list of tool names or patterns to drop (all others kept)Entries are either literal tool names or fnmatch-style glob patterns
(entries containing *, ?, or [). Each entry is matched against both
the bare MCP tool name and the server-prefixed form
(f"{server_name}_{tool}"), so either read_* or fs_read_* works.
Setting both fields on a single server is an error.