Skip to content

Commit

Permalink
move to python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dsp-ant committed Nov 20, 2024
1 parent bf3f3fd commit ca3174c
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/git/.python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11
3.10
2 changes: 1 addition & 1 deletion src/git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ Alternatively, if using pip installation:
## Contributing

For examples of other MCP servers and implementation patterns, see:
https://github.com/modelcontextprotocol/example-servers/
https://github.com/modelcontextprotocol/servers/

Pull requests welcome!
2 changes: 1 addition & 1 deletion src/git/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mcp-git"
version = "0.1.0"
version = "0.2.0"
description = "A Model Context Protocol server providing tools to read, search, and manipulate Git repositories programmatically via LLMs"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
4 changes: 2 additions & 2 deletions src/git/src/mcp_git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
ListRootsResult,
RootsCapability,
)
from enum import StrEnum
from enum import Enum
import git
from git.objects import Blob, Tree

Expand Down Expand Up @@ -90,7 +90,7 @@ class ListTagsInput(BaseModel):
repo_path: str


class GitTools(StrEnum):
class GitTools(str, Enum):
READ_FILE = "git_read_file"
LIST_FILES = "git_list_files"
FILE_HISTORY = "git_file_history"
Expand Down
36 changes: 34 additions & 2 deletions src/git/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca3174c

Please sign in to comment.