mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
* fix(mcp): return text content for empty list tool results When MCP list tools return zero items, success([]) previously produced an empty content array. Anthropic's MCP connector rejects that format. Return a single JSON text block for empty arrays so clients can distinguish no results from a broken tool response. Fixes #12858 * test(mcp): handle empty list sentinel in integration tests Add parseMcpListContent helper for the [] sentinel block and update list tool tests that can receive zero results. * test(mcp): fix list_collections type assertion in integration test --------- Co-authored-by: syf2211 <syf2211@users.noreply.github.com>