Skip to content

Connect your agent

CodeNavi speaks MCP over streamable HTTP, one server, one /mcp endpoint, every client. Pick your agent below for the exact config and per-client notes; the guides in this section also cover token auth, tool approvals, and each client's gotchas.

Four shortcuts worth knowing:

  • On a running server, open http://localhost:8765/connect, the built-in wizard renders your client's config with your real token filled in and a live Verify button. Server on another machine? Open it from the client at the server's address (http://<server-ip>:8765/connect), the snippets follow the address in the browser bar. Server-side bind, firewall and the Claude Code env block: Remote access → Same LAN.
  • Let your agent do it. Paste Set up CodeNavi by following the instructions at https://codenavi.com/docs/setup-agent.md into Claude Code, Codex or Antigravity, the agent setup runbook installs or connects, wires the client and verifies a first search.
  • Want the commands, skills and hooks too? Claude Code, Codex, Antigravity and Cursor get a plugin from your server, see Plugins for what each one ships.
  • No server yet? The public preview of the same wizard at codenavi.com/connect-preview shows the config for 23 clients with placeholders you fill in.

The /connect wizard with Claude Code selected: token step (token hidden), client picker, and the two plugin install commands The /connect wizard with Claude Code selected: token step (token hidden), client picker, and the two plugin install commands

Client guides

  • Claude Code


    The bundled plugin: one-command install, 13 slash commands, skills, statusline.

  • Claude Desktop


    Connect via custom connectors: including from another machine on your LAN.

  • OpenAI Codex CLI


    Bundled plugin with wrapper commands, or plain config.toml MCP wiring.

  • GitHub Copilot CLI


    copilot mcp add plus the bundled plugin's skills; runs offline on a local model.

  • Google Antigravity


    Bundled plugin for the agy CLI; the IDE and the desktop app share its MCP config, see also the Windows guide.

  • OpenCode


    opencode.json MCP config with per-tool permissions; on 2.x set "codemode": false for local models.

  • Pi


    Native MCP on Pi 0.99+ (older Pi: the adapter); config and caveats.

  • VS Code


    Native MCP support (agent mode), the config shape most MCP-capable editors share.

  • Zed


    Context server config; runs air-gapped with local models.

  • JetBrains


    AI Assistant, Junie and Junie CLI: one mcpServers block with url + headers.

  • Gemini CLI


    Google's terminal agent: url + "type": "http" in ~/.gemini/settings.json, or gemini mcp add.

  • Kiro


    Agentic IDE: .kiro/settings/mcp.json; HTTPS for a server on another machine.

  • AnythingLLM


    Local-first chat workspace over your CodeNavi index.

  • CI review bots


    GitHub / Forgejo Actions: CodeNavi-backed review in your pipeline.

Other MCP clients

Cursor, Windsurf/Devin, Cline, Roo Code, Continue, and anything else that speaks MCP connect with the same endpoint and token, the config is a minor variation of the VS Code shape. Cursor also gets a plugin with both skills and both hooks. Grab the exact snippet for your client from the connect-preview picker, or from your own server's /connect wizard.

Exposing the server beyond localhost (HTTPS, reverse proxy, tokens)? See Remote access.