Skip to content

Claude Desktop Connectors: CodeNavi Setup

How to expose CodeNavi as a Custom Connector in Claude Desktop (Settings → Connectors → Add custom connector).

This is Claude Desktop's Home / chat surface. The Code tab inside Claude Desktop is Claude Code, it reads a project .mcp.json directly over plain-HTTP localhost (no connector, no tunnel); see claude-integration.md. Use this guide only for the chat side or when you want CodeNavi reachable from another device/phone.

When to use this guide

Use this guide if you want CodeNavi to appear in Claude Desktop's Connectors UI (the toggle list next to the chat input). This is different from the CodeNavi Desktop extension documented below, which needs no HTTPS.

Signed in with an API key instead of a claude.ai account? Then Claude Desktop shows only the Code and Cowork tabs: there is no Home chat and no Connectors page, so this guide does not apply; use the Code tab with the plugin. That mode also keeps its files in a separate profile: ~/Library/Application Support/Claude-3p/ on macOS (logs under ~/Library/Logs/Claude-3p/), %LOCALAPPDATA%\Claude-3p\ on Windows (older versions: %APPDATA%\Claude-3p\), so edit the claude_desktop_config.json in that folder. Claude Desktop rewrites the file while it runs: quit the app before you edit it.

Path Transport When to use
CodeNavi Desktop extension (codenavi.mcpb) Local, to http://localhost:8765/mcp Single-machine setup, no public exposure
Custom Connector (this guide) Direct HTTPS to a public URL Multi-device, mobile, or you want the connector toggle UI

Desktop extension (single machine)

Claude Desktop's chat starts local MCP servers only as programs it runs itself; a plain http URL in claude_desktop_config.json is rejected. CodeNavi ships a Desktop extension for that, codenavi.mcpb (CodeNavi 1.3.67 or later). It runs on Claude Desktop's built-in Node.js, so there is nothing else to install, and it keeps the token in Claude Desktop's extension settings, not in a config file.

  1. Get the file from your server. Windows, in PowerShell:

    curl.exe -o claude.zip http://localhost:8765/plugins/claude.zip
    Expand-Archive claude.zip -DestinationPath . -Force
    start .\codenavi-plugin-claude\desktop-extension\codenavi.mcpb
    

    macOS:

    curl -o claude.zip http://localhost:8765/plugins/claude.zip
    unzip -o claude.zip && open codenavi-plugin-claude/desktop-extension/codenavi.mcpb
    

    The customer package carries the same file at plugins/claude/desktop-extension/codenavi.mcpb.

    Or skip the start/open step: in Claude Desktop go to Settings → Extensions and drag codenavi.mcpb from File Explorer (or Finder) onto that page. To replace an older CodeNavi extension, drag the new file over it; removing the old one first works too, but then you enter the token again. 2. Claude Desktop opens an install dialog: choose Install. It warns that the extension is unsigned; that is expected. 3. In Settings → Extensions → CodeNavi, paste the token: CODENAVI_AUTH_TOKEN from the .env in your install folder. Keep the URL unless CodeNavi runs on another machine. 4. Turn on the Enable toggle. Claude Desktop does not enable an extension that needed settings at install time, so until you do, the chat has no CodeNavi tools.

Start a new chat and ask "Use CodeNavi to list the codebases." A wrong token answers with a 401 message, a stopped server with "cannot reach … Is CodeNavi running?". For a server on another machine, put its address in the URL field, e.g. http://<server-address>:8765/mcp.

Older CodeNavi, or a codenavi entry in claude_desktop_config.json from an earlier version of this page (the mcp-remote bridge)? Quit Claude Desktop from the tray, delete that entry, and use the extension: with both, the Code tab loads CodeNavi twice. On a server older than 1.3.67, claude.zip has no desktop-extension folder; update the server first.

Prerequisite: an HTTPS URL

The Connectors UI requires HTTPS and a publicly reachable URL. CodeNavi binds to :8765 over plain HTTP, so you need an auth token and a tunnel in front of it, both covered in Remote access over HTTPS (Tailscale Funnel recommended, Cloudflare Tunnel as the alternative). Do that first and come back with your https://… URL and token.

Add the connector in Claude Desktop

  1. Open Claude Desktop → Settings → Connectors
  2. Click Add custom connector
  3. Fill in:
  4. Name: CodeNavi
  5. Remote MCP server URL: https://<your-url>/mcp (e.g. https://codenavi-host.tail1234.ts.net/mcp)
  6. Claude Desktop will prompt for authentication. Choose Custom header and add:
  7. Header name: Authorization
  8. Header value: Bearer <your-token>
  9. Save. The connector should show as Connected and CodeNavi's default tools appear in the tool toggle: semantic search, the call graph (find_callers, impact_analysis, diff_impact), the codebase overview and the index tools. The rest, including grep_search and read_file, runs on demand via reveal_tools.

Test it

In a new chat, toggle the CodeNavi connector on and ask:

Use semantic_search to find where authentication is handled.

Claude should call the tool over HTTPS through the tunnel.

Multi-codebase scoping

If your CodeNavi instance hosts multiple codebases, point the connector at a scoped endpoint:

https://<your-url>/mcp/myproject

Each codebase needs its own connector entry in Claude Desktop. See remote-access.md for the endpoint table and setup.md for how scoped endpoints work.

Troubleshooting

Tunnel-side problems (can't connect, 401, timeouts, reconnect notices) are covered in Remote access → Troubleshooting. Desktop-specific notes:

Connector shows "Failed to connect"

Work through the tunnel checks first (remote-access.md); if the URL curls fine from another machine but Claude Desktop still refuses, re-add the connector, a stale entry can cache a dead URL.

"401 Unauthorized" in Claude Desktop

The token in the connector's Authorization header doesn't match CODENAVI_AUTH_TOKEN in ~/codenavi/.env. Re-paste it carefully: no extra whitespace, include the Bearer prefix.

Connector keeps "reconnecting" between calls

Cosmetic: CodeNavi runs stateless_http=True, and some clients show SSE reconnect notices after each tool call. Tool results still return correctly.