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
+20-30Lines changed: 20 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -285,13 +285,29 @@ help you debug any issues.
285
285
286
286
## Development
287
287
288
-
If you are doing local development, there are two ways to test your changes:
288
+
### Building
289
289
290
-
1. Run the MCP inspector to test your changes. See [Debugging](#debugging) for run instructions.
290
+
[`uv`](https://docs.astral.sh/uv/) is used for development.
291
291
292
-
2. Test using the Claude desktop app. Add the following to your `claude_desktop_config.json`:
292
+
Start by creating a fresh virtual environment:
293
293
294
-
### Docker
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:
295
311
296
312
```json
297
313
{
@@ -312,32 +328,6 @@ If you are doing local development, there are two ways to test your changes:
312
328
}
313
329
```
314
330
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
-
341
331
## License
342
332
343
333
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