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
{{ message }}
Repository navigation
tool_response_limit does not truncate structuredContent #1932
In v0.68.0, v0.73.0 and main (6370f1f), tool_response_limit truncates only the text blocks in content. structuredContent passes through unchanged (internal/server/content_forward.go#L194-199). An upstream server that returns large structuredContent (for example a Vikunja MCP server) bypasses the limit, and the full payload reaches the client context. Expected: when a response exceeds tool_response_limit, truncate or drop structuredContent too, and point to read_cache for the full result. If the full pass-through is intentional (PR #1861), please add a config option to drop or cap structuredContent.
Thanks for the clear report and for pointing at the exact lines, @uznog! This was a gap, not an intentional pass-through: #1861 only clarified that output validation doesn't mutate structuredContent. Fixed in #1937: an oversize structuredContent is now held back and delivered as truncated text with a read_cache handle, so tool_response_limit covers it too.
Activity
fix(server): apply tool_response_limit to structuredContent
Dumbris commentedon Nov 19, 2026
Thanks for the clear report and for pointing at the exact lines, @uznog! This was a gap, not an intentional pass-through: #1861 only clarified that output validation doesn't mutate
structuredContent. Fixed in #1937: an oversizestructuredContentis now held back and delivered as truncated text with aread_cachehandle, sotool_response_limitcovers it too.