Connecting to Claude Code
Use your Reeva servers with Anthropic's Claude Code CLI tool.
Prerequisites
- ✅ Reeva account with server
- ✅ Server API key
- ✅ Claude Code CLI installed
Setup Guide
1. Install Claude Code
# Using npm
npm install -g @anthropic-ai/claude-code
# Or using pip
pip install claude-code
2. Configure MCP Server
Get your config from Reeva Dashboard:
# Add MCP server to Claude Code
claude mcp add reeva \
--url https://api.joinreeva.com/mcp/server_YOUR_ID \
--api-key mcpk_YOUR_KEY
3. Verify Setup
List configured servers:
claude mcp list
You should see your Reeva server listed.
4. Test Tools
# List available tools
claude mcp get reeva
# Use in conversation
claude chat "Search the web for AI news"
Configuration File
Claude Code stores MCP config in:
Mac/Linux:
~/.claude/mcp-servers.json
Windows:
%USERPROFILE%\.claude\mcp-servers.json
Example config:
{
"reeva-research": {
"url": "https://api.joinreeva.com/mcp/server_abc123",
"apiKey": "mcpk_your_key"
}
}
Usage
Start Chat
claude chat
Tools are available automatically in conversation.
Direct Tool Invocation
# Execute specific tool
claude tool call google_search '{"query": "React hooks"}'
Troubleshooting
"MCP server not found"
Solution:
# Verify server is added
claude mcp list
# Re-add if missing
claude mcp add reeva --url ... --api-key ...
Authentication Errors
Solution:
- Check API key hasn't been revoked
- Verify key in Reeva dashboard
- Generate new key if needed
Best Practices
- ✅ Use descriptive server names
- ✅ Keep API keys secure (don't commit to Git)
- ✅ Test in Reeva dashboard before CLI use