MCPServers
Git Tools - MCP server logo

Git Tools

2
0

Summary

This MCP server implementation provides Git tools for the Model Context Protocol. It integrates with the MCP Core, Server, and Macros libraries to enable Git-related operations. The server is built using Rust and leverages asynchronous programming with Tokio. It's designed for use cases requiring version control integration within AI-assisted applications, such as managing code repositories or tracking changes in collaborative environments.

Available Actions(10)

git_status

Get the status of a repository. Parameters: repo_path (string) - Path to the Git repository.

git_branches

List all branches. Parameters: repo_path (string) - Path to the Git repository.

git_log

Get commit history. Parameters: repo_path (string) - Path to the Git repository, max_count (optional integer) - Maximum number of commits to return, branch (optional string) - Branch name.

git_time_filtered_log

Get commits within a specified time range, optionally filtered by author and branch. Parameters: repo_path (string) - Path to the Git repository, since (string) - Start date, until (optional string) - End date, author (optional string) - Filter by specific author, branch (optional string) - Branch name.

git_commit

Create a new commit. Parameters: repo_path (string) - Path to the Git repository, message (string) - Commit message, all (optional boolean) - Whether to automatically stage modified files.

git_pull

Pull changes from remote. Parameters: repo_path (string) - Path to the Git repository, remote (optional string) - Remote name, defaults to 'origin', branch (optional string) - Branch name.

git_push

Push changes to remote. Parameters: repo_path (string) - Path to the Git repository, remote (optional string) - Remote name, defaults to 'origin', branch (optional string) - Branch name, force (optional boolean) - Whether to force push.

git_diff

View file differences. Parameters: repo_path (string) - Path to the Git repository, path (optional string) - Path to file or directory, staged (optional boolean) - Whether to show staged changes, commit (optional string) - Commit to compare against.

git_add

Add file contents to the staging area. Parameters: repo_path (string) - Path to the Git repository, path (string) - Path(s) to add or patterns to match, update (optional boolean) - Whether to update, rather than add, all (optional boolean) - Whether to add all changes, including untracked files.

git_reset

Reset the staging area or working tree to a specified state. Parameters: repo_path (string) - Path to the Git repository, path (string) - Path(s) to reset or patterns to match, hard (optional boolean) - Whether to perform a hard reset, target (optional string) - The commit or branch to reset to (defaults to HEAD).

Last Updated: April 17, 2025

社区评论

0.0
0 条评论
5
0
4
0
3
0
2
0
1
0

暂无评论. 成为第一个评论的人!

登录以参与讨论

Coming soon to
HighlightHighlight AI

语言

TypeScript

分类

标签