DesktopCommanderMCP icon indicating copy to clipboard operation
DesktopCommanderMCP copied to clipboard

Gemini not working with DesktopCommanderMCP anymore

Open packman86 opened this issue 1 year ago • 5 comments

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?

packman86 avatar Apr 18 '25 15:04 packman86

Ouh interesting, what are you using DC in Cursor with?

wonderwhy-er avatar Apr 19 '25 07:04 wonderwhy-er

I will try to take a look at some point, interesting which part of the schema is not up to Gemini liking

wonderwhy-er avatar Apr 19 '25 07:04 wonderwhy-er

Seeing this issue as well.

NN1985 avatar Apr 21 '25 20:04 NN1985

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"
    }
  }
  ]]

mubaidr avatar Jul 06 '25 17:07 mubaidr

"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.

fixlyai avatar Jul 23 '26 20:07 fixlyai