repoport
v0.1.0Local git operations over MCP: status, diff, log, branches and commits.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
git_status
Show the working tree status of a repository.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path of the local git repository. |
git_diff_unstaged
Show unstaged changes in the working tree.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path of the local git repository. |
context_lines | integer | Number of context lines to include around each change. |
git_diff_staged
Show changes staged for the next commit.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path of the local git repository. |
context_lines | integer | Number of context lines to include around each change. |
git_diff
Show changes between the working tree and a target revision.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path of the local git repository. |
target * | string | Target revision to compare the working tree against. |
context_lines | integer | Number of context lines to include around each change. |
git_add
Stage files for the next commit.
| Parameter | Type | Description |
|---|---|---|
files * | array | Files to stage, as paths relative to the repository. |
repo_path * | string | Path of the local git repository. |
git_reset
Unstage all staged changes, keeping the working tree.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path of the local git repository. |
git_commit
Commit staged changes with a message.
| Parameter | Type | Description |
|---|---|---|
message * | string | Commit message for the staged changes. |
repo_path * | string | Path of the local git repository. |
git_log
List recent commits, optionally within a timestamp window.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path of the local git repository. |
end_timestamp | string | Only return commits at or before this timestamp. |
max_count | integer | Maximum number of commits to return. |
start_timestamp | string | Only return commits at or after this timestamp. |
git_show
Show a commit or other revision object.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path of the local git repository. |
revision * | string | Revision to show, such as a commit hash or a tag. |
git_create_branch
Create a new branch, optionally from a base branch.
| Parameter | Type | Description |
|---|---|---|
branch_name * | string | Name of the branch to create. |
repo_path * | string | Path of the local git repository. |
base_branch | string | Optional branch to create the new branch from. |
git_checkout
Switch to an existing branch.
| Parameter | Type | Description |
|---|---|---|
branch_name * | string | Name of the existing branch to switch to. |
repo_path * | string | Path of the local git repository. |
git_branch
List branches, optionally filtered by containment.
| Parameter | Type | Description |
|---|---|---|
repo_path * | string | Path of the local git repository. |
branch_type | string | Which branches to list: local, remote, or all. |
contains | string | Only list branches that contain this commit. |
not_contains | string | Only list branches that do not contain this commit. |