Project Context Map
v0.1.13Index repo import topology and git hotspots into project memory for low-token MCP coding.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
read_project_context
Returns the generated .project.md content for the repository.
| Parameter | Type | Description |
|---|---|---|
projectRoot | string | Optional project root. Defaults to PROJECT_ROOT or current working directory. |
query_topology
Takes a natural language query and returns matched file paths from the query index, along with import/dependency topology context.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural-language query. |
limit | number | Maximum number of file paths to return. |
projectRoot | string | Optional project root. Defaults to PROJECT_ROOT or current working directory. |
read_files_sparse
Read only a small set of indexed files. Rejects paths that are outside the project root or missing from the project topology.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Repository-relative file paths. |
projectRoot | string | Optional project root. Defaults to PROJECT_ROOT or current working directory. |
write_and_log
Writes file content and appends an entry to the .project.md Change Log.
| Parameter | Type | Description |
|---|---|---|
content * | string | Full file content to write. |
path * | string | Repository-relative path to write. |
projectRoot | string | Optional project root. Defaults to PROJECT_ROOT or current working directory. |
summary | string | Short Change Log summary. |
get_project_summary
Load the current project context map and return the project summary, modules, stack, and hotspots.
| Parameter | Type | Description |
|---|---|---|
projectRoot | string | Optional project root. Defaults to PROJECT_ROOT or current working directory. |
refresh_project_map
Regenerate .project-map.json and .project-map.md for the current repository.
| Parameter | Type | Description |
|---|---|---|
projectRoot | string | Optional project root. Defaults to PROJECT_ROOT or current working directory. |
get_module_context
Return context for a module or feature area, including module summary, files, recent commits, and likely impact paths.
| Parameter | Type | Description |
|---|---|---|
module * | string | Module or feature name. |
projectRoot | string | Optional project root. Defaults to PROJECT_ROOT or current working directory. |
find_relevant_files
Rank the most relevant files for a natural-language task so the coding agent can open only a small subset.
| Parameter | Type | Description |
|---|---|---|
task * | string | Natural-language change request, bug description, or feature request. |
limit | number | Maximum number of files to return. |
projectRoot | string | Optional project root. Defaults to PROJECT_ROOT or current working directory. |
get_recent_git_changes
Summarize git commits and hotspots from the last N days. Default is 5 days.
| Parameter | Type | Description |
|---|---|---|
days | number | How many days of git history to inspect. |
projectRoot | string | Optional project root. Defaults to PROJECT_ROOT or current working directory. |
explain_file_role
Explain why a file exists, which module it belongs to, and whether it changed recently.
| Parameter | Type | Description |
|---|---|---|
path * | string | Repository-relative file path. |
projectRoot | string | Optional project root. Defaults to PROJECT_ROOT or current working directory. |