dig
v0.4.1MCP 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.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Relative path to the file within the repo |
repo_path * | string | Absolute path to the git repository |
max_commits | integer | Maximum number of commits to return |
since | string | Date 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.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Relative path to the file within the repo |
repo_path * | string | Absolute path to the git repository |
end_line | integer | End of line range |
start_line | integer | Start 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.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Absolute path to the git repository |
max_commits | integer | Maximum number of commits to analyze |
path_pattern | string | Directory or path to scope analysis, e.g. "src/api/" or "lib/" |
since | string | Date 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search string to match against commit messages |
repo_path * | string | Absolute path to the git repository |
author | string | Filter by author name or email |
max_commits | integer | Maximum number of commits to return |
path_pattern | string | Limit search to commits touching this path |
since | string | Date 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.
| Parameter | Type | Description |
|---|---|---|
commit * | string | Commit hash (short or full), branch name, or tag |
repo_path * | string | Absolute path to the git repository |
show_diff | boolean | Include 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.
| Parameter | Type | Description |
|---|---|---|
commit * | string | Target commit, branch, or tag |
repo_path * | string | Absolute path to the git repository |
compare_to | string | Base to compare against (default: parent commit) |
context_lines | integer | Number of context lines in unified diff (default: 3) |
file_path | string | Limit diff to a specific file |
stat_only | boolean | Show 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.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Absolute path to the git repository |
max_commits | integer | Number of commits to analyze (default: 500) |
path_pattern | string | Limit analysis to a specific directory, e.g. 'src/' |
since | string | Date filter, e.g. "2024-01-01" or "6 months ago" |
top_n | integer | Number of top files to return (default: 20) |