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 schema
Workaround
Direct git commands work:
git commit -m "test: simple commit message"
# Success: [develop 43ac024] test: simple commit message
Environment
-
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_add and git_status work correctly
- Only
git_commit fails
- Error occurs regardless of commit message
- Schema error suggests a response structure issue
- Git repository: Clean working tree, on
develop branch
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)
Description
The
git_commitfunction of the MCP Git-Server throws a schema error despite correct parameters.Error
Steps to Reproduce
git_commitCode Example
Workaround
Direct git commands work:
Environment
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 correctlygit_commitfailsdevelopbranchPossible Cause
The MCP Git-Server response contains additional properties not defined in the expected schema.
MCP Configuration
System Information