Overview
Integrate CodeAlive with Claude Code to enhance your AI coding assistant with deep contextual understanding of your entire codebase. This integration uses the Model Context Protocol (MCP) to provide Claude Code with semantic search and code intelligence capabilities.Prerequisites
- Claude Pro, Max, Team, or Enterprise subscription (required for MCP support)
- Claude Code installed
- CodeAlive account with API key (Sign up here)
- Indexed repositories in your CodeAlive dashboard
Installation Steps
Claude Code supports both local and remote MCP servers with OAuth authentication.
Add via CLI (Recommended)
Run this command in your terminal:Replace
YOUR_API_KEY_HERE with your actual CodeAlive API key.Available Commands
Once integrated, Claude Code can use these CodeAlive capabilities:Repository Management
Semantic Code Search
Contextual Analysis
Usage Patterns
- Code Understanding
- Bug Investigation
- Code Generation
- Refactoring
Advanced Features
Multi-Repository Support
CodeAlive automatically provides access to all repositories indexed in your dashboard. Use theget_data_sources tool to discover available repositories and workspaces, then target specific ones in your searches:
Custom Search Scopes
Focus searches on specific parts of your codebase:Intelligent Code Reviews
Best Practices
Keep Repos Updated
Regularly sync repositories in CodeAlive dashboard for accurate context
Use Specific Queries
Be precise with technical terms for better search results
Leverage Context
Reference CodeAlive when working with large codebases
Iterate Quickly
Use CodeAlive to validate ideas before implementing
Productivity Tips
Quick Commands
Quick Commands
Use slash commands for common operations:
/search- Quick code search/explain- Get explanations with context/similar- Find similar implementations/repos- List available repositories
Context Management
Context Management
- Clear context between unrelated tasks
- Use CodeAlive to establish context for new features
- Reference specific files when needed
Code Generation
Code Generation
- Always search for existing patterns first
- Let Claude Code match your coding style
- Verify generated code against your conventions
Troubleshooting
CodeAlive not responding
CodeAlive not responding
Solutions:
- Check MCP server status in Claude Code
- Verify API key is correct and active
- Ensure repositories are indexed
- Try reloading Claude Code
No repositories found
No repositories found
Solutions:
- Log into CodeAlive dashboard
- Verify repositories are indexed
- Wait for indexing to complete
- Check API key permissions
Slow responses
Slow responses
Solutions:
- Use more specific search queries
- Limit search to specific repositories
- Check CodeAlive service status
- Consider upgrading your plan
Authentication errors
Authentication errors
Solutions:
- Regenerate API key in dashboard
- Update MCP configuration
- Ensure Bearer token format is correct
- Test API key with curl
Integration with Claude Code Features
Projects
- CodeAlive automatically understands your project structure
- Provides context across multiple files and folders
- Maintains awareness of dependencies and imports