@nexapp/code-map-mcp
v0.3.0
Published
MCP server for the code-map TypeScript dependency index
Readme
code-map-mcp
MCP server for the code-map TypeScript dependency index.
Exposes the LMDB store produced by code-map index to AI coding assistants
(Claude Code, Cursor, etc.) via the Model Context Protocol.
Usage
1. Index your project
code-map index ./my-projectThis produces a .code-map/ LMDB store in the current directory.
2. Add to your MCP config
.mcp.json (Claude Code, project-level):
{
"mcpServers": {
"code-map": {
"command": "npx",
"args": ["-y", "code-map-mcp", "--db", ".code-map"]
}
}
}The --db flag points to the LMDB store directory. It can also be set via the
CODE_MAP_DB environment variable.
Available tools
| Tool | Description |
| --- | --- |
| get_project_info | Return project metadata: name, root directory, and last-indexed timestamp |
| get_file_info | Return exports and cached imports for a specific file in the index |
| find_dependencies | Find files that the given file imports. Pass transitive: true to follow edges recursively |
| find_dependents | Find files that import the given file. Pass transitive: true to follow edges recursively |
| find_cycles | Return all dependency cycles detected during the last index run |
| search_exports | Search for exported symbols by name (case-insensitive). Optionally filter by kind: class, function, interface, enum, type |
License
MIT
