Skip to content

[BUG]: LimitOverrunError with translate for stdio server #2591

@gabe-l-hart

Description

@gabe-l-hart

🐞 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

  1. Running the GH MCP server locally via cforge run (which directly wraps mcpgateway.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
  1. Invoke a tool with lots of results (search-pull-requests with query set to author:gabe-l-hart merged:>2026-01-01)

  2. Error processing stdio async 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.
⚠️ Do not paste secrets, credentials, or tokens.


🧠 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions