-
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Description
The git_commit function of the MCP Git-Server throws a schema error despite correct parameters.
Error
MCP error -32602: Structured content does not match the tool's output schema: data should NOT have additional properties
Steps to Reproduce
- Initialize MCP Git-Server
- Add files to git
- Execute commit using
git_commit - Error occurs
Code Example
// This fails:
mcp_Git-MCP-Server_git_commit({
message: "test: simple commit message"
})
// Error: MCP error -32602: Structured content does not match the tool's output schemaWorkaround
Direct git commands work:
git commit -m "test: simple commit message"
# Success: [develop 43ac024] test: simple commit messageEnvironment
-
OS: Windows 10.0.26100
-
IDE: Version: 1.6.45 (user setup)
VSCode Version: 1.99.3
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100 -
Git: 2.51.0.windows.1
-
Node.js: v22.19.0
-
npm: 10.9.3
-
MCP Git-Server: @cyanheads/git-mcp-server (latest via npx)
-
MCP Spec: 2025-03-26 Stdio Transport
Additional Information
git_addandgit_statuswork correctly- Only
git_commitfails - Error occurs regardless of commit message
- Schema error suggests a response structure issue
- Git repository: Clean working tree, on
developbranch
Possible Cause
The MCP Git-Server response contains additional properties not defined in the expected schema.
MCP Configuration
// .cursor/mcp.json
{
"mcpServers": {
"Git-MCP-Server": {
"command": "npx",
"args": ["@cyanheads/git-mcp-server"],
"env": {
"MCP_LOG_LEVEL": "info",
"GIT_SIGN_COMMITS": "false"
}
}
}
}System Information
- Architecture: x64
- Language: German (de-DE)
LuxDie
Metadata
Metadata
Assignees
Labels
No labels