From 615d6493ff32ad16d20c08843280266c98b86c9f Mon Sep 17 00:00:00 2001 From: Adira Denis Muhando Date: Wed, 3 Jun 2026 06:51:30 +0300 Subject: [PATCH] fix(deps): bump cogito to fix MCP image-content panic (#10101) Bumps github.com/mudler/cogito from v0.9.5-0.20260315222927-63abdec7189b to v0.9.5-0.20260531081147-2c13b6ac29cf The new revision contains mudler/cogito#50 which replaces the hard *mcp.TextContent type assertion in mcpTool.Execute with a type switch. Any MCP tool that returns image, audio, resource-link, or embedded-resource content previously caused: panic: interface conversion: mcp.Content is *mcp.ImageContent, not *mcp.TextContent bringing down the entire host process. The new code summarises non-text blocks with a descriptive marker so the model receives something useful without crashing. Closes #10101 Assisted-by: Claude Sonnet 4.6 [claude-code] Signed-off-by: Adira Denis Muhando --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 0bb00e30d60f..7e26dfdeee5b 100644 --- a/go.mod +++ b/go.mod @@ -36,7 +36,7 @@ require ( github.com/mholt/archiver/v3 v3.5.1 github.com/microcosm-cc/bluemonday v1.0.27 github.com/modelcontextprotocol/go-sdk v1.5.0 - github.com/mudler/cogito v0.9.5-0.20260315222927-63abdec7189b + github.com/mudler/cogito v0.9.5-0.20260531081147-2c13b6ac29cf github.com/mudler/edgevpn v0.32.2 github.com/mudler/go-processmanager v0.1.1 github.com/mudler/memory v0.0.0-20260406210934-424c1ecf2cf8 diff --git a/go.sum b/go.sum index c949ea155e22..04adc95dcb5c 100644 --- a/go.sum +++ b/go.sum @@ -972,6 +972,8 @@ github.com/mudler/LocalAGI v0.0.0-20260508125235-37810d918a87 h1:az+2umaD/sT1rRv github.com/mudler/LocalAGI v0.0.0-20260508125235-37810d918a87/go.mod h1:x77p9W1zKZr+W+UcEwg8/qdp00p4XXOI69wE7WlXZc0= github.com/mudler/cogito v0.9.5-0.20260315222927-63abdec7189b h1:A74T2Lauvg61KodYqsjTYDY05kPLcW+efVZjd23dghU= github.com/mudler/cogito v0.9.5-0.20260315222927-63abdec7189b/go.mod h1:6sfja3lcu2nWRzEc0wwqGNu/eCG3EWgij+8s7xyUeQ4= +github.com/mudler/cogito v0.9.5-0.20260531081147-2c13b6ac29cf h1:njoYjFON9qXKcErNvPl1WoxmSzl4zE9Wexyk2YN82FM= +github.com/mudler/cogito v0.9.5-0.20260531081147-2c13b6ac29cf/go.mod h1:6sfja3lcu2nWRzEc0wwqGNu/eCG3EWgij+8s7xyUeQ4= github.com/mudler/edgevpn v0.32.2 h1:umTPyyZgkom/A81Bk4HbP0p1ZSEU5EFPW3Bg+YPxI8A= github.com/mudler/edgevpn v0.32.2/go.mod h1:UaMc8MORbcRsAjuO5gVJj9Bn3Nq2AP5U9NTb6epVyv8= github.com/mudler/go-piper v0.0.0-20241023091659-2494246fd9fc h1:RxwneJl1VgvikiX28EkpdAyL4yQVnJMrbquKospjHyA=