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
+30-20Lines changed: 30 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -285,29 +285,13 @@ help you debug any issues.
285
285
286
286
## Development
287
287
288
-
### Building
288
+
If you are doing local development, there are two ways to test your changes:
289
289
290
-
[`uv`](https://docs.astral.sh/uv/) is used for development.
290
+
1. Run the MCP inspector to test your changes. See [Debugging](#debugging)for run instructions.
291
291
292
-
Start by creating a fresh virtual environment:
292
+
2. Test using the Claude desktop app. Add the following to your `claude_desktop_config.json`:
293
293
294
-
```bash
295
-
uv venv
296
-
source .venv/bin/activate
297
-
```
298
-
To run the tests, type `uv run pytest`, to run the server from source use `uv run src/mcp_server_git/`.
299
-
300
-
To build, type `uv build`. You can then now run `mcp-server-git` command directly. Open with the inspector using `npx @modelcontextprotocol/inspector@latest mcp-server-git`.
301
-
302
-
To specify the Python version type `uv python pin <version>` (useful if you want to use a more recent version than the default).
303
-
304
-
To create the Docker container use
305
-
306
-
```bash
307
-
docker build -t mcp/git .
308
-
```
309
-
310
-
An example showing how to run via the Docker container is below:
294
+
### Docker
311
295
312
296
```json
313
297
{
@@ -328,6 +312,32 @@ An example showing how to run via the Docker container is below:
328
312
}
329
313
```
330
314
315
+
### UVX
316
+
```json
317
+
{
318
+
"mcpServers": {
319
+
"git": {
320
+
"command": "uv",
321
+
"args": [
322
+
"--directory",
323
+
"/<path to mcp-servers>/mcp-servers/src/git",
324
+
"run",
325
+
"mcp-server-git"
326
+
]
327
+
}
328
+
}
329
+
}
330
+
```
331
+
332
+
## Build
333
+
334
+
Docker build:
335
+
336
+
```bash
337
+
cd src/git
338
+
docker build -t mcp/git .
339
+
```
340
+
331
341
## License
332
342
333
343
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