-
Notifications
You must be signed in to change notification settings - Fork 615
[BUG]: LimitOverrunError with translate for stdio server #2591
Copy link
Copy link
Description
🐞 Bug Summary
I'm running the official GH MCP server locally using mcpgateway.translate (via cforge run). When I run a tool, I see LimitOverrunError.
🧩 Affected Component
Select the area of the project impacted:
-
mcpgateway- API -
mcpgateway- UI (admin panel) -
mcpgateway.wrapper- stdio wrapper - Federation or Transports
- CLI, Makefiles, or shell scripts
- Container setup (Docker/Podman/Compose)
- Other (explain below)
🔁 Steps to Reproduce
- Running the GH MCP server locally via
cforge run(which directly wrapsmcpgateway.translate:
cforge run --stdio "docker run --rm -i -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PUBLIC_TOKEN ghcr.io/github/github-mcp-server" --port 8003 --temporary-
Invoke a tool with lots of results (
search-pull-requestswithqueryset toauthor:gabe-l-hart merged:>2026-01-01) -
Error processing
stdioasync stream
2026-01-30T09:50:26 - mcpgateway.translate - ERROR - stdout pump crashed - terminating bridge
Traceback (most recent call last):
File "/Users/ghart/miniforge3/envs/contextforge-cli/lib/python3.11/asyncio/streams.py", line 566, in readline
line = await self.readuntil(sep)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ghart/miniforge3/envs/contextforge-cli/lib/python3.11/asyncio/streams.py", line 661, in readuntil
raise exceptions.LimitOverrunError(
asyncio.exceptions.LimitOverrunError: Separator is found, but chunk is longer than limit
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/ghart/Projects/github/IBM/mcp-context-forge/mcpgateway/translate.py", line 539, in _pump_stdout
line = await reader.readline()
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ghart/miniforge3/envs/contextforge-cli/lib/python3.11/asyncio/streams.py", line 575, in readline
raise ValueError(e.args[0])
ValueError: Separator is found, but chunk is longer than limit
🤔 Expected Behavior
Tool response should be handled correctly
📓 Logs / Error Output
Paste any relevant stack traces or logs here.
🧠 Environment Info
You can retrieve most of this from the /version endpoint.
?> cforge version
Client version: 1.0.0-BETA-2
Server version: 1.0.0-BETA-2🧩 Additional Context (optional)
The cforge run command is a direct wrapper around mcpgateway.translate which runs the wrapper as a subprocess.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working