data_designer.config.mcp
data_designer.config.mcp
data_designer.config.mcp
Bases: data_designer.config.base.ConfigBase
Configuration for a remote MCP server connection.
MCPProvider is used to connect to pre-existing MCP servers via SSE (Server-Sent Events) or Streamable HTTP transport. For local subprocess-based MCP servers, use LocalStdioMCPProvider instead.
Parameters:
Unique name used to reference this MCP provider.
Endpoint URL for connecting to the remote MCP server.
Optional API key for authentication. Defaults to None.
Transport type discriminator.
Defaults to "sse".
Attributes:
Unique name used to reference this MCP provider.
Endpoint URL for connecting to the remote MCP server.
Optional API key for authentication. Defaults to None.
Transport type discriminator.
Defaults to "sse".
Examples:
Initialization:
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Bases: data_designer.config.base.ConfigBase
Configuration for launching a local MCP server via stdio transport.
LocalStdioMCPProvider is used to launch MCP servers as subprocesses using stdio for communication. For connecting to remote/pre-existing MCP servers, use MCPProvider instead.
Parameters:
Unique name used to reference this MCP provider.
Executable to launch the MCP server via stdio transport.
Arguments passed to the MCP server executable. Defaults to [].
Environment variables passed to the MCP server subprocess. Defaults to {}.
Transport type discriminator, always “stdio”.
Attributes:
Unique name used to reference this MCP provider.
Executable to launch the MCP server via stdio transport.
Arguments passed to the MCP server executable. Defaults to [].
Environment variables passed to the MCP server subprocess. Defaults to {}.
Transport type discriminator, always “stdio”.
Examples:
Initialization:
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Bases: data_designer.config.base.ConfigBase
Configuration for permitting MCP tools on an LLM column.
ToolConfig defines which tools are available for use during LLM generation. It references one or more MCP providers by name and can optionally restrict which tools from those providers are permitted.
Parameters:
User-defined alias to reference this tool configuration in column configs.
Names of the MCP providers to use for tool calls. Tools can be drawn from multiple providers.
Optional allowlist of tool names that restricts which tools are permitted. If None, all tools from the specified providers are allowed. Defaults to None.
Maximum number of tool-calling turns permitted in a single generation. A turn is one iteration where the LLM requests tool calls. With parallel tool calling, a single turn may execute multiple tools simultaneously. Defaults to 5.
Timeout in seconds for MCP tool calls. Defaults to None (no timeout).
Attributes:
User-defined alias to reference this tool configuration in column configs.
Names of the MCP providers to use for tool calls. Tools can be drawn from multiple providers.
Optional allowlist of tool names that restricts which tools are permitted. If None, all tools from the specified providers are allowed. Defaults to None.
Maximum number of tool-calling turns permitted in a single generation. A turn is one iteration where the LLM requests tool calls. With parallel tool calling, a single turn may execute multiple tools simultaneously. Defaults to 5.
Timeout in seconds for MCP tool calls. Defaults to None (no timeout).
Examples:
Initialization:
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.
self is explicitly positional-only to allow self as a field name.