mcp-server-git 0.5.0__tar.gz → 0.6.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mcp-server-git
3
- Version: 0.5.0
3
+ Version: 0.6.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>
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Requires-Python: >=3.10
15
15
  Requires-Dist: click>=8.1.7
16
16
  Requires-Dist: gitpython>=3.1.43
17
- Requires-Dist: mcp>=0.6.0
17
+ Requires-Dist: mcp>=1.0.0
18
18
  Requires-Dist: pydantic>=2.0.0
19
19
  Description-Content-Type: text/markdown
20
20
 
@@ -137,8 +137,10 @@ Add to your Zed settings.json:
137
137
  ```json
138
138
  "context_servers": [
139
139
  "mcp-server-git": {
140
- "command": "uvx",
141
- "args": ["mcp-server-git"]
140
+ "command": {
141
+ "path": "uvx",
142
+ "args": ["mcp-server-git"]
143
+ }
142
144
  }
143
145
  ],
144
146
  ```
@@ -150,8 +152,10 @@ Add to your Zed settings.json:
150
152
  ```json
151
153
  "context_servers": {
152
154
  "mcp-server-git": {
153
- "command": "python",
154
- "args": ["-m", "mcp_server_git"]
155
+ "command": {
156
+ "path": "python",
157
+ "args": ["-m", "mcp_server_git"]
158
+ }
155
159
  }
156
160
  },
157
161
  ```
@@ -117,8 +117,10 @@ Add to your Zed settings.json:
117
117
  ```json
118
118
  "context_servers": [
119
119
  "mcp-server-git": {
120
- "command": "uvx",
121
- "args": ["mcp-server-git"]
120
+ "command": {
121
+ "path": "uvx",
122
+ "args": ["mcp-server-git"]
123
+ }
122
124
  }
123
125
  ],
124
126
  ```
@@ -130,8 +132,10 @@ Add to your Zed settings.json:
130
132
  ```json
131
133
  "context_servers": {
132
134
  "mcp-server-git": {
133
- "command": "python",
134
- "args": ["-m", "mcp_server_git"]
135
+ "command": {
136
+ "path": "python",
137
+ "args": ["-m", "mcp_server_git"]
138
+ }
135
139
  }
136
140
  },
137
141
  ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mcp-server-git"
3
- version = "0.5.0"
3
+ version = "0.6.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"
@@ -18,7 +18,7 @@ classifiers = [
18
18
  dependencies = [
19
19
  "click>=8.1.7",
20
20
  "gitpython>=3.1.43",
21
- "mcp>=0.6.0",
21
+ "mcp>=1.0.0",
22
22
  "pydantic>=2.0.0",
23
23
  ]
24
24
 
@@ -1,5 +1,4 @@
1
1
  import click
2
- from functools import partial
3
2
  from pathlib import Path
4
3
  import logging
5
4
  import sys
@@ -1,5 +1,4 @@
1
1
  import logging
2
- import json
3
2
  from pathlib import Path
4
3
  from typing import Sequence
5
4
  from mcp.server import Server
@@ -14,8 +13,7 @@ from mcp.types import (
14
13
  )
15
14
  from enum import Enum
16
15
  import git
17
- from pydantic import BaseModel, Field
18
- from typing import List, Optional
16
+ from pydantic import BaseModel
19
17
 
20
18
  class GitStatus(BaseModel):
21
19
  repo_path: str
@@ -32,7 +30,7 @@ class GitCommit(BaseModel):
32
30
 
33
31
  class GitAdd(BaseModel):
34
32
  repo_path: str
35
- files: List[str]
33
+ files: list[str]
36
34
 
37
35
  class GitReset(BaseModel):
38
36
  repo_path: str
File without changes
File without changes