Google VERTEX AI bug with MCP servers #1181

Closed
opened 2026-02-16 17:29:54 -05:00 by yindo · 8 comments
Owner

Originally created by @cpalau on GitHub (Aug 8, 2025).

Originally assigned to: @thdxr on GitHub.

Hi,

Tried to use model Gemini Pro 2.5 using Google VERTEX AI api and I got the error:

Image Image

AI_APICallError: * GenerateContentRequest.tools[0].function_declarations[22].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type

PD: I have 3 MCP servers in my config file

Thanks!

Chris

Originally created by @cpalau on GitHub (Aug 8, 2025). Originally assigned to: @thdxr on GitHub. Hi, Tried to use model Gemini Pro 2.5 using Google VERTEX AI api and I got the error: <img width="1788" height="392" alt="Image" src="https://github.com/user-attachments/assets/4acc3388-f379-464b-9a42-38fb6173c1b6" /> <img width="1845" height="128" alt="Image" src="https://github.com/user-attachments/assets/40701b55-03dc-4889-a96b-4cd6e40a3563" /> AI_APICallError: * GenerateContentRequest.tools[0].function_declarations[22].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type PD: I have 3 MCP servers in my config file Thanks! Chris
yindo closed this issue 2026-02-16 17:29:54 -05:00
Author
Owner

@rekram1-node commented on GitHub (Aug 8, 2025):

Are you using an mcp server?

@rekram1-node commented on GitHub (Aug 8, 2025): Are you using an mcp server?
Author
Owner

@cpalau commented on GitHub (Aug 8, 2025):

In my config file there are 3 MCP servers but I am not calling it my prompt these MCP servers. I think..

@cpalau commented on GitHub (Aug 8, 2025): In my config file there are 3 MCP servers but I am not calling it my prompt these MCP servers. I think..
Author
Owner

@rekram1-node commented on GitHub (Aug 8, 2025):

Yeah I think the fix here is we need to sanitize the mcp server tools, gemini won't work w/ one of your mcp servers

@rekram1-node commented on GitHub (Aug 8, 2025): Yeah I think the fix here is we need to sanitize the mcp server tools, gemini won't work w/ one of your mcp servers
Author
Owner

@cpalau commented on GitHub (Aug 8, 2025):

Confirmed. I commented all MCP servers and run perfectly. Actually if I don't comment the MCP is unusable with VERTEX AI API.

@cpalau commented on GitHub (Aug 8, 2025): Confirmed. I commented all MCP servers and run perfectly. Actually if I don't comment the MCP is unusable with VERTEX AI API.
Author
Owner

@cpalau commented on GitHub (Aug 8, 2025):

@rekram1-node if this bug is not fixed shortly I suggest to add a option in the menu like /mcp on/off to turn on/off the usage of MCP serves. Will help a lot without modifying the opencode.conf file

@cpalau commented on GitHub (Aug 8, 2025): @rekram1-node if this bug is not fixed shortly I suggest to add a option in the menu like /mcp on/off to turn on/off the usage of MCP serves. Will help a lot without modifying the opencode.conf file
Author
Owner

@rekram1-node commented on GitHub (Aug 14, 2025):

@cpalau there is an open PR for that, may get shipped soon. We are also looking into improving MCP support, I will update you when we get that to a better state

@rekram1-node commented on GitHub (Aug 14, 2025): @cpalau there is an open PR for that, may get shipped soon. We are also looking into improving MCP support, I will update you when we get that to a better state
Author
Owner

@cpalau commented on GitHub (Aug 14, 2025):

Thanks for the update, if you need me to test it shoot message !
C

@cpalau commented on GitHub (Aug 14, 2025): Thanks for the update, if you need me to test it shoot message ! C
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1181