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
When MCP servers return large tool outputs (e.g., code search results, file listings, or API responses), the content is truncated to 2000 lines or 50KB before being sent to the LLM. This limits the model's ability to process large contexts that modern models can easily handle (many models support 128K-200K context windows).
Proposed Solution:
Add configurable truncation limits to the .opencode/opencode.json config file:
Please review that issue and consider whether your request is already covered there. If there's meaningful differentiation (e.g., your focus on MCP tool outputs specifically), please clarify the distinction.
Thanks for the duplicate check. I see #13770 covers the configurability aspect (point #2), but that issue is broader and focuses on multiple truncation problems.
Activity
github-actions commentedon Apr 15, 2026
This issue might be a duplicate of existing issues. Please check:
MAX_LINES/MAX_BYTES) are hardcoded and not configurable, and requests the ability to configure them — directly overlapping with this request.Please review that issue and consider whether your request is already covered there. If there's meaningful differentiation (e.g., your focus on MCP tool outputs specifically), please clarify the distinction.
lingeasy commentedon Apr 15, 2026
Thanks for the duplicate check. I see #13770 covers the configurability aspect (point #2), but that issue is broader and focuses on multiple truncation problems.
Sogl commentedon Apr 21, 2026
I also need this feature