Skip to content

git: 21 of 32 tool input properties have no description #5647

Open

Description

@simplymanas

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 a Field(description=...) the way repo_path already is in some tools: one sentence on what it is and, where the name doesn't make it obvious, an example value. For target and revision, say which forms are accepted (branch name, commit SHA, relative refs like HEAD~1). Reuse the same wording for repo_path and context_lines everywhere. 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

  1. added
    enhancement
    on Nov 21, 2026
  2. uday-kasturi commented on Nov 22, 2026

    @uday-kasturi

    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:

    In src/git/src/mcp_server_git/server.py, add two shared types next to DEFAULT_CONTEXT_LINES: RepoPath = Annotated[str, Field(description="The path to the Git repository.")] and ContextLines = Annotated[int, Field(description="Number of context lines to show around each change. Defaults to 3.")]. Use them for every tool's repo_path and context_lines. Give git_diff.target, git_commit.message, git_add.files, git_create_branch.branch_name, git_checkout.branch_name and git_show.revision a Field(description=...). For target, list branch, tag, SHA, HEAD~1 and main..feature / main...feature ranges. For revision, list the same refs plus <revision>:<path>. Add test_every_tool_input_property_has_a_description to tests/test_protocol.py: it lists the tools and fails on any input property without a description. Then regenerate tests/snapshots/list_tools.json.

    With this change, the new test fails on the old code and passes after it, and all 506 tests pass.

  3. simplymanas commented on Nov 23, 2026

    @simplymanas
    Author

    @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

  4. FranklinFranklin commented on Nov 23, 2026

    @FranklinFranklin

    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:

    1. Direct stdio vs SSE: For local desktop extensions, standard stdio transport is the cleanest and requires no port management. For remote or hosted sandboxes, use SSE with token bearer authentication.
    2. Top Production Servers in the Ecosystem:
      • Playwright_Mcp: invisible playwright mcp: Playwright MCP server undetected by anti-bots and captchas: AI agent browses the web (▲ 350 community upvotes)
      • Metaharness: The meta-harness for AI agents — scaffold your own focused, branded agent harness with its own npx CLI, MCP
    3. 1-Click CLI Inspection:
      You can inspect verified MCP configurations and telemetry directly from your terminal:
      # Install the zero-dependency AgentStack CLI:
      curl -sL https://agents.techuis.nl/install.sh | bash
      
      # Inspect MCP registry details & client config:
      agentstack info playwright_mcp

    For the complete community-verified registry of 40+ MCP servers with Claude & Cursor 1-click configs, check:
    https://agents.techuis.nl/mcp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementv2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions