Problem with Gemini 3.0 Pro #2951

Closed
opened 2026-02-16 17:37:57 -05:00 by yindo · 6 comments
Owner

Originally created by @akemmanuel on GitHub (Nov 18, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

When I try to use the Gemini 3.0 model, I get

Invalid JSON payload received. Unknown name "type" at 'tools.function_declarations[43].parameters.properties[1].value': Proto field is not repeating, cannot start list.
Invalid JSON payload received. Unknown name "type" at 'tools.function_declarations[43].parameters.properties[2].value': Proto field is not repeating, cannot start list.
Invalid JSON payload received. Unknown name "type" at 'tools.function_declarations[43].parameters.properties[3].value': Proto field is not repeating, cannot start list.
Invalid JSON payload received. Unknown name "type" at 'tools.function_declarations[44].parameters.properties[1].value': Proto field is not repeating, cannot start list.
Invalid JSON payload received. Unknown name "type" at 'tools.function_declarations[45].parameters.properties[1].value': Proto field is not repeating, cannot start list.

OpenCode version

latest (1.0.76)

Steps to reproduce

  1. Run opencode
  2. Select Gemini 3 Pro from Opencode Zen
  3. Ask anything
  4. Get error

Screenshot and/or share link

No response

Operating System

Linux Mint (latest)

Terminal

any terminal

Originally created by @akemmanuel on GitHub (Nov 18, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description When I try to use the Gemini 3.0 model, I get ``` Invalid JSON payload received. Unknown name "type" at 'tools.function_declarations[43].parameters.properties[1].value': Proto field is not repeating, cannot start list. Invalid JSON payload received. Unknown name "type" at 'tools.function_declarations[43].parameters.properties[2].value': Proto field is not repeating, cannot start list. Invalid JSON payload received. Unknown name "type" at 'tools.function_declarations[43].parameters.properties[3].value': Proto field is not repeating, cannot start list. Invalid JSON payload received. Unknown name "type" at 'tools.function_declarations[44].parameters.properties[1].value': Proto field is not repeating, cannot start list. Invalid JSON payload received. Unknown name "type" at 'tools.function_declarations[45].parameters.properties[1].value': Proto field is not repeating, cannot start list. ``` ### OpenCode version latest (1.0.76) ### Steps to reproduce 1. Run opencode 2. Select Gemini 3 Pro from Opencode Zen 3. Ask anything 4. Get error ### Screenshot and/or share link _No response_ ### Operating System Linux Mint (latest) ### Terminal any terminal
yindo added the bug label 2026-02-16 17:37:57 -05:00
yindo closed this issue 2026-02-16 17:37:57 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 18, 2025):

@akemmanuel you have an mcp server that the gemini api rejects, can u share which ones you are using?

@rekram1-node commented on GitHub (Nov 18, 2025): @akemmanuel you have an mcp server that the gemini api rejects, can u share which ones you are using?
Author
Owner

@akemmanuel commented on GitHub (Nov 18, 2025):

I want to note that I previously experienced similar issues with other models

@akemmanuel commented on GitHub (Nov 18, 2025): I want to note that I previously experienced similar issues with other models
Author
Owner

@akemmanuel commented on GitHub (Nov 18, 2025):

@rekram1-node My opencode json looks like that:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["file:///home/....../opencode-gemini-auth", "opencode-alibaba-qwen3-auth"],
  "mcp": {
    "browser": {
      "type": "local",
      // Or ["bun", "x", "my-mcp-command"]
      "command": ["bunx", "chrome-devtools-mcp@latest", "--executablePath", "/usr/bin/chromium"],
      "enabled": true,
      "environment": {
      },
     },
     "web_search": {
       "type": "local",
       // Or ["bun", "x", "my-mcp-command"]
       "command": ["node", "/home/....../web-search-mcp/dist/index.js"],
       "enabled": true,
       "environment": {
        "BROWSER_HEADLESS": "true",
       },
     },
     "trading": {
       "type": "local",
       // Or ["bun", "x", "my-mcp-command"]
       "command": ["uvx", "alpaca-mcp-server", "serve"],
       "enabled": true,
       "environment": {},
     },
     "shadcn": {
       "type": "local",
       // Or ["bun", "x", "my-mcp-command"]
       "command": ["bunx", "shadcn@latest", "mcp"],
       "enabled": true,
       "environment": {},
     },
     "email": {
       "type": "local",
       // Or ["bun", "x", "my-mcp-command"]
       "command": ["uvx", "mcp-email-server@latest", "stdio"],
       "enabled": true,
       "environment": {
...
},
     },
     "homework": {
       "type": "local",
       // Or ["bun", "x", "my-mcp-command"]
       "command": ["bun", "/home/......./reverse-portal/homeworkmcp/index.ts"],
       "enabled": true,
       "environment": {},
     },
     "image_gen": {
       "type": "local",
       // Or ["bun", "x", "my-mcp-command"]
       "command": ["bun", "/home/........../image-mcp/src/index.ts"],
       "enabled": true,
       "environment": {},
     },
  }
}```
@akemmanuel commented on GitHub (Nov 18, 2025): @rekram1-node My opencode json looks like that: ``` { "$schema": "https://opencode.ai/config.json", "plugin": ["file:///home/....../opencode-gemini-auth", "opencode-alibaba-qwen3-auth"], "mcp": { "browser": { "type": "local", // Or ["bun", "x", "my-mcp-command"] "command": ["bunx", "chrome-devtools-mcp@latest", "--executablePath", "/usr/bin/chromium"], "enabled": true, "environment": { }, }, "web_search": { "type": "local", // Or ["bun", "x", "my-mcp-command"] "command": ["node", "/home/....../web-search-mcp/dist/index.js"], "enabled": true, "environment": { "BROWSER_HEADLESS": "true", }, }, "trading": { "type": "local", // Or ["bun", "x", "my-mcp-command"] "command": ["uvx", "alpaca-mcp-server", "serve"], "enabled": true, "environment": {}, }, "shadcn": { "type": "local", // Or ["bun", "x", "my-mcp-command"] "command": ["bunx", "shadcn@latest", "mcp"], "enabled": true, "environment": {}, }, "email": { "type": "local", // Or ["bun", "x", "my-mcp-command"] "command": ["uvx", "mcp-email-server@latest", "stdio"], "enabled": true, "environment": { ... }, }, "homework": { "type": "local", // Or ["bun", "x", "my-mcp-command"] "command": ["bun", "/home/......./reverse-portal/homeworkmcp/index.ts"], "enabled": true, "environment": {}, }, "image_gen": { "type": "local", // Or ["bun", "x", "my-mcp-command"] "command": ["bun", "/home/........../image-mcp/src/index.ts"], "enabled": true, "environment": {}, }, } }```
Author
Owner

@akemmanuel commented on GitHub (Nov 18, 2025):

The ones I built myself (homework and image_gen) are not the problem

@akemmanuel commented on GitHub (Nov 18, 2025): The ones I built myself (homework and image_gen) are not the problem
Author
Owner

@akemmanuel commented on GitHub (Nov 18, 2025):

What could be very useful too is the functionality to enable and disable mcp servers

@akemmanuel commented on GitHub (Nov 18, 2025): What could be very useful too is the functionality to enable and disable mcp servers
Author
Owner

@akemmanuel commented on GitHub (Nov 18, 2025):

Ok, I found out that it was the web_search mcp server

@akemmanuel commented on GitHub (Nov 18, 2025): Ok, I found out that it was the web_search mcp server
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2951