Problem
✕ [API Error: [{
"error": {
"code": 400,
"message": "reference to undefined schema at properties.searchInFolders",
"errors": [
{
"message": "reference to undefined schema at properties.searchInFolders",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
]]
ℹ This request failed. Press F12 for diagnostics, or run /settings and change "Error Verbosity" to full for full details.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
✕ [API Error: [{
"error": {
"code": 400,
"message": "reference to undefined schema at properties.searchInFolders",
"errors": [
{
"message": "reference to undefined schema at properties.searchInFolders",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
]]
ℹ This request failed. Press F12 for diagnostics, or run /settings and change "Error Verbosity" to full for full details.
? for shortcuts
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Shift+Tab to accept edits 4 GEMINI.md files · 3 MCP servers · 87 skills
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Debug Console (F12 to close) │
│ │
│ retry: false, │
│ paramsSerializer: [Function: paramsSerializer], │
│ validateStatus: [Function: validateStatus], │
│ errorRedactor: [Function: defaultErrorRedactor] │
│ }, │
│ response: { │
│ config: { │
│ url: 'https://cloudcode-pa.googleapis.com/v1internal:streamGenerateContent?alt=sse', │
│ method: 'POST', │
│ params: [Object], │
│ headers: [Object], │
│ responseType: 'stream', │
│ body: '<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.', │
│ signal: [AbortSignal], │
│ retry: false, │
│ paramsSerializer: [Function: paramsSerializer], │
│ validateStatus: [Function: validateStatus], │
│ errorRedactor: [Function: defaultErrorRedactor] │
│ }, │
│ data: '[{\n' + │
│ ' "error": {\n' + │
│ ' "code": 400,\n' + │
│ ' "message": "reference to undefined schema at properties.searchInFolders",\n' + │
│ ' "errors": [\n' + │
│ ' {\n' + │
│ ' "message": "reference to undefined schema at properties.searchInFolders",\n' + │
│ ' "domain": "global",\n' + │
│ ' "reason": "badRequest"\n' + │
│ ' }\n' + │
│ ' ],\n' + │
│ ' "status": "INVALID_ARGUMENT"\n' + │
│ ' }\n' + │
│ '}\n' + │
│ ']', │
│ headers: { │
│ 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', │
│ 'content-length': '331', │
│ 'content-type': 'application/json; charset=UTF-8', █│
│ date: 'Mon, 25 May 2026 17:26:04 GMT', █│
│ server: 'ESF', █│
│ 'server-timing': 'gfet4t7; dur=553', █│
│ vary: 'Origin, X-Origin, Referer', █│
│ 'x-cloudaicompanion-trace-id': '8f8618a8cba2caa4', █│
│ 'x-content-type-options': 'nosniff', █│
│ 'x-frame-options': 'SAMEORIGIN', █│
│ 'x-xss-protection': '0' █│
│ }, █│
│ status: 400, █│
│ statusText: 'Bad Request', █│
│ request: { █│
│ responseURL: 'https://cloudcode-pa.googleapis.com/v1internal:streamGenerateContent?alt=sse' █│
│ } █│
│ }, █│
│ error: undefined, █│
│ status: 400, █│
│ Symbol(gaxios-gaxios-error): '6.7.1' █│
│ }
Gemini-CLI not able to use one of the tools :/
There are types like List<int> or int[]. They have unsupported symbols.
Gemini has a firewall that makes the problem with new sanitized Json Schema: https://github.com/IvanMurzak/ReflectorNet/pull/77
Originally GPT model firewall doesn't support: <, >, [, ], + symbols. They were replaced with HTML invariant.
And now Gemini fails to work with them because of it's own custom firewall.
Need to replace symbols with something else.
Temporary solution
Use in the AI Game Developer window use Skills instead of MCP, remove MCP configuration and keep only Skills
Skills avoids the firewall, and AI works great with it.
Root-caused and tracked. Thanks for the report and the Skills workaround.
Cause: the two providers have disjoint firewall blocklists. OpenAI rejects the raw < > [ ] + characters that C# generic/array/nested type names produce in the JSON Schema $defs/$ref. ReflectorNet PR #77 percent-encoded them (%5B, %3C, %2B, …), which satisfied OpenAI but tripped Gemini's firewall, which rejects %. So no single escaping scheme works for both.
Fix: stop escaping entirely. Re-derive the schema type-ids in ReflectorNet using readable delimiters that are (a) illegal in C# identifiers (collision-proof), (b) valid in a URI fragment unescaped (standards-clean JSON Schema 2020-12), and (c) absent from both blocklists — < > → ( ), + → -, []/[,] → -<rank>, keeping . and ,. $defs key == $ref value, no % anywhere. This supersedes PR #77 and then cascades ReflectorNet → MCP-Plugin-dotnet → Unity-MCP.
Tracking:
- Umbrella (this repo): #782
- Implementation (ReflectorNet): IvanMurzak/ReflectorNet#80
Implemented and deployed in the release 0.76.0