Quick Diagnostics
Run these commands to quickly identify where the problem is: Test your API key:200. If you get 401, your API key is invalid or expired.
Test remote MCP server:
200 or 405. If the connection times out, check your network/firewall.
Test local Docker container:
200 or 405. If connection refused, the container isn’t running.
List your data sources (verify repos are indexed):
Common Issues
Repository not indexing
Repository not indexing
Symptoms: Repository appears in dashboard but shows no indexed content, or indexing seems stuck.Solutions:
- Check that the repository is not empty and contains code files
- Verify your GitHub/GitLab/Bitbucket connection is still authorized
- Check repository permissions — CodeAlive needs read access
- For large repositories, initial indexing can take 15+ minutes — check the status indicator in the dashboard
- Try removing and re-adding the repository
API key not working
API key not working
Symptoms:
401 Unauthorized responses, “invalid API key” errors.Solutions:- Verify the key format — it should be passed as
Bearer YOUR_KEYin the Authorization header - Generate a new key in the dashboard under MCP & API → + Create API Key
- Check for extra whitespace or line breaks when copying the key
- Ensure the key hasn’t been revoked — only active keys work
- Test with curl:
MCP server not connecting
MCP server not connecting
Symptoms: Agent can’t find CodeAlive tools, connection errors, timeouts.Solutions:
- Verify the URL is exactly
https://mcp.codealive.ai/api/(trailing slash matters for some agents) - Check your network — some corporate firewalls block MCP connections
- Restart your AI agent after changing MCP configuration
- For Docker: ensure the container is running with
docker ps - For Docker: verify port mapping — default is
8000:8000
Agent not detecting CodeAlive tools
Agent not detecting CodeAlive tools
Symptoms: AI agent doesn’t use
codebase_search / codebase_consultant, says tools aren’t available.Solutions:- Restart your AI agent — most agents only load MCP config at startup
- Check config file syntax — a missing comma or bracket breaks the whole file
- Verify the config file is in the right location (varies by agent — see integration guides)
- In Cursor: check Settings → Features → MCP for server status
- In VS Code: check Output → MCP panel for connection errors
- In Claude Code: run
claude mcp listto verify the server is registered
Slow responses
Slow responses
Symptoms: Queries take a long time or timeout.Solutions:
- Use more specific queries — broad searches across large codebases take longer
- Use
codebase_searchinstead ofcodebase_consultantfor simple lookups - Scope searches to specific repositories instead of searching everything
- For remote MCP: check your network latency to
mcp.codealive.ai - Consider running Docker locally for lower latency:
Docker container won't start
Docker container won't start
Symptoms: Container exits immediately, port conflicts, image pull failures.Solutions:
- Port conflict: Check if port 8000 is already in use:
Use a different port:
-p 9000:8000 - API key not set: The container requires
CODEALIVE_API_KEYenvironment variable - Image pull failure: Ensure you can access
ghcr.io: - Check logs:
docker logs codealive-mcpfor specific error messages
'Tool not found' errors
'Tool not found' errors
Symptoms: Agent reports that
codebase_search, codebase_consultant, or get_data_sources is not available.Solutions:- Verify MCP is enabled in your agent — some agents require explicit opt-in
- Check that the tool names are exact:
codebase_search,codebase_consultant,get_data_sources - Ensure the MCP server is connected (see “MCP server not connecting” above)
- Some agents cache tool lists — restart the agent to refresh
Search returns irrelevant results
Search returns irrelevant results
Symptoms: Search results don’t match your query, too many results from wrong files.Solutions:
- Use more specific terms — include class names, function names, or module names
- Scope the search to a specific repository if you have multiple indexed
- Try
deepsearch mode for architectural questions - Try
fastsearch mode for exact function/class name lookups - Check that the repository index is up to date in the dashboard