CodeNav
Python code navigation and type-checked refactoring through MCP, powered by ty.
Documentation & Preview
{ "mcpServers": { "mcp-codenav-mcp-5b5dd6cdbe4903132b92": { "command": "uvx", "args": [ "--from", "codenav-mcp==2.0.1", "codenav-mcp" ], "env": { "CODENAV_MCP_WORKSPACE": "${ENV_CODENAV_MCP_WORKSPACE}", "CODENAV_MCP_SOURCE_ROOT": "${ENV_CODENAV_MCP_SOURCE_ROOT}", "CODENAV_MCP_READ_ONLY": "${ENV_CODENAV_MCP_READ_ONLY}", "CODENAV_MCP_EXTRA_SOURCE_ROOTS": "${ENV_CODENAV_MCP_EXTRA_SOURCE_ROOTS}", "CODENAV_MCP_MAX_OUTPUT_CHARS": "${ENV_CODENAV_MCP_MAX_OUTPUT_CHARS}", "CODENAV_MCP_ALLOW_READONLY_FILES": "${ENV_CODENAV_MCP_ALLOW_READONLY_FILES}", "CODENAV_MCP_EXCLUDE_DIRS": "${ENV_CODENAV_MCP_EXCLUDE_DIRS}", "CODENAV_MCP_INCLUDE_DIRS": "${ENV_CODENAV_MCP_INCLUDE_DIRS}", "CODENAV_MCP_MAX_FILES": "${ENV_CODENAV_MCP_MAX_FILES}", "CODENAV_MCP_STATE_DIR": "${ENV_CODENAV_MCP_STATE_DIR}" } } }, "setup": { "fields": [ { "id": "ENV_CODENAV_MCP_WORKSPACE", "label": "CODENAV_MCP_WORKSPACE", "description": "Project root the server serves (never overridden); default follows the client's MCP roots, CLAUDE_PROJECT_DIR or the working directory", "required": false, "secret": false, "default": "" }, { "id": "ENV_CODENAV_MCP_SOURCE_ROOT", "label": "CODENAV_MCP_SOURCE_ROOT", "description": "Directory scanned for lookup implementations candidates and used to derive dotted import paths (e.g. src); default is the whole workspace", "required": false, "secret": false, "default": "" }, { "id": "ENV_CODENAV_MCP_READ_ONLY", "label": "CODENAV_MCP_READ_ONLY", "description": "Set to 1/true/yes/on to make write tools refuse to write (previews and checks still work)", "required": false, "secret": false, "default": "" }, { "id": "ENV_CODENAV_MCP_EXTRA_SOURCE_ROOTS", "label": "CODENAV_MCP_EXTRA_SOURCE_ROOTS", "description": "Comma-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.", "required": false, "secret": false, "default": "" }, { "id": "ENV_CODENAV_MCP_MAX_OUTPUT_CHARS", "label": "CODENAV_MCP_MAX_OUTPUT_CHARS", "description": "Maximum characters of one tool result (default 30000); longer results end with an omission note", "required": false, "secret": false, "default": "" }, { "id": "ENV_CODENAV_MCP_ALLOW_READONLY_FILES", "label": "CODENAV_MCP_ALLOW_READONLY_FILES", "description": "Set to 1/true/yes/on to let write tools overwrite read-only (0444) Python files and keep their mode", "required": false, "secret": false, "default": "" }, { "id": "ENV_CODENAV_MCP_EXCLUDE_DIRS", "label": "CODENAV_MCP_EXCLUDE_DIRS", "description": "Comma-separated directory names added to the built-in list of directories that are never scanned or written", "required": false, "secret": false, "default": "" }, { "id": "ENV_CODENAV_MCP_INCLUDE_DIRS", "label": "CODENAV_MCP_INCLUDE_DIRS", "description": "Comma-separated directory names removed from that list, for example build to treat a first-party build/ package as source", "required": false, "secret": false, "default": "" }, { "id": "ENV_CODENAV_MCP_MAX_FILES", "label": "CODENAV_MCP_MAX_FILES", "description": "Maximum number of Python files (.py/.pyi) a workspace may hold (default 250000); a larger tree is refused before the language server starts", "required": false, "secret": false, "default": "" }, { "id": "ENV_CODENAV_MCP_STATE_DIR", "label": "CODENAV_MCP_STATE_DIR", "description": "Directory 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)", "required": false, "secret": false, "default": "" } ], "requirements": [ "安装 Python 与 uv / uvx" ] }, "provenance": { "registryServer": "io.github.illescasDaniel/codenav-mcp", "registryVersion": "2.0.1", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.illescasDaniel%2Fcodenav-mcp/versions/2.0.1", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "pypi", "identifier": "codenav-mcp", "version": "2.0.1", "wheelSha256": "56095fdfcaef3ec3084420da5d5cd782d7c1a49f57b5ef15ed223b3c0880475f", "registryNameMatched": "io.github.illescasDaniel/codenav-mcp", "checkedAt": "2026-12-01T10:22:06.533Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }