Description
Some operations of git-mcp-server fail to register with the MCP host. Each operation fails with the following warning structure:
Warning: Failed to load MCP server 'git-mcp-server': conv mcp tool input schema fail(unmarshal): json: cannot unmarshal number into Go struct field SchemaBis.properties.exclusiveMinimum of type bool, tool name: <tool operation here>
Furthermore, each warning stops the registration of any other operations not previously registered. Pictured below is an invocation of /tools to show which operations are actually available on the server, immediately after experiencing the warning for git_cherry_pick:
So, for git_cherry_pick this means that any operation named alphabetically after git_ch (e.g. git_commit, git_init) doesn't attempt to register with the host at all. Note that adding each of the affected operations to the excludedTools property in MCP configuration gets rid of the associated warning, but of course doesn't load that operation.
I'm using ollama and mcphost–admittedly this issue could have nothing to do with git-mcp-server (apologies if that's the case!!), but the warning message suggests that the tool input json schema itself can't be parsed, choking on properties.exclusiveMinimum.
Affected Operations
git_cherry_pick
git_clone
git_fetch
git_log
git_reflog
Warning: Failed to load MCP server 'git-mcp-server': conv mcp tool input schema fail(unmarshal): json: cannot unmarshal number into Go struct field SchemaBis.properties.exclusiveMinimum of type bool, tool name: git_cherry_pick
Warning: Failed to load MCP server 'git-mcp-server': conv mcp tool input schema fail(unmarshal): json: cannot unmarshal number into Go struct field SchemaBis.properties.exclusiveMinimum of type bool, tool name: git_clone
Warning: Failed to load MCP server 'git-mcp-server': conv mcp tool input schema fail(unmarshal): json: cannot unmarshal number into Go struct field SchemaBis.properties.exclusiveMinimum of type bool, tool name: git_fetch
Warning: Failed to load MCP server 'git-mcp-server': conv mcp tool input schema fail(unmarshal): json: cannot unmarshal number into Go struct field SchemaBis.properties.exclusiveMinimum of type bool, tool name: git_log
Warning: Failed to load MCP server 'git-mcp-server': conv mcp tool input schema fail(unmarshal): json: cannot unmarshal number into Go struct field SchemaBis.properties.exclusiveMinimum of type bool, tool name: git_reflog
Steps to Reproduce
- Build
mcp-git-server: bun install @cyanheads/git-mcp-server@latest
- Specify the following MCP config in the host (disregard the
excludedTools property; I included that to make the warnings go away):
- Start the Ollama layer:
ollama serve
- Run the MCP host:
mcphost --debug -m ollama:gpt-oss:20b
- The host starts but displays the warning, and fails to register any of the subsequent operations
Environment
OS: Mac Sonoma 14.7.5
Host: mcphost v0.31.4
Git: 2.39.5
Node.js: v24.2.0
npm: 11.3.0
bun: 1.3.3
MCP Git Server: 2.5.8
Any help appreciated, and apologies again if this isn't an issue with the git server. TIA! 🙏
Description
Some operations of
git-mcp-serverfail to register with the MCP host. Each operation fails with the following warning structure:Furthermore, each warning stops the registration of any other operations not previously registered. Pictured below is an invocation of
/toolsto show which operations are actually available on the server, immediately after experiencing the warning forgit_cherry_pick:So, for
git_cherry_pickthis means that any operation named alphabetically aftergit_ch(e.g.git_commit,git_init) doesn't attempt to register with the host at all. Note that adding each of the affected operations to theexcludedToolsproperty in MCP configuration gets rid of the associated warning, but of course doesn't load that operation.I'm using
ollamaandmcphost–admittedly this issue could have nothing to do withgit-mcp-server(apologies if that's the case!!), but the warning message suggests that the tool input json schema itself can't be parsed, choking onproperties.exclusiveMinimum.Affected Operations
git_cherry_pickgit_clonegit_fetchgit_loggit_reflogSteps to Reproduce
mcp-git-server:bun install @cyanheads/git-mcp-server@latestexcludedToolsproperty; I included that to make the warnings go away):ollama servemcphost --debug -m ollama:gpt-oss:20bEnvironment
OS: Mac Sonoma 14.7.5
Host:
mcphostv0.31.4Git: 2.39.5
Node.js: v24.2.0
npm: 11.3.0
bun: 1.3.3
MCP Git Server: 2.5.8
Any help appreciated, and apologies again if this isn't an issue with the git server. TIA! 🙏