Skip to content

Commit 615d649

Browse files
committed
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 <dennisadira@gmail.com>
1 parent 415b561 commit 615d649

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ require (
3636
github.com/mholt/archiver/v3 v3.5.1
3737
github.com/microcosm-cc/bluemonday v1.0.27
3838
github.com/modelcontextprotocol/go-sdk v1.5.0
39-
github.com/mudler/cogito v0.9.5-0.20260315222927-63abdec7189b
39+
github.com/mudler/cogito v0.9.5-0.20260531081147-2c13b6ac29cf
4040
github.com/mudler/edgevpn v0.32.2
4141
github.com/mudler/go-processmanager v0.1.1
4242
github.com/mudler/memory v0.0.0-20260406210934-424c1ecf2cf8

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,8 @@ github.com/mudler/LocalAGI v0.0.0-20260508125235-37810d918a87 h1:az+2umaD/sT1rRv
972972
github.com/mudler/LocalAGI v0.0.0-20260508125235-37810d918a87/go.mod h1:x77p9W1zKZr+W+UcEwg8/qdp00p4XXOI69wE7WlXZc0=
973973
github.com/mudler/cogito v0.9.5-0.20260315222927-63abdec7189b h1:A74T2Lauvg61KodYqsjTYDY05kPLcW+efVZjd23dghU=
974974
github.com/mudler/cogito v0.9.5-0.20260315222927-63abdec7189b/go.mod h1:6sfja3lcu2nWRzEc0wwqGNu/eCG3EWgij+8s7xyUeQ4=
975+
github.com/mudler/cogito v0.9.5-0.20260531081147-2c13b6ac29cf h1:njoYjFON9qXKcErNvPl1WoxmSzl4zE9Wexyk2YN82FM=
976+
github.com/mudler/cogito v0.9.5-0.20260531081147-2c13b6ac29cf/go.mod h1:6sfja3lcu2nWRzEc0wwqGNu/eCG3EWgij+8s7xyUeQ4=
975977
github.com/mudler/edgevpn v0.32.2 h1:umTPyyZgkom/A81Bk4HbP0p1ZSEU5EFPW3Bg+YPxI8A=
976978
github.com/mudler/edgevpn v0.32.2/go.mod h1:UaMc8MORbcRsAjuO5gVJj9Bn3Nq2AP5U9NTb6epVyv8=
977979
github.com/mudler/go-piper v0.0.0-20241023091659-2494246fd9fc h1:RxwneJl1VgvikiX28EkpdAyL4yQVnJMrbquKospjHyA=

0 commit comments

Comments
 (0)