Repository navigation
Description
Which server?
git (mcp-server-git)
Protocol era
Modern (2026-07-28)
MCP client
No response
The problem
#3669 was closed as fixed by #5475, which describes every input property in the filesystem, memory and everything servers. That issue's closing comment says the Python servers were already fully described, but the git server isn't: in mcp-server-git 2026.11.18, 21 of its 32 tool input properties have no description. On v2/main, add(repo_path: str, files: Annotated[list[str], Field(min_length=1)]) still has none, for example.
| Tool | Properties without a description |
|---|---|
git_status |
repo_path |
git_diff_unstaged |
repo_path, context_lines |
git_diff_staged |
repo_path, context_lines |
git_diff |
repo_path, target, context_lines |
git_commit |
repo_path, message |
git_add |
repo_path, files |
git_reset |
repo_path |
git_log |
repo_path |
git_create_branch |
repo_path, branch_name |
git_checkout |
repo_path, branch_name |
git_merge |
repo_path |
git_show |
repo_path, revision |
git_branch and git_remote are fully described, and some tools describe repo_path with Field(description="The path to the Git repository."), so the pattern already exists in the file.
A model sees only the property name and a generated title for these. For target in git_diff and revision in git_show, the name doesn't say what is accepted: a branch, a commit SHA, HEAD~1, or a range.
Prompt for the fix:
In
src/git/src/mcp_server_git/server.py, give every tool input parameter aField(description=...)the wayrepo_pathalready is in some tools: one sentence on what it is and, where the name doesn't make it obvious, an example value. Fortargetandrevision, say which forms are accepted (branch name, commit SHA, relative refs likeHEAD~1). Reuse the same wording forrepo_pathandcontext_lineseverywhere. Then add a test, like the filesystem server's__tests__/input-descriptions.test.ts, that lists the tools and fails on any input property without a description, so the Python servers are held to the same rule as the TypeScript ones.
Found while surveying the tool lists of 28 MCP servers: https://simplymanas.github.io/mcp-master-tester/survey.html
Solution you have in mind (optional)
No response
Which MCP feature does it demonstrate? (optional)
No response
Alternatives or workarounds you have tried
No response
Already built it locally?
No response
Before you submit
- I searched existing issues and this is not a duplicate.
- This is a request for this repository or one of its servers, not a new server, the MCP specification or an SDK.
Activity
uday-kasturi commentedon Nov 22, 2026
Correction: I missed that this repo takes prompts rather than outside PRs, so I won't open one. Here's the prompt for the change I built and tested locally:
With this change, the new test fails on the old code and passes after it, and all 506 tests pass.
simplymanas commentedon Nov 23, 2026
@uday-kasturi
Thanks for building and testing this. I checked the prompt against v2/main: it covers all 21 properties from the table above, and the wording for target and revision matches what the code accepts (ranges since #5194, and : through rev_parse in git_show).
One small addition: git_add.files already has Field(min_length=1), so the description should go into that same Field, as Field(min_length=1, description=...), rather than a second one. hope this helps
FranklinFranklin commentedon Nov 23, 2026
If you are integrating tools or external APIs with LLMs (Claude Desktop, Cursor, Zed), the Model Context Protocol (MCP) is the current standardized standard (JSON-RPC over stdio or SSE).
Key Architectural Considerations:
stdiotransport is the cleanest and requires no port management. For remote or hosted sandboxes, use SSE with token bearer authentication.You can inspect verified MCP configurations and telemetry directly from your terminal:
For the complete community-verified registry of 40+ MCP servers with Claude & Cursor 1-click configs, check:
https://agents.techuis.nl/mcp