Expose host/port options in MCP

Author: quackerdCreated Sep 18, 2026Updated Sep 18, 2026

Why do you need it?

The mcp currently supports streamable http, but does not allow configuring the http bind host. In my deployment, the mcp server needs to be reached by another container (agentgateway). If it only binds to localhost, an extra tcp tunnel such as socat is required purely to expose the listener.

How could it be?

Expose --host and --port options for http transport, for example:

bash
opensandbox-mcp \
  --transport streamable-http \
  --host 0.0.0.0 \
  --port 8000

These should be passed through to the Fastmcp server.

Other related information

Fastmcp already supports configurable http host/port bindings, so this should be a quick fix by simply exposing those settings.

Source: opensandbox-group/OpenSandbox