MCP Tools
The package includes MCP client integration in Toolbox.
Server
Use a stdio MCP server command from your selected provider/runtime.
python3 -m your_mcp_server_module
Integration steps
Confirm target server supports stdio MCP tool methods.
Add a server entry under
mcp.servers.Use a unique
id; that becomes tool namespace prefix.Verify tools are exposed via
Toolbox.list_tools().Invoke as
<id>::<tool_name>.
Programmatic helpers
from design_research_agents import MCPServerConfig, Toolbox
runtime = Toolbox(
mcp_servers=(
MCPServerConfig(
id="local_core",
command=("python3", "-m", "your_mcp_server_module"),
),
)
)
names = [spec.name for spec in runtime.list_tools() if spec.name.startswith("local_core::")]
result = runtime.invoke(
"local_core::text.word_count",
{"text": "design research"},
request_id="docs-mcp",
dependencies={},
)
runtime.close()
Troubleshooting
Server '<id>' is not configured: validatemcp.enabledand server id.Unknown MCP tool '<name>': inspectToolbox.list_tools()for available names.Timeouts: increase
timeout_s.Missing env vars: set both
env_allowlistandenventries.
Examples
examples/tools/mcp_minimal.pyexamples/tools/multi_source_tool_usage.pyexamples/tools/README.md