Usage
--watch to auto-reload when the index changes.
The AI client spawns this server automatically based on your config. Do not start a separate
codanna serve --watch process—this causes index lock conflicts.Config Path
The--config .codanna/settings.toml argument uses a relative path. This works when:
- Project-scoped configs (Claude Code, Cursor, OpenCode, Gemini CLI): The client sets the working directory to your project root
- Global configs (Claude Desktop, Goose): You must run the client from your project directory, or use an absolute path
Claude Code
Add to.mcp.json in your project root:
Claude Desktop
Add to~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Cursor
Add to.cursor/mcp.json in your project root:
Codex CLI
Add to~/.codex/config.toml:
OpenCode
Add toopencode.json in your project root:
OpenCode combines command and arguments into a single array under
command.Goose
Via CLI:~/.config/goose/config.yaml:
Gemini CLI
Via CLI:settings.json: