Prerequisites
- automagik-tools installed:
uvx automagik-tools list
- VSCode from code.visualstudio.com
- Cline extension installed
- API keys (if needed for specific tools)
Install Cline Extension
- Open VSCode
- Press
Cmd/Ctrl + Shift + X (Extensions)
- Search for “Cline”
- Click Install
Configuration Location
VSCode settings: settings.json
Open with: Cmd/Ctrl + Shift + P → “Preferences: Open User Settings (JSON)”
Or use Cline settings UI: Cmd/Ctrl + Shift + P → “Cline: Open Settings”
Tested Configuration:
Add to your settings.json:
{
"cline.mcpServers": {
"genie": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "genie"]
}
}
}
Test Connection:
- Save settings.json
- Reload VSCode:
Cmd/Ctrl + Shift + P → “Developer: Reload Window”
- Open Cline panel
- Ask: “what MCP tools are available?”
- Expected: Should list “genie” tools
Verification:
# Test tool runs
uvx automagik-tools tool genie -t stdio
# Expected output:
# INFO Starting MCP server 'Genie' with transport 'stdio'
Example 2: Evolution API (With Auth)
Tested Configuration:
{
"cline.mcpServers": {
"evolution-api": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "evolution-api"],
"env": {
"EVOLUTION_API_BASE_URL": "http://localhost:8080",
"EVOLUTION_API_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Test Connection:
- Replace
YOUR_API_KEY_HERE with actual key
- Reload VSCode window
- Ask Cline: “what evolution-api tools do you have?”
- Expected: Lists WhatsApp messaging tools
Verification:
# Generate config
uvx automagik-tools mcp-config evolution-api
# Test with env vars
EVOLUTION_API_BASE_URL="http://localhost:8080" \
EVOLUTION_API_API_KEY="YOUR_KEY" \
uvx automagik-tools tool evolution-api -t stdio
Tested Configuration:
{
"cline.mcpServers": {
"omni": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "omni"]
}
}
}
Test Connection:
- Save and reload window
- Ask: “what omni capabilities do you have?”
- Expected: Shows omnichannel messaging tools
Tested Configuration:
{
"cline.mcpServers": {
"genie": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "genie"]
},
"omni": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "omni"]
},
"evolution-api": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "evolution-api"],
"env": {
"EVOLUTION_API_BASE_URL": "http://localhost:8080",
"EVOLUTION_API_API_KEY": "YOUR_KEY"
}
}
}
}
Test Connection:
Ask Cline: “list all MCP servers”
Expected: Shows all three tools
Test It Works:
# Test conversion
uvx automagik-tools openapi https://api.github.com/openapi.json -t stdio
# Expected:
# INFO Created FastMCP OpenAPI server with XXX routes
# INFO Starting MCP server
Press Ctrl+C to stop.
Tested Configuration:
{
"cline.mcpServers": {
"github-api": {
"command": "uvx",
"args": [
"automagik-tools@latest",
"openapi",
"https://api.github.com/openapi.json"
],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}
Test Connection:
- Get token from https://github.com/settings/tokens
- Add to settings and reload
- Ask: “use github-api to list my repos”
- Expected: Cline uses GitHub API
Troubleshooting
Problem: Cline can’t find MCP server
Check Cline output:
- View → Output
- Select “Cline” from dropdown
- Look for MCP errors
Test tool:
uvx automagik-tools tool genie -t stdio
# Expected:
# INFO Starting MCP server 'Genie' with transport 'stdio'
Solution:
# Verify installation
uvx automagik-tools list
# Check settings file
code ~/.config/Code/User/settings.json
# Validate JSON
cat ~/.config/Code/User/settings.json | python -m json.tool
# Reload VSCode
# Cmd/Ctrl + Shift + P → "Developer: Reload Window"
Problem: Connection refused
Verify command:
# Test each tool
uvx automagik-tools tool TOOLNAME -t stdio
# Should start without errors
If this fails, it won’t work in VSCode/Cline.
Check VSCode terminal:
Open terminal in VSCode and run:
Should show available tools.
Problem: Authentication errors
Test API:
# Verify env vars
echo $EVOLUTION_API_API_KEY
# Test endpoint
curl -H "X-API-KEY: YOUR_KEY" http://localhost:8080/health
JSON syntax:
# No trailing commas
# Double quotes only
# Valid JSON structure
cat settings.json | python -m json.tool
Generate Config Helper
Use built-in generator:
# For any tool
uvx automagik-tools mcp-config TOOLNAME
Example output:
MCP Configuration for Cursor:
{
"genie": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "genie"]
}
}
To use this configuration:
1. Copy the JSON above
2. Open ~/.cursor/mcp.json (or create it)
3. Add this configuration to the 'mcpServers' section
4. Restart Cursor
✅ Configuration generated successfully!
For VSCode/Cline, wrap in "cline.mcpServers": { ... }
Settings File Locations
User Settings:~/Library/Application Support/Code/User/settings.json
Workspace Settings:
Verification Checklist
Real Config Example
Working config from production:
{
"cline.mcpServers": {
"genie": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "genie"]
},
"omni": {
"command": "uvx",
"args": ["automagik-tools@latest", "tool", "omni"]
}
}
}
Location: ~/.config/Code/User/settings.json (Linux/macOS)
Test: Open Cline, ask “what MCP servers are available?”
Workspace-Specific Config
For project-specific tools, create .vscode/settings.json:
{
"cline.mcpServers": {
"project-api": {
"command": "uvx",
"args": [
"automagik-tools@latest",
"openapi",
"https://api.myproject.com/openapi.json"
],
"env": {
"API_KEY": "${PROJECT_API_KEY}"
}
}
}
}
Then set env var:
export PROJECT_API_KEY="your_key"
Advanced: Custom Base URL
For OpenAPI with different base URLs:
{
"cline.mcpServers": {
"my-api": {
"command": "uvx",
"args": [
"automagik-tools@latest",
"openapi",
"https://docs.example.com/openapi.json",
"--base-url",
"https://api.example.com"
],
"env": {
"API_KEY": "your_key"
}
}
}
}
Test:
uvx automagik-tools openapi https://docs.example.com/openapi.json \
--base-url https://api.example.com \
-t stdio
Next Steps
All configs tested with VSCode 1.90+ and Cline extension latest version.