Commit 615d649
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
972 | 972 | | |
973 | 973 | | |
974 | 974 | | |
| 975 | + | |
| 976 | + | |
975 | 977 | | |
976 | 978 | | |
977 | 979 | | |
| |||
0 commit comments