dig

v0.4.1
io.github.nakishiyaman/dig Checked 1 day ago Published 8 months ago

MCP server for code archaeology: git blame, file history, contributors, and co-change analysis

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

git_file_history

Get the commit history for a specific file. Useful for understanding how and why a file evolved over time.

ParameterTypeDescription
file_path *stringRelative path to the file within the repo
repo_path *stringAbsolute path to the git repository
max_commitsintegerMaximum number of commits to return
sincestringDate filter, e.g. "2024-01-01" or "6 months ago"

git_blame_context

Get blame information with semantic context — who wrote each section and when. Groups consecutive lines by the same commit into blocks for easier comprehension.

ParameterTypeDescription
file_path *stringRelative path to the file within the repo
repo_path *stringAbsolute path to the git repository
end_lineintegerEnd of line range
start_lineintegerStart of line range

git_contributor_patterns

Analyze contributor patterns — who has expertise in what areas. Useful for identifying reviewers, understanding code ownership, and finding domain experts.

ParameterTypeDescription
repo_path *stringAbsolute path to the git repository
max_commitsintegerMaximum number of commits to analyze
path_patternstringDirectory or path to scope analysis, e.g. "src/api/" or "lib/"
sincestringDate filter, e.g. "2024-01-01" or "1 year ago"

git_search_commits

Search commit messages by keyword. Useful for finding when a feature was introduced, a bug was fixed, or locating commits related to a ticket number.

ParameterTypeDescription
query *stringSearch string to match against commit messages
repo_path *stringAbsolute path to the git repository
authorstringFilter by author name or email
max_commitsintegerMaximum number of commits to return
path_patternstringLimit search to commits touching this path
sincestringDate filter, e.g. "2024-01-01" or "6 months ago"

git_commit_show

Show detailed information about a specific commit: full message, changed files, and optionally the diff. Useful for drilling into a commit found via git_search_commits.

ParameterTypeDescription
commit *stringCommit hash (short or full), branch name, or tag
repo_path *stringAbsolute path to the git repository
show_diffbooleanInclude the full diff output (default: false, shows stat only)

git_diff_context

Show the diff between two commits, branches, or tags. Useful for understanding what changed between releases, branches, or any two points in history.

ParameterTypeDescription
commit *stringTarget commit, branch, or tag
repo_path *stringAbsolute path to the git repository
compare_tostringBase to compare against (default: parent commit)
context_linesintegerNumber of context lines in unified diff (default: 3)
file_pathstringLimit diff to a specific file
stat_onlybooleanShow only file change statistics (default: false)

git_hotspots

Identify the most frequently changed files in the repository. Files with high change frequency often indicate areas of technical debt, active development, or bug-prone code.

ParameterTypeDescription
repo_path *stringAbsolute path to the git repository
max_commitsintegerNumber of commits to analyze (default: 500)
path_patternstringLimit analysis to a specific directory, e.g. 'src/'
sincestringDate filter, e.g. "2024-01-01" or "6 months ago"
top_nintegerNumber of top files to return (default: 20)