🔧 MCP Tools
What are MCP Tools?
MCP (Model Context Protocol) Tools are external services that extend the capabilities of DAIV agents by providing specialized functionality through a standardized protocol. These tools allow AI agents to interact with external systems, fetch data from various sources, and perform actions that go beyond basic code analysis and modification.
Available MCP Tools
DAIV currently supports the following MCP tools:
MCP Server | Tools | Use Cases |
---|---|---|
Fetch MCP Server | • fetch : Fetch content from URLs |
• Researching documentation and examples from the web • Fetching configuration files or data from remote sources • Analyzing external APIs and their responses • Gathering context from online resources |
Sentry MCP Server | • find_organizations : Discover Sentry organizations• get_issue_details : Retrieve detailed information about specific issues |
• Analyzing error patterns and crash reports • Understanding issue context when fixing bugs • Gathering debugging information from production systems • Correlating code changes with error occurrences |
Configuration
MCP tools are configured through environment variables. Here's how to set them up:
Basic Configuration
See Environment Variables Reference for more details.
Agent Integration
Which Agents Use MCP Tools?
Currently, MCP tools are available in the following agents:
Plan and Execute Agent
The Plan and Execute agent has access to all configured MCP tools through the MCPToolkit
. This agent can:
- Use the Fetch server to research solutions online
- Access Sentry to understand error contexts when fixing issues
- Combine MCP tools with repository tools for comprehensive problem-solving
Example Usage:
When addressing an issue, the agent might:
- Use Sentry tools to analyze error details
- Use Fetch tools to research similar issues or documentation
- Apply repository tools to implement the fix
Advanced Configuration
Creating Custom MCP Servers
Coming Soon
The ability to create custom MCP servers is currently under development. This feature will allow you to define custom MCP servers.
Stay tuned for updates as we work on bringing this functionality to DAIV.
Troubleshooting
Common Issues
MCP tools not available in agents:
- Verify that the MCP proxy is running and accessible
- Check that required environment variables are set
Sentry tools not working:
- Verify
MCP_SENTRY_ACCESS_TOKEN
is set and valid - Check that
MCP_SENTRY_HOST
points to your Sentry instance - Ensure your Sentry token has the necessary permissions
Fetch tools timing out:
- Check network connectivity from the MCP proxy
- Verify target URLs are accessible
Debugging
To debug MCP tool issues:
-
Check MCP proxy logs:
Bash -
Verify configuration:
Bash
Security Considerations
- API Tokens: Store sensitive tokens like
MCP_SENTRY_ACCESS_TOKEN
securely using Docker secrets - Network Access: MCP servers may require network access to external services
- Authentication: Configure
MCP_PROXY_AUTH_TOKEN
for additional security in production environments