CodeNav
io.github.illescasDaniel/codenav-mcp
v2.0.1Updated Dec 1, 2026stdio · PyPI
Python code navigation and type-checked refactoring through MCP, powered by ty.
Install
Nothing to fill in: copy and run.
Run in your terminal
claude mcp add codenav-mcp -- uvx codenav-mcp==2.0.1Configuration
10 settings.
CODENAV_MCP_WORKSPACEEnv var· optionalProject root the server serves (never overridden); default follows the client's MCP roots, CLAUDE_PROJECT_DIR or the working directoryCODENAV_MCP_SOURCE_ROOTEnv var· optionalDirectory scanned for lookup implementations candidates and used to derive dotted import paths (e.g. src); default is the whole workspaceCODENAV_MCP_READ_ONLYEnv var· optionalSet to 1/true/yes/on to make write tools refuse to write (previews and checks still work)CODENAV_MCP_EXTRA_SOURCE_ROOTSEnv var· optionalComma-separated extra directories for Protocol implementation lookup. Unset scans top-level test/ and tests/ outside the source root. Set to none to scan only the source root.CODENAV_MCP_MAX_OUTPUT_CHARSEnv var· optionalMaximum characters of one tool result (default 30000); longer results end with an omission noteCODENAV_MCP_ALLOW_READONLY_FILESEnv var· optionalSet to 1/true/yes/on to let write tools overwrite read-only (0444) Python files and keep their mode
Show 4 moreShow fewer
CODENAV_MCP_EXCLUDE_DIRSEnv var· optionalComma-separated directory names added to the built-in list of directories that are never scanned or writtenCODENAV_MCP_INCLUDE_DIRSEnv var· optionalComma-separated directory names removed from that list, for example build to treat a first-party build/ package as sourceCODENAV_MCP_MAX_FILESEnv var· optionalMaximum number of Python files (.py/.pyi) a workspace may hold (default 250000); a larger tree is refused before the language server startsCODENAV_MCP_STATE_DIREnv var· optionalDirectory where previews and the applied-edit history are kept across restarts, one subdirectory per workspace (default $XDG_STATE_HOME/codenav-mcp or ~/.local/state/codenav-mcp)
Links
Listed in the official MCP Registry since Dec 1, 2026. Mirrored daily; last checked Dec 1, 2026.