Name | levalicious-mcp-server-git JSON |
Version |
0.0.0
JSON |
| download |
home_page | None |
Summary | A Model Context Protocol server providing tools to read, search, and manipulate Git repositories programmatically via LLMs |
upload_time | 2025-07-13 05:24:51 |
maintainer | None |
docs_url | None |
author | Anthropic, PBC. |
requires_python | >=3.10 |
license | MIT |
keywords |
automation
git
llm
mcp
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# levalicious-mcp-server-git: A git MCP server
## Overview
A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.
Please note that levalicious-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.
### Tools
1. `git_status`
- Shows the working tree status
- Input:
- `repo_path` (string): Path to Git repository
- Returns: Current status of working directory as text output
2. `git_diff_unstaged`
- Shows changes in working directory not yet staged
- Inputs:
- `repo_path` (string): Path to Git repository
- `context_lines` (number, optional): Number of context lines to show (default: 3)
- Returns: Diff output of unstaged changes
3. `git_diff_staged`
- Shows changes that are staged for commit
- Inputs:
- `repo_path` (string): Path to Git repository
- `context_lines` (number, optional): Number of context lines to show (default: 3)
- Returns: Diff output of staged changes
4. `git_diff`
- Shows differences between branches or commits
- Inputs:
- `repo_path` (string): Path to Git repository
- `target` (string): Target branch or commit to compare with
- `context_lines` (number, optional): Number of context lines to show (default: 3)
- Returns: Diff output comparing current state with target
5. `git_commit`
- Records changes to the repository
- Inputs:
- `repo_path` (string): Path to Git repository
- `message` (string): Commit message
- Returns: Confirmation with new commit hash
6. `git_add`
- Adds file contents to the staging area
- Inputs:
- `repo_path` (string): Path to Git repository
- `files` (string[]): Array of file paths to stage
- Returns: Confirmation of staged files
7. `git_reset`
- Unstages all staged changes
- Input:
- `repo_path` (string): Path to Git repository
- Returns: Confirmation of reset operation
8. `git_log`
- Shows the commit logs
- Inputs:
- `repo_path` (string): Path to Git repository
- `max_count` (number, optional): Maximum number of commits to show (default: 10)
- Returns: Array of commit entries with hash, author, date, and message
9. `git_create_branch`
- Creates a new branch
- Inputs:
- `repo_path` (string): Path to Git repository
- `branch_name` (string): Name of the new branch
- `start_point` (string, optional): Starting point for the new branch
- Returns: Confirmation of branch creation
10. `git_checkout`
- Switches branches
- Inputs:
- `repo_path` (string): Path to Git repository
- `branch_name` (string): Name of branch to checkout
- Returns: Confirmation of branch switch
11. `git_show`
- Shows the contents of a commit
- Inputs:
- `repo_path` (string): Path to Git repository
- `revision` (string): The revision (commit hash, branch name, tag) to show
- Returns: Contents of the specified commit
12. `git_init`
- Initializes a Git repository
- Inputs:
- `repo_path` (string): Path to directory to initialize git repo
- Returns: Confirmation of repository initialization
13. `git_branch`
- List Git branches
- Inputs:
- `repo_path` (string): Path to the Git repository.
- `branch_type` (string): Whether to list local branches ('local'), remote branches ('remote') or all branches('all').
- `contains` (string, optional): The commit sha that branch should contain. Do not pass anything to this param if no commit sha is specified
- `not_contains` (string, optional): The commit sha that branch should NOT contain. Do not pass anything to this param if no commit sha is specified
- Returns: List of branches
## Installation
### Using uv (recommended)
When using [`uv`](https://docs.astral.sh/uv/) no specific installation is needed. We will
use [`uvx`](https://docs.astral.sh/uv/guides/tools/) to directly run *levalicious-mcp-server-git*.
### Using PIP
Alternatively you can install `levalicious-mcp-server-git` via pip:
```
pip install levalicious-mcp-server-git
```
After installation, you can run it as a script using:
```
python -m levalicious_mcp_server_git
```
## Configuration
### Usage with Claude Desktop
Add this to your `claude_desktop_config.json`:
<details>
<summary>Using uvx</summary>
```json
"mcpServers": {
"git": {
"command": "uvx",
"args": ["levalicious-mcp-server-git", "--repository", "path/to/git/repo"]
}
}
```
</details>
<details>
<summary>Using docker</summary>
* Note: replace '/Users/username' with the a path that you want to be accessible by this tool
```json
"mcpServers": {
"git": {
"command": "docker",
"args": ["run", "--rm", "-i", "--mount", "type=bind,src=/Users/username,dst=/Users/username", "mcp/git"]
}
}
```
</details>
<details>
<summary>Using pip installation</summary>
```json
"mcpServers": {
"git": {
"command": "python",
"args": ["-m", "levalicious_mcp_server_git", "--repository", "path/to/git/repo"]
}
}
```
</details>
### Usage with VS Code
For quick installation, use one of the one-click install buttons below...
[](https://insiders.vscode.dev/redirect/mcp/install?name=git&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22levalicious-mcp-server-git%22%5D%7D) [](https://insiders.vscode.dev/redirect/mcp/install?name=git&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22levalicious-mcp-server-git%22%5D%7D&quality=insiders)
[](https://insiders.vscode.dev/redirect/mcp/install?name=git&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22--rm%22%2C%22-i%22%2C%22--mount%22%2C%22type%3Dbind%2Csrc%3D%24%7BworkspaceFolder%7D%2Cdst%3D%2Fworkspace%22%2C%22mcp%2Fgit%22%5D%7D) [](https://insiders.vscode.dev/redirect/mcp/install?name=git&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22--rm%22%2C%22-i%22%2C%22--mount%22%2C%22type%3Dbind%2Csrc%3D%24%7BworkspaceFolder%7D%2Cdst%3D%2Fworkspace%22%2C%22mcp%2Fgit%22%5D%7D&quality=insiders)
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open Settings (JSON)`.
Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace. This will allow you to share the configuration with others.
> Note that the `mcp` key is not needed in the `.vscode/mcp.json` file.
```json
{
"mcp": {
"servers": {
"git": {
"command": "uvx",
"args": ["levalicious-mcp-server-git"]
}
}
}
}
```
For Docker installation:
```json
{
"mcp": {
"servers": {
"git": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--mount", "type=bind,src=${workspaceFolder},dst=/workspace",
"mcp/git"
]
}
}
}
}
```
### Usage with [Zed](https://github.com/zed-industries/zed)
Add to your Zed settings.json:
<details>
<summary>Using uvx</summary>
```json
"context_servers": [
"levalicious-mcp-server-git": {
"command": {
"path": "uvx",
"args": ["levalicious-mcp-server-git"]
}
}
],
```
</details>
<details>
<summary>Using pip installation</summary>
```json
"context_servers": {
"levalicious-mcp-server-git": {
"command": {
"path": "python",
"args": ["-m", "levalicious_mcp_server_git"]
}
}
},
```
</details>
## Debugging
You can use the MCP inspector to debug the server. For uvx installations:
```
npx @modelcontextprotocol/inspector uvx levalicious-mcp-server-git
```
Or if you've installed the package in a specific directory or are developing on it:
```
cd path/to/servers/src/git
npx @modelcontextprotocol/inspector uv run levalicious-mcp-server-git
```
Running `tail -n 20 -f ~/Library/Logs/Claude/mcp*.log` will show the logs from the server and may
help you debug any issues.
## Development
If you are doing local development, there are two ways to test your changes:
1. Run the MCP inspector to test your changes. See [Debugging](#debugging) for run instructions.
2. Test using the Claude desktop app. Add the following to your `claude_desktop_config.json`:
### Docker
```json
{
"mcpServers": {
"git": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--mount", "type=bind,src=/Users/username/Desktop,dst=/projects/Desktop",
"--mount", "type=bind,src=/path/to/other/allowed/dir,dst=/projects/other/allowed/dir,ro",
"--mount", "type=bind,src=/path/to/file.txt,dst=/projects/path/to/file.txt",
"mcp/git"
]
}
}
}
```
### UVX
```json
{
"mcpServers": {
"git": {
"command": "uv",
"args": [
"--directory",
"/<path to mcp-servers>/mcp-servers/src/git",
"run",
"levalicious-mcp-server-git"
]
}
}
}
```
## Build
Docker build:
```bash
cd src/git
docker build -t mcp/git .
```
## License
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "levalicious-mcp-server-git",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "David Soria Parra <davidsp@anthropic.com>",
"keywords": "automation, git, llm, mcp",
"author": "Anthropic, PBC.",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/13/ba/02f17178da80f9dc169497a6f7d69317c209a10a946661fcfdacca5b69bd/levalicious_mcp_server_git-0.0.0.tar.gz",
"platform": null,
"description": "# levalicious-mcp-server-git: A git MCP server\n\n## Overview\n\nA Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.\n\nPlease note that levalicious-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.\n\n### Tools\n\n1. `git_status`\n - Shows the working tree status\n - Input:\n - `repo_path` (string): Path to Git repository\n - Returns: Current status of working directory as text output\n\n2. `git_diff_unstaged`\n - Shows changes in working directory not yet staged\n - Inputs:\n - `repo_path` (string): Path to Git repository\n - `context_lines` (number, optional): Number of context lines to show (default: 3)\n - Returns: Diff output of unstaged changes\n\n3. `git_diff_staged`\n - Shows changes that are staged for commit\n - Inputs:\n - `repo_path` (string): Path to Git repository\n - `context_lines` (number, optional): Number of context lines to show (default: 3)\n - Returns: Diff output of staged changes\n\n4. `git_diff`\n - Shows differences between branches or commits\n - Inputs:\n - `repo_path` (string): Path to Git repository\n - `target` (string): Target branch or commit to compare with\n - `context_lines` (number, optional): Number of context lines to show (default: 3)\n - Returns: Diff output comparing current state with target\n\n5. `git_commit`\n - Records changes to the repository\n - Inputs:\n - `repo_path` (string): Path to Git repository\n - `message` (string): Commit message\n - Returns: Confirmation with new commit hash\n\n6. `git_add`\n - Adds file contents to the staging area\n - Inputs:\n - `repo_path` (string): Path to Git repository\n - `files` (string[]): Array of file paths to stage\n - Returns: Confirmation of staged files\n\n7. `git_reset`\n - Unstages all staged changes\n - Input:\n - `repo_path` (string): Path to Git repository\n - Returns: Confirmation of reset operation\n\n8. `git_log`\n - Shows the commit logs\n - Inputs:\n - `repo_path` (string): Path to Git repository\n - `max_count` (number, optional): Maximum number of commits to show (default: 10)\n - Returns: Array of commit entries with hash, author, date, and message\n\n9. `git_create_branch`\n - Creates a new branch\n - Inputs:\n - `repo_path` (string): Path to Git repository\n - `branch_name` (string): Name of the new branch\n - `start_point` (string, optional): Starting point for the new branch\n - Returns: Confirmation of branch creation\n10. `git_checkout`\n - Switches branches\n - Inputs:\n - `repo_path` (string): Path to Git repository\n - `branch_name` (string): Name of branch to checkout\n - Returns: Confirmation of branch switch\n11. `git_show`\n - Shows the contents of a commit\n - Inputs:\n - `repo_path` (string): Path to Git repository\n - `revision` (string): The revision (commit hash, branch name, tag) to show\n - Returns: Contents of the specified commit\n12. `git_init`\n - Initializes a Git repository\n - Inputs:\n - `repo_path` (string): Path to directory to initialize git repo\n - Returns: Confirmation of repository initialization\n\n13. `git_branch`\n - List Git branches\n - Inputs:\n - `repo_path` (string): Path to the Git repository.\n - `branch_type` (string): Whether to list local branches ('local'), remote branches ('remote') or all branches('all').\n - `contains` (string, optional): The commit sha that branch should contain. Do not pass anything to this param if no commit sha is specified\n - `not_contains` (string, optional): The commit sha that branch should NOT contain. Do not pass anything to this param if no commit sha is specified\n - Returns: List of branches\n\n## Installation\n\n### Using uv (recommended)\n\nWhen using [`uv`](https://docs.astral.sh/uv/) no specific installation is needed. We will\nuse [`uvx`](https://docs.astral.sh/uv/guides/tools/) to directly run *levalicious-mcp-server-git*.\n\n### Using PIP\n\nAlternatively you can install `levalicious-mcp-server-git` via pip:\n\n```\npip install levalicious-mcp-server-git\n```\n\nAfter installation, you can run it as a script using:\n\n```\npython -m levalicious_mcp_server_git\n```\n\n## Configuration\n\n### Usage with Claude Desktop\n\nAdd this to your `claude_desktop_config.json`:\n\n<details>\n<summary>Using uvx</summary>\n\n```json\n\"mcpServers\": {\n \"git\": {\n \"command\": \"uvx\",\n \"args\": [\"levalicious-mcp-server-git\", \"--repository\", \"path/to/git/repo\"]\n }\n}\n```\n</details>\n\n<details>\n<summary>Using docker</summary>\n\n* Note: replace '/Users/username' with the a path that you want to be accessible by this tool\n\n```json\n\"mcpServers\": {\n \"git\": {\n \"command\": \"docker\",\n \"args\": [\"run\", \"--rm\", \"-i\", \"--mount\", \"type=bind,src=/Users/username,dst=/Users/username\", \"mcp/git\"]\n }\n}\n```\n</details>\n\n<details>\n<summary>Using pip installation</summary>\n\n```json\n\"mcpServers\": {\n \"git\": {\n \"command\": \"python\",\n \"args\": [\"-m\", \"levalicious_mcp_server_git\", \"--repository\", \"path/to/git/repo\"]\n }\n}\n```\n</details>\n\n### Usage with VS Code\n\nFor quick installation, use one of the one-click install buttons below...\n\n[](https://insiders.vscode.dev/redirect/mcp/install?name=git&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22levalicious-mcp-server-git%22%5D%7D) [](https://insiders.vscode.dev/redirect/mcp/install?name=git&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22levalicious-mcp-server-git%22%5D%7D&quality=insiders)\n\n[](https://insiders.vscode.dev/redirect/mcp/install?name=git&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22--rm%22%2C%22-i%22%2C%22--mount%22%2C%22type%3Dbind%2Csrc%3D%24%7BworkspaceFolder%7D%2Cdst%3D%2Fworkspace%22%2C%22mcp%2Fgit%22%5D%7D) [](https://insiders.vscode.dev/redirect/mcp/install?name=git&config=%7B%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22--rm%22%2C%22-i%22%2C%22--mount%22%2C%22type%3Dbind%2Csrc%3D%24%7BworkspaceFolder%7D%2Cdst%3D%2Fworkspace%22%2C%22mcp%2Fgit%22%5D%7D&quality=insiders)\n\nFor manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open Settings (JSON)`.\n\nOptionally, you can add it to a file called `.vscode/mcp.json` in your workspace. This will allow you to share the configuration with others. \n\n> Note that the `mcp` key is not needed in the `.vscode/mcp.json` file.\n\n```json\n{\n \"mcp\": {\n \"servers\": {\n \"git\": {\n \"command\": \"uvx\",\n \"args\": [\"levalicious-mcp-server-git\"]\n }\n }\n }\n}\n```\n\nFor Docker installation:\n\n```json\n{\n \"mcp\": {\n \"servers\": {\n \"git\": {\n \"command\": \"docker\",\n \"args\": [\n \"run\",\n \"--rm\",\n \"-i\",\n \"--mount\", \"type=bind,src=${workspaceFolder},dst=/workspace\",\n \"mcp/git\"\n ]\n }\n }\n }\n}\n```\n\n### Usage with [Zed](https://github.com/zed-industries/zed)\n\nAdd to your Zed settings.json:\n\n<details>\n<summary>Using uvx</summary>\n\n```json\n\"context_servers\": [\n \"levalicious-mcp-server-git\": {\n \"command\": {\n \"path\": \"uvx\",\n \"args\": [\"levalicious-mcp-server-git\"]\n }\n }\n],\n```\n</details>\n\n<details>\n<summary>Using pip installation</summary>\n\n```json\n\"context_servers\": {\n \"levalicious-mcp-server-git\": {\n \"command\": {\n \"path\": \"python\",\n \"args\": [\"-m\", \"levalicious_mcp_server_git\"]\n }\n }\n},\n```\n</details>\n\n## Debugging\n\nYou can use the MCP inspector to debug the server. For uvx installations:\n\n```\nnpx @modelcontextprotocol/inspector uvx levalicious-mcp-server-git\n```\n\nOr if you've installed the package in a specific directory or are developing on it:\n\n```\ncd path/to/servers/src/git\nnpx @modelcontextprotocol/inspector uv run levalicious-mcp-server-git\n```\n\nRunning `tail -n 20 -f ~/Library/Logs/Claude/mcp*.log` will show the logs from the server and may\nhelp you debug any issues.\n\n## Development\n\nIf you are doing local development, there are two ways to test your changes:\n\n1. Run the MCP inspector to test your changes. See [Debugging](#debugging) for run instructions.\n\n2. Test using the Claude desktop app. Add the following to your `claude_desktop_config.json`:\n\n### Docker\n\n```json\n{\n \"mcpServers\": {\n \"git\": {\n \"command\": \"docker\",\n \"args\": [\n \"run\",\n \"--rm\",\n \"-i\",\n \"--mount\", \"type=bind,src=/Users/username/Desktop,dst=/projects/Desktop\",\n \"--mount\", \"type=bind,src=/path/to/other/allowed/dir,dst=/projects/other/allowed/dir,ro\",\n \"--mount\", \"type=bind,src=/path/to/file.txt,dst=/projects/path/to/file.txt\",\n \"mcp/git\"\n ]\n }\n }\n}\n```\n\n### UVX\n```json\n{\n\"mcpServers\": {\n \"git\": {\n \"command\": \"uv\",\n \"args\": [\n \"--directory\",\n \"/<path to mcp-servers>/mcp-servers/src/git\",\n \"run\",\n \"levalicious-mcp-server-git\"\n ]\n }\n }\n}\n```\n\n## Build\n\nDocker build:\n\n```bash\ncd src/git\ndocker build -t mcp/git .\n```\n\n## License\n\nThis 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.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Model Context Protocol server providing tools to read, search, and manipulate Git repositories programmatically via LLMs",
"version": "0.0.0",
"project_urls": null,
"split_keywords": [
"automation",
" git",
" llm",
" mcp"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "5ac785e38c8506ea71cb7ab49389625a0cf6e94a9eb6a95159eff6636c0d053e",
"md5": "c4db8ba89f3592f7861e0f23bef50060",
"sha256": "5c923e86a9e53286ef04e06eca2c709daf9432f5d08af47bbecb567ec58eaef9"
},
"downloads": -1,
"filename": "levalicious_mcp_server_git-0.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c4db8ba89f3592f7861e0f23bef50060",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 9438,
"upload_time": "2025-07-13T05:24:50",
"upload_time_iso_8601": "2025-07-13T05:24:50.012327Z",
"url": "https://files.pythonhosted.org/packages/5a/c7/85e38c8506ea71cb7ab49389625a0cf6e94a9eb6a95159eff6636c0d053e/levalicious_mcp_server_git-0.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "13ba02f17178da80f9dc169497a6f7d69317c209a10a946661fcfdacca5b69bd",
"md5": "bff6b84dfc3019beca6ebaaa12cf03b4",
"sha256": "7591ce9d40a88feefbef8d6ca61fb45c5f1eb8556357840921ff164f1c66ac43"
},
"downloads": -1,
"filename": "levalicious_mcp_server_git-0.0.0.tar.gz",
"has_sig": false,
"md5_digest": "bff6b84dfc3019beca6ebaaa12cf03b4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 26679,
"upload_time": "2025-07-13T05:24:51",
"upload_time_iso_8601": "2025-07-13T05:24:51.018085Z",
"url": "https://files.pythonhosted.org/packages/13/ba/02f17178da80f9dc169497a6f7d69317c209a10a946661fcfdacca5b69bd/levalicious_mcp_server_git-0.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-13 05:24:51",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "levalicious-mcp-server-git"
}