mcp-server-git 0.4.1__tar.gz → 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mcp_server_git-0.4.1 → mcp_server_git-0.5.0}/PKG-INFO +51 -26
- {mcp_server_git-0.4.1 → mcp_server_git-0.5.0}/README.md +50 -25
- {mcp_server_git-0.4.1 → mcp_server_git-0.5.0}/pyproject.toml +2 -2
- {mcp_server_git-0.4.1 → mcp_server_git-0.5.0}/.gitignore +0 -0
- {mcp_server_git-0.4.1 → mcp_server_git-0.5.0}/.python-version +0 -0
- {mcp_server_git-0.4.1 → mcp_server_git-0.5.0}/LICENSE +0 -0
- {mcp_server_git-0.4.1 → mcp_server_git-0.5.0}/src/mcp_server_git/__init__.py +0 -0
- {mcp_server_git-0.4.1 → mcp_server_git-0.5.0}/src/mcp_server_git/__main__.py +0 -0
- {mcp_server_git-0.4.1 → mcp_server_git-0.5.0}/src/mcp_server_git/server.py +0 -0
- {mcp_server_git-0.4.1 → mcp_server_git-0.5.0}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: mcp-server-git
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: A Model Context Protocol server providing tools to read, search, and manipulate Git repositories programmatically via LLMs
|
|
5
5
|
Author: Anthropic, PBC.
|
|
6
6
|
Maintainer-email: David Soria Parra <davidsp@anthropic.com>
|
|
@@ -26,19 +26,53 @@ A Model Context Protocol server for Git repository interaction and automation. T
|
|
|
26
26
|
|
|
27
27
|
Please note that mcp-server-git is currently in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
### Tools
|
|
30
|
+
|
|
31
|
+
1. `git_status`
|
|
32
|
+
- Shows the working tree status
|
|
33
|
+
- Input:
|
|
34
|
+
- `repo_path` (string): Path to Git repository
|
|
35
|
+
- Returns: Current status of working directory as text output
|
|
36
|
+
|
|
37
|
+
2. `git_diff_unstaged`
|
|
38
|
+
- Shows changes in working directory not yet staged
|
|
39
|
+
- Input:
|
|
40
|
+
- `repo_path` (string): Path to Git repository
|
|
41
|
+
- Returns: Diff output of unstaged changes
|
|
42
|
+
|
|
43
|
+
3. `git_diff_staged`
|
|
44
|
+
- Shows changes that are staged for commit
|
|
45
|
+
- Input:
|
|
46
|
+
- `repo_path` (string): Path to Git repository
|
|
47
|
+
- Returns: Diff output of staged changes
|
|
48
|
+
|
|
49
|
+
4. `git_commit`
|
|
50
|
+
- Records changes to the repository
|
|
51
|
+
- Inputs:
|
|
52
|
+
- `repo_path` (string): Path to Git repository
|
|
53
|
+
- `message` (string): Commit message
|
|
54
|
+
- Returns: Confirmation with new commit hash
|
|
55
|
+
|
|
56
|
+
5. `git_add`
|
|
57
|
+
- Adds file contents to the staging area
|
|
58
|
+
- Inputs:
|
|
59
|
+
- `repo_path` (string): Path to Git repository
|
|
60
|
+
- `files` (string[]): Array of file paths to stage
|
|
61
|
+
- Returns: Confirmation of staged files
|
|
62
|
+
|
|
63
|
+
6. `git_reset`
|
|
64
|
+
- Unstages all staged changes
|
|
65
|
+
- Input:
|
|
66
|
+
- `repo_path` (string): Path to Git repository
|
|
67
|
+
- Returns: Confirmation of reset operation
|
|
68
|
+
|
|
69
|
+
7. `git_log`
|
|
70
|
+
- Shows the commit logs
|
|
71
|
+
- Inputs:
|
|
72
|
+
- `repo_path` (string): Path to Git repository
|
|
73
|
+
- `max_count` (number, optional): Maximum number of commits to show (default: 10)
|
|
74
|
+
- Returns: Array of commit entries with hash, author, date, and message
|
|
30
75
|
|
|
31
|
-
The current list of tools includes:
|
|
32
|
-
|
|
33
|
-
- `git_status`: Shows the working tree status
|
|
34
|
-
- `git_diff_unstaged`: Shows changes in the working directory that are not yet staged
|
|
35
|
-
- `git_diff_staged`: Shows changes that are staged for commit
|
|
36
|
-
- `git_commit`: Records changes to the repository
|
|
37
|
-
- `git_add`: Adds file contents to the staging area
|
|
38
|
-
- `git_reset`: Unstages all staged changes
|
|
39
|
-
- `git_log`: Shows the commit logs
|
|
40
|
-
|
|
41
|
-
This list is expected to grow as we add more functionality to the server. We welcome contributions from the community to expand and enhance the available tools.
|
|
42
76
|
|
|
43
77
|
## Installation
|
|
44
78
|
|
|
@@ -63,9 +97,9 @@ python -m mcp_server_git
|
|
|
63
97
|
|
|
64
98
|
## Configuration
|
|
65
99
|
|
|
66
|
-
###
|
|
100
|
+
### Usage with Claude Desktop
|
|
67
101
|
|
|
68
|
-
Add to your
|
|
102
|
+
Add this to your `claude_desktop_config.json`:
|
|
69
103
|
|
|
70
104
|
<details>
|
|
71
105
|
<summary>Using uvx</summary>
|
|
@@ -93,7 +127,7 @@ Add to your Claude settings:
|
|
|
93
127
|
```
|
|
94
128
|
</details>
|
|
95
129
|
|
|
96
|
-
###
|
|
130
|
+
### Usage with [Zed](https://github.com/zed-industries/zed)
|
|
97
131
|
|
|
98
132
|
Add to your Zed settings.json:
|
|
99
133
|
|
|
@@ -138,15 +172,6 @@ cd path/to/servers/src/git
|
|
|
138
172
|
npx @modelcontextprotocol/inspector uv run mcp-server-git
|
|
139
173
|
```
|
|
140
174
|
|
|
141
|
-
## Contributing
|
|
142
|
-
|
|
143
|
-
We encourage contributions to help expand and improve mcp-server-git. Whether you want to add new tools, enhance existing functionality, or improve documentation, your input is valuable.
|
|
144
|
-
|
|
145
|
-
For examples of other MCP servers and implementation patterns, see:
|
|
146
|
-
https://github.com/modelcontextprotocol/servers
|
|
147
|
-
|
|
148
|
-
Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-git even more powerful and useful.
|
|
149
|
-
|
|
150
175
|
## License
|
|
151
176
|
|
|
152
|
-
|
|
177
|
+
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
|
|
@@ -6,19 +6,53 @@ A Model Context Protocol server for Git repository interaction and automation. T
|
|
|
6
6
|
|
|
7
7
|
Please note that mcp-server-git is currently in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### Tools
|
|
10
|
+
|
|
11
|
+
1. `git_status`
|
|
12
|
+
- Shows the working tree status
|
|
13
|
+
- Input:
|
|
14
|
+
- `repo_path` (string): Path to Git repository
|
|
15
|
+
- Returns: Current status of working directory as text output
|
|
16
|
+
|
|
17
|
+
2. `git_diff_unstaged`
|
|
18
|
+
- Shows changes in working directory not yet staged
|
|
19
|
+
- Input:
|
|
20
|
+
- `repo_path` (string): Path to Git repository
|
|
21
|
+
- Returns: Diff output of unstaged changes
|
|
22
|
+
|
|
23
|
+
3. `git_diff_staged`
|
|
24
|
+
- Shows changes that are staged for commit
|
|
25
|
+
- Input:
|
|
26
|
+
- `repo_path` (string): Path to Git repository
|
|
27
|
+
- Returns: Diff output of staged changes
|
|
28
|
+
|
|
29
|
+
4. `git_commit`
|
|
30
|
+
- Records changes to the repository
|
|
31
|
+
- Inputs:
|
|
32
|
+
- `repo_path` (string): Path to Git repository
|
|
33
|
+
- `message` (string): Commit message
|
|
34
|
+
- Returns: Confirmation with new commit hash
|
|
35
|
+
|
|
36
|
+
5. `git_add`
|
|
37
|
+
- Adds file contents to the staging area
|
|
38
|
+
- Inputs:
|
|
39
|
+
- `repo_path` (string): Path to Git repository
|
|
40
|
+
- `files` (string[]): Array of file paths to stage
|
|
41
|
+
- Returns: Confirmation of staged files
|
|
42
|
+
|
|
43
|
+
6. `git_reset`
|
|
44
|
+
- Unstages all staged changes
|
|
45
|
+
- Input:
|
|
46
|
+
- `repo_path` (string): Path to Git repository
|
|
47
|
+
- Returns: Confirmation of reset operation
|
|
48
|
+
|
|
49
|
+
7. `git_log`
|
|
50
|
+
- Shows the commit logs
|
|
51
|
+
- Inputs:
|
|
52
|
+
- `repo_path` (string): Path to Git repository
|
|
53
|
+
- `max_count` (number, optional): Maximum number of commits to show (default: 10)
|
|
54
|
+
- Returns: Array of commit entries with hash, author, date, and message
|
|
10
55
|
|
|
11
|
-
The current list of tools includes:
|
|
12
|
-
|
|
13
|
-
- `git_status`: Shows the working tree status
|
|
14
|
-
- `git_diff_unstaged`: Shows changes in the working directory that are not yet staged
|
|
15
|
-
- `git_diff_staged`: Shows changes that are staged for commit
|
|
16
|
-
- `git_commit`: Records changes to the repository
|
|
17
|
-
- `git_add`: Adds file contents to the staging area
|
|
18
|
-
- `git_reset`: Unstages all staged changes
|
|
19
|
-
- `git_log`: Shows the commit logs
|
|
20
|
-
|
|
21
|
-
This list is expected to grow as we add more functionality to the server. We welcome contributions from the community to expand and enhance the available tools.
|
|
22
56
|
|
|
23
57
|
## Installation
|
|
24
58
|
|
|
@@ -43,9 +77,9 @@ python -m mcp_server_git
|
|
|
43
77
|
|
|
44
78
|
## Configuration
|
|
45
79
|
|
|
46
|
-
###
|
|
80
|
+
### Usage with Claude Desktop
|
|
47
81
|
|
|
48
|
-
Add to your
|
|
82
|
+
Add this to your `claude_desktop_config.json`:
|
|
49
83
|
|
|
50
84
|
<details>
|
|
51
85
|
<summary>Using uvx</summary>
|
|
@@ -73,7 +107,7 @@ Add to your Claude settings:
|
|
|
73
107
|
```
|
|
74
108
|
</details>
|
|
75
109
|
|
|
76
|
-
###
|
|
110
|
+
### Usage with [Zed](https://github.com/zed-industries/zed)
|
|
77
111
|
|
|
78
112
|
Add to your Zed settings.json:
|
|
79
113
|
|
|
@@ -118,15 +152,6 @@ cd path/to/servers/src/git
|
|
|
118
152
|
npx @modelcontextprotocol/inspector uv run mcp-server-git
|
|
119
153
|
```
|
|
120
154
|
|
|
121
|
-
## Contributing
|
|
122
|
-
|
|
123
|
-
We encourage contributions to help expand and improve mcp-server-git. Whether you want to add new tools, enhance existing functionality, or improve documentation, your input is valuable.
|
|
124
|
-
|
|
125
|
-
For examples of other MCP servers and implementation patterns, see:
|
|
126
|
-
https://github.com/modelcontextprotocol/servers
|
|
127
|
-
|
|
128
|
-
Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-git even more powerful and useful.
|
|
129
|
-
|
|
130
155
|
## License
|
|
131
156
|
|
|
132
|
-
|
|
157
|
+
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
|
-
name="mcp-server-git"
|
|
3
|
-
version = "0.
|
|
2
|
+
name = "mcp-server-git"
|
|
3
|
+
version = "0.5.0"
|
|
4
4
|
description = "A Model Context Protocol server providing tools to read, search, and manipulate Git repositories programmatically via LLMs"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|