Some MCP tool calls hang indefinitely after v0.113.0
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
- Install eca version 0.113.0 or newer.
- 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.
Thanks @lgustafson will take a look, we replaced on 0.113.0 the mcp java sdk with plumcp c/c @kumarshantanu
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 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
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 hum, I will take a closer look, thanks for letting me know
@lgustafson just fixed on ECA 0.115.2!