-
-
Notifications
You must be signed in to change notification settings - Fork 50
Select functions fail to import: conv mcp tool input schema fail(unmarshal) #34
Description
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_pickgit_clonegit_fetchgit_loggit_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
excludedToolsproperty; 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! 🙏