Skip to main content
Codanna is a local code intelligence MCP server and CLI for AI coding agents. This page covers common issues and resolutions for indexing, semantic search, MCP integration, and pipeline debugging.

Semantic Search Not Working

Check index exists:
Check documentation comments exist: Semantic search requires doc comments on symbols. Functions without documentation won’t appear in results. Re-index after configuration changes:

No Results Found

Try broader terms:
Check language filter:

Index Not Updating

Check watch is enabled:
Force re-index:

MCP Connection Issues

Test connection:
Check Codanna is in PATH:
Check .codanna directory exists:

Enable Debug Logging

Configure per-module logging in .codanna/settings.toml:
Levels: error, warn, info, debug, trace

View Index Stats

Shows:
  • Total symbols indexed
  • Languages detected
  • Symbol counts by kind

Common Exit Codes

Next Steps

CLI Reference

Commands, flags, and exit codes.

Customization

Logging configuration and per-module log levels.