eca icon indicating copy to clipboard operation
eca copied to clipboard

ECA does not handle some MCP responses correctly

Open mprasil opened this issue 9 months ago • 3 comments

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 avatar Feb 27 '26 21:02 mprasil

@mprasil indeed a bug! but related to eca not handling other types of responses than text here, I will fix it

ericdallo avatar Feb 27 '26 22:02 ericdallo

Fixed in ECA 0.108.1! LMK if any issues

ericdallo avatar Feb 27 '26 22:02 ericdallo

Thanks for quick fix. This indeed now works.

mprasil avatar Feb 27 '26 22:02 mprasil