You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/git/README.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,13 @@ Please note that mcp-server-git is currently in early development. The functiona
53
53
-`max_count` (number, optional): Maximum number of commits to show (default: 10)
54
54
- Returns: Array of commit entries with hash, author, date, and message
55
55
56
+
8.`git_create_branch`
57
+
- Creates a new branch
58
+
- Inputs:
59
+
-`repo_path` (string): Path to Git repository
60
+
-`branch_name` (string): Name of the new branch
61
+
-`start_point` (string, optional): Starting point for the new branch
62
+
- Returns: Confirmation of branch creation
56
63
57
64
## Installation
58
65
@@ -156,6 +163,29 @@ cd path/to/servers/src/git
156
163
npx @modelcontextprotocol/inspector uv run mcp-server-git
157
164
```
158
165
166
+
Running `tail -n 20 -f ~/Library/Logs/Claude/mcp*.log` will show the logs from the server and may
167
+
help you debug any issues.
168
+
169
+
## Development
170
+
171
+
If you are doing local development, there are two ways to test your changes:
172
+
173
+
1. Run the MCP inspector to test your changes. See [Debugging](#debugging) for run instructions.
174
+
175
+
2. Test using the Claude desktop app. Add the following to your `claude_desktop_config.json`:
176
+
177
+
```json
178
+
"git": {
179
+
"command": "uv",
180
+
"args": [
181
+
"--directory",
182
+
"/<path to mcp-servers>/mcp-servers/src/git",
183
+
"run",
184
+
"mcp-server-git"
185
+
]
186
+
}
187
+
```
188
+
159
189
## License
160
190
161
191
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.
0 commit comments