code_nav MCP
code_nav MCP
AI-native deterministic code navigation MCP server for Codex / CodeCLI.
code_nav gives coding agents compact, structured repo context without making
them dump files into chat. It works in any git repo by detecting the repo root
and using git-visible files.
There is no semantic search, no embeddings, no vector database, no graph index, no Qdrant, no CocoIndex, and no Zoekt.
Repository:
https://github.com/ARQAWA/code-nav-mcpInstall Prompt
Use INSTALL_AGENT_PROMPT.md with Codex / CodeCLI on the target machine.
The prompt installs one shared user-level code_nav MCP:
$HOME/.local/share/code-nav-mcp/app
$HOME/.local/bin/code-nav-mcpIt also installs/checks Probe, ast-grep, ripgrep, and RTK, configures Codex MCP globally, installs Code Navigation Rules, and verifies the MCP tools.
Related MCP server: Satori
Tools
Tool | Purpose |
| Check repo detection and dependency health. |
| Main deterministic code discovery workflow. |
| File/path discovery. |
| Ranked exact text search, not proof. |
| Compact code context extraction. |
| AST search with ast-grep. |
| Exhaustive proof using raw rg/git grep. |
| File coverage and no-semantic-index status. |
Local Development
npm install
npm run build
npm test
npm run doctor
npm run self-testRun the MCP server locally:
node dist/cli.js mcpOptional Repo Config
No per-repo config is required. Rare overrides can use .code-navrc.json:
{
"max_file_bytes": 2097152,
"extra_exclude": [],
"extra_include": [],
"markdown": "normal",
"result_limit": 12
}Available Tools
8 toolsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
8 tool updates
v0.1.0- First observed
code_nav.coverage - First observed
code_nav.exact_audit - First observed
code_nav.exact_search - First observed
code_nav.extract_context - First observed
code_nav.find_file - First observed
code_nav.health - First observed
code_nav.search - First observed
code_nav.structural_search
TDQS
Each tool has a distinct purpose: coverage, exact audit, exact search, context extraction, file finding, health check, main search workflow, and structural search. No significant overlap; an agent can easily differentiate them.
All tools follow a consistent prefix 'code_nav.' and use lowercase with underscores. However, the action part varies between nouns (e.g., 'coverage', 'health') and verb_noun patterns (e.g., 'find_file', 'extract_context'), showing minor inconsistency.
With 8 tools, the set is well-scoped for code navigation. Each tool serves a clear function, and the count feels appropriate without being excessive or too sparse.
The tools cover a broad range of code navigation tasks: text search, structural search, file finding, coverage, and context extraction. Minor gaps exist like symbol search or definition lookup, but core workflows are well-supported.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for siGit (sigit.si): browse repos, search code, manage PRs/issues, web search.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that provides semantic search (RAG) over code repositories, enabling AI clients like Claude and Gemini to access project context without manual re-upload.-
- AlicenseNot gradedqualityBmaintenanceAgent-safe code retrieval MCP server that indexes repositories and provides semantic search, file navigation, call graph analysis, and bounded file reading tools for coding agents.3,448,4193AGPL 3.0
- FlicenseNot gradedqualityBmaintenanceWorkspace-aware MCP server that provides AI clients with structural code understanding via AST parsing, hybrid retrieval, and git history, enabling accurate code search, definition lookup, and blame analysis.-
- AlicenseNot gradedqualityCmaintenanceMCP server for semantic codebase navigation that builds an AST index of symbols, imports, and exports, providing AI agents with tools to search, explore, and understand code.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ARQAWA/code-nav-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server