Project Context Map

v0.1.13
io.github.tamojit-123/project-context-map-mcp Checked 46 minutes ago Published 2 days ago

Index 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.

ParameterTypeDescription
projectRootstringOptional 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.

ParameterTypeDescription
query *stringNatural-language query.
limitnumberMaximum number of file paths to return.
projectRootstringOptional 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.

ParameterTypeDescription
paths *arrayRepository-relative file paths.
projectRootstringOptional 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.

ParameterTypeDescription
content *stringFull file content to write.
path *stringRepository-relative path to write.
projectRootstringOptional project root. Defaults to PROJECT_ROOT or current working directory.
summarystringShort Change Log summary.

get_project_summary

Load the current project context map and return the project summary, modules, stack, and hotspots.

ParameterTypeDescription
projectRootstringOptional 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.

ParameterTypeDescription
projectRootstringOptional 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.

ParameterTypeDescription
module *stringModule or feature name.
projectRootstringOptional 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.

ParameterTypeDescription
task *stringNatural-language change request, bug description, or feature request.
limitnumberMaximum number of files to return.
projectRootstringOptional 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.

ParameterTypeDescription
daysnumberHow many days of git history to inspect.
projectRootstringOptional 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.

ParameterTypeDescription
path *stringRepository-relative file path.
projectRootstringOptional project root. Defaults to PROJECT_ROOT or current working directory.