repoport

v0.1.0
io.github.CloudCorpRecords/repoport Checked 4 hours ago Published 1 month ago

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

ParameterTypeDescription
repo_path *stringPath of the local git repository.

git_diff_unstaged

Show unstaged changes in the working tree.

ParameterTypeDescription
repo_path *stringPath of the local git repository.
context_linesintegerNumber of context lines to include around each change.

git_diff_staged

Show changes staged for the next commit.

ParameterTypeDescription
repo_path *stringPath of the local git repository.
context_linesintegerNumber of context lines to include around each change.

git_diff

Show changes between the working tree and a target revision.

ParameterTypeDescription
repo_path *stringPath of the local git repository.
target *stringTarget revision to compare the working tree against.
context_linesintegerNumber of context lines to include around each change.

git_add

Stage files for the next commit.

ParameterTypeDescription
files *arrayFiles to stage, as paths relative to the repository.
repo_path *stringPath of the local git repository.

git_reset

Unstage all staged changes, keeping the working tree.

ParameterTypeDescription
repo_path *stringPath of the local git repository.

git_commit

Commit staged changes with a message.

ParameterTypeDescription
message *stringCommit message for the staged changes.
repo_path *stringPath of the local git repository.

git_log

List recent commits, optionally within a timestamp window.

ParameterTypeDescription
repo_path *stringPath of the local git repository.
end_timestampstringOnly return commits at or before this timestamp.
max_countintegerMaximum number of commits to return.
start_timestampstringOnly return commits at or after this timestamp.

git_show

Show a commit or other revision object.

ParameterTypeDescription
repo_path *stringPath of the local git repository.
revision *stringRevision to show, such as a commit hash or a tag.

git_create_branch

Create a new branch, optionally from a base branch.

ParameterTypeDescription
branch_name *stringName of the branch to create.
repo_path *stringPath of the local git repository.
base_branchstringOptional branch to create the new branch from.

git_checkout

Switch to an existing branch.

ParameterTypeDescription
branch_name *stringName of the existing branch to switch to.
repo_path *stringPath of the local git repository.

git_branch

List branches, optionally filtered by containment.

ParameterTypeDescription
repo_path *stringPath of the local git repository.
branch_typestringWhich branches to list: local, remote, or all.
containsstringOnly list branches that contain this commit.
not_containsstringOnly list branches that do not contain this commit.