eca icon indicating copy to clipboard operation
eca copied to clipboard

Some MCP tool calls hang indefinitely after v0.113.0

Open lgustafson opened this issue 8 months ago • 7 comments

Since eca 0.113.0, when using the official GitHub MCP server (the compiled Go binary) 0.32.0, making tool calls through eca hangs indefinitely. The agent logs that it is calling the tool, but never receives the response.

Expected Behavior

When the agent executes an MCP tool call (e.g., search_repositories), eca should read the JSON-RPC result from the server's stdout and return it to the agent so the conversation can continue.

Actual Behavior

The eca logs show the tool being called:

:eca/chat-tool-call-approve 0ms
[TOOLS] Calling tool 'github__search_repositories' with args '{"query" "user:YOUR_USER is:private", "perPage" 100}'
👤📤   -->MCP:Request [a880abc9-0a7f-4fb2-8eda-ae7f91312c16] tools/call

After this, the agent UI is stuck on Calling tool indefinitely. No timeout or error is ever surfaced in the eca logs.

How to reproduce

Steps to Reproduce

  1. Install eca version 0.113.0 or newer.
  2. Configure the official Go-based github-mcp-server in config.json:
    "github": {
      "command": "github-mcp-server",
      "args": [
        "stdio", "--read-only", "--toolsets=repos,issues,pull_requests"
      ]
    }

3.Prompt the agent to trigger a tool call against GitHub (e.g., searching repositories). 4.Observe the indefinite hang.

What I tried/workaround

I rolled back to eca 0.112.1 and it the github MCP server works again.

Perhaps it's related to the plumcp change in 0.113.0. Specifically, the github MCP server interleaves unprompted server notifications (like list_changed) into stdout, and eca may not be expecting it.

lgustafson avatar Mar 15 '26 23:03 lgustafson

Thanks @lgustafson will take a look, we replaced on 0.113.0 the mcp java sdk with plumcp c/c @kumarshantanu

ericdallo avatar Mar 16 '26 11:03 ericdallo

I connected a script (using Plumcp 0.2.0-beta4) to Github MCP server 0.32.0 via STDIO. I was able to list tools, call a tool and print the result on screen.

@ericdallo Is it possible that eca.features.tools.mcp/call-tool! needs some tweak to avoid the reinit/background-exec for STDOUT calls? Also, in beta4 Plumcp puts :plumcp.core/http-status key in the :error map for HTTP 400/404/500.

kumarshantanu avatar Mar 17 '26 07:03 kumarshantanu

@kumarshantanu I don't think we are gonna reinit for stdout calls, but let me know if you notice anything.

@lgustafson closing this as in latest release I did some fixes which should fix that

ericdallo avatar Mar 17 '26 19:03 ericdallo

Thanks @ericdallo . Unfortunately, it didn't fix it for me on eca 0.115.1 with github-mcp-server 0.33.0 from nixpkgs. For now, I'm just going to rely on agents calling gh CLI.

lgustafson avatar Mar 18 '26 03:03 lgustafson

@lgustafson hum, I will take a closer look, thanks for letting me know

ericdallo avatar Mar 18 '26 03:03 ericdallo

@lgustafson just fixed on ECA 0.115.2!

ericdallo avatar Mar 18 '26 19:03 ericdallo

@lgustafson just fixed on ECA 0.115.2!

Indeed, it works again! Thanks!

lgustafson avatar Mar 19 '26 04:03 lgustafson