DSAgent v0.5.0 - MCP Tools Support
What's New
MCP (Model Context Protocol) Tools Support
DSAgent now supports connecting to external tool servers via the Model Context Protocol, enabling capabilities like web search, database queries, file system access, and more.
Features
- MCP Server Connections: Support for both stdio and HTTP transports
- YAML Configuration: Easy configuration via
~/.dsagent/mcp.yaml - Tool Discovery: Automatic discovery of available tools from connected servers
- LLM Integration: Tools exposed via function calling
- CLI Support: New
--mcp-configoption
Example Usage
# ~/.dsagent/mcp.yaml
servers:
- name: brave_search
transport: stdio
command: ["npx", "-y", "@modelcontextprotocol/server-brave-search"]
env:
BRAVE_API_KEY: "${BRAVE_API_KEY}"export BRAVE_API_KEY="your-key"
dsagent "Search for AI trends and analyze" \
--data ./data.csv \
--mcp-config ~/.dsagent/mcp.yamlInstallation
pip install "datascience-agent[mcp]"Other Changes
- Added
--hitlCLI option for Human-in-the-Loop modes - Updated documentation with MCP examples
- 12 new unit tests for MCP functionality