ECA does not handle some MCP responses correctly
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
Describe the bug
I suspect some MCP tool responses are not correctly passed to the context. It seems that the issue is result with list content like this:
{
"result": {
"content": [
{
"text": "successfully downloaded text file (SHA: ...)",
"type": "text"
},
{
"resource": {
"mimeType": "text/plain; charset=utf-8",
"text": "...",
"uri": "repo://...."
},
"type": "resource"
}
]
}
}
It seems that LLM can only see the first content object. Can't see the text from the second object.
To Reproduce
I think the easiest way is to try and use get_file_contents from the Github MCP server
Expected behavior
The MCP call works as expected.
@mprasil indeed a bug! but related to eca not handling other types of responses than text here, I will fix it
Fixed in ECA 0.108.1! LMK if any issues
Thanks for quick fix. This indeed now works.