Gemini not working with DesktopCommanderMCP anymore
The argument schema for tool mcp_desktop_commander_set_config_value is incompatible with gemini-2.5-pro-exp-03-25. Please fix the MCP server, disable the MCP server, or switch models.
I get this error when I try using Gemini with this MCP via Cursor on Windows 11 (0.48.9) Any fixes for this?
Ouh interesting, what are you using DC in Cursor with?
I will try to take a look at some point, interesting which part of the schema is not up to Gemini liking
Seeing this issue as well.
Same here, error:
✕ [API Error: [{
"error": {
"code": 400,
"message": "The GenerateContentRequest proto is invalid:\n * tools[0].function_declarations[13].name: [FIELD_INVALID] Invalid function name. Must
start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64.",
"errors": [
{
"message": "The GenerateContentRequest proto is invalid:\n * tools[0].function_declarations[13].name: [FIELD_INVALID] Invalid function name.
Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64.",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
]]
"Anymore" is the telling word in this title: it worked, then a release moved something and Gemini stopped accepting it. The same class showed up when set_config_value shipped with parameter types missing from its schema and needed a follow-up fix for Gemini and a few other clients. Every MCP client enforces a different subset of JSON Schema, so a schema that works fine in Claude can be silently broken in Gemini, and the first report comes from a user.
I maintain an open-source tool called reelier (github.com/seldonframe/reelier) that gates this in CI: its manifest command snapshots every tool name and schema, fails closed on any drift, and gives one place to validate the whole surface against strict-client rules instead of finding holes one bug report at a time. The same replay check would have caught the metadata-only read_file regressions reported against v0.2.39 and v0.2.40 before release.
Happy to open a PR so trying it costs one review. Feel free to ignore if not useful, no follow-up from me.