You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Model Provider: Github Copilot
Error: AI_APICallError: Invalid 'tools': array too long. Expected an array with maximum length 128, but got an array with length 238 instead.
Opencode version: v0.4.12
what mcps are yall using?? over 200 tools is kinda insane and I think your model performance is going to drop off steeply (I think I don't know lol)
I've got my Docker Desktop using the Beta feature MCP Toolkit. I'm using: Atlassian, Docker, Git, GitLab, and GitHub. The GitHub one has a lot of bloat. I did notice in the opencode docs about available tools, which seem to just be native to opencode. My thought would be you could do the restricting from the Frontmatter to add those external MCP tools. Something like:
---
description: Reviews code for quality and best practices
mode: subagent
model: anthropic/claude-sonnet-4-20250514
temperature: 0.1
tools:
write: false
edit: false
bash: false
external_tools:
git_create_branch: true
git_reset: false
---
Could cut down on your tools in the case your config has a lot of MCP connections.
Activity
rekram1-node commentedon Aug 11, 2025
are you using certain mcps? That is an absurd amount of tools and not an opencode issue, that seems like a github copilot limitation
jhartumc commentedon Aug 11, 2025
Yeah, I got a lot of mcps connected. Disable mcps fixed it! Thanks a lot!
mahume commentedon Aug 11, 2025
I've noticed this too when running copilot. I've got Docker connected with only about 5 MCPs enabled but it overloads it.
rekram1-node commentedon Aug 11, 2025
what mcps are yall using?? over 200 tools is kinda insane and I think your model performance is going to drop off steeply (I think I don't know lol)
mahume commentedon Aug 12, 2025
I've got my Docker Desktop using the Beta feature MCP Toolkit. I'm using: Atlassian, Docker, Git, GitLab, and GitHub. The GitHub one has a lot of bloat. I did notice in the opencode docs about available tools, which seem to just be native to opencode. My thought would be you could do the restricting from the Frontmatter to add those external MCP tools. Something like:
Could cut down on your tools in the case your config has a lot of MCP connections.