Roo Code MCP Setup
Connect automagik-tools to Roo Code, the AI-powered coding assistant. Get instant API access in your development workflow.Prerequisites
1
Install Roo Code
Download and install Roo Code from roocode.dev
2
Install automagik-tools
3
Get API Credentials
For the tools you’ll use:
Configuration
Option 1: Genie (Universal Orchestrator)
1
Open Roo Code Settings
- Click the Roo icon in your editor
- Navigate to Settings or Preferences
- Find MCP Servers section
2
Add Genie MCP Server
Click Add Server and configure:
Genie is a universal orchestrator that can handle multiple API requests intelligently. It uses OpenAI to coordinate complex workflows.
3
Save and Restart
- Save the configuration
- Restart Roo Code for changes to take effect
4
Test
In Roo Code’s chat, try:Roo should use the Genie tool via MCP!
Option 2: WhatsApp via Evolution API
Connect WhatsApp for messaging automation.1
Setup Evolution API
First, ensure you have Evolution API running. See Evolution API docs for setup.
2
Configure MCP Server
3
Test WhatsApp
In Roo Code:
Option 3: Custom API via OpenAPI
Convert any OpenAPI spec into MCP tools.Replace the PetStore URL with your own OpenAPI specification URL. This works with any API that has an OpenAPI/Swagger spec.
Option 4: Multiple Tools
Connect multiple tools simultaneously.Available Real Tools
These are the ONLY tools available in automagik-tools. Verify by running:
| Tool | Description | Required Env Vars |
|---|---|---|
| genie | Universal orchestrator | OPENAI_API_KEY |
| evolution-api | WhatsApp messaging | EVOLUTION_API_KEY, EVOLUTION_API_BASE_URL |
| omni | Multi-channel messaging | Varies by channel |
| automagik | Core automation | None |
| spark | Task automation | None |
| automagik-hive | Distributed tasks | None |
| gemini-assistant | Gemini integration | GOOGLE_API_KEY |
| OpenAPI | Custom API conversion | API-specific |
Usage in Roo Code
Orchestration with Genie
WhatsApp Automation
Custom API Integration
Authentication Setup
OpenAI API Key (for Genie)
1
Get API Key
Visit https://platform.openai.com/api-keys
- Click Create new secret key
- Name it “Roo Code Genie Integration”
- Copy the key (starts with
sk-)
2
Add to Roo Config
Evolution API Setup (for WhatsApp)
1
Deploy Evolution API
Follow the Evolution API installation guide
2
Get Credentials
- Get your API key from Evolution API dashboard
- Note your instance URL
3
Add to Roo Config
Troubleshooting
MCP server not connecting
MCP server not connecting
Error:
Failed to connect to MCP serverSolutions:-
Verify automagik-tools installation:
-
Check tool exists:
- Verify configuration syntax (valid JSON)
-
Ensure
"command": "uvx"not"node"or"python" - Restart Roo Code completely
Authentication failures
Authentication failures
Error:
401 Unauthorized or 403 ForbiddenSolutions:- Verify API keys are correct and not expired
- Check environment variable names match exactly
- Test credentials manually:
Tools not appearing
Tools not appearing
Symptom: Roo doesn’t seem to have access to toolsSolutions:
- Ask Roo: “What MCP tools do you have access to?”
- Verify the tool name from
uvx automagik-tools list - Check for configuration errors in logs
- Ensure proper restart after config changes
- Try removing and re-adding the server
Wrong tool configured
Wrong tool configured
Error: Tool not found or doesn’t existSolution:
Only use tools from this verified list:Output shows:
- genie
- evolution-api
- omni
- automagik
- spark
- automagik-hive
- gemini-assistant
Configuration File Location
Roo Code typically stores MCP configuration in:- macOS
- Windows
- Linux
Best Practices
Use environment variables for sensitive credentials:Then reference in config:
Verify tool names before configuring:
Test tools independently before using in Roo:
Use descriptive server names for better organization:

