McpToolsetConfig
Configuration for an McpToolset, used to construct one via toToolset.
Exactly one of stdioConnectionParams, sseConnectionParams, or streamableHttpConnectionParams must be set; toToolset throws if zero or more than one are provided.
Constructors
Properties
Maximum length, in characters, of a single resource payload returned by load_mcp_resource. Longer payloads are truncated.
Connection parameters for an MCP server reached over SSE.
Connection parameters for a local MCP server reached over stdio (e.g. one launched via npx or python3).
Connection parameters for an MCP server reached over the Streamable HTTP transport.
Optional allowlist of tool names; when set, only tools whose name appears in the list will be exposed to the agent. When null, all tools advertised by the server are exposed.
When true, resource-related tools (list_mcp_resources, list_mcp_resource_templates, load_mcp_resource) are added to the toolset, granting the agent access to MCP resources exposed by the server. Defaults to false.
Functions
Creates an McpToolset from this configuration.