Files
google-mcp/main.py
Roland Huß a1c5c63ca0 Add --host argument for configurable bind address
Add a --host command line argument to allow configuring which address
the HTTP server binds to. This is useful for containerized deployments
where a TLS-terminating sidecar (like nginx) handles external traffic,
and the MCP server should only be accessible via localhost.

Use case: Kubernetes deployment with nginx sidecar for HTTPS termination.
The MCP server binds to 127.0.0.1 while nginx handles TLS on the pod's
external interface, providing defense-in-depth security.

Default behavior remains unchanged (0.0.0.0).

Assisted-By: Claude Code
2026-02-01 10:32:17 +01:00

15 KiB