Replies: 2 comments
-
|
Hi @SirSerch, good point. There are security tradeoffs here and we should document supported proxy-mode boundaries. Could you share deployment topology and auth constraints so I can scope this clearly. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @SirSerch, yes — ContextForge can run as a proxy with authentication delegated to the upstream MCP servers. Configuration: AUTH_REQUIRED=false
MCP_REQUIRE_AUTH=falseWith both set to
Setup for your use case: # .env
AUTH_REQUIRED=false
MCP_REQUIRE_AUTH=falseThen register each gateway with header passthrough: POST /gateways
{
"name": "mcp-a",
"url": "http://mcp-server-a:9000",
"passthrough_headers": ["X-MCPA"]
}Important caveats:
This is a valid setup for internal/development use. For production, we recommend enabling gateway-level auth to add RBAC, rate-limiting, and audit logging on top of the upstream auth. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We currently have multiple MCP servers that use different authorization methods.
In this scenario, we have two MCP servers — let’s call them MCP-A and MCP-B.
Each server uses its own token, which we configure in the headers as X-MCPA and X-MCPB.
In the gateway, I can use Header Passthrough to forward the token (e.g., X-WHATEVER) from the client to the corresponding server.
The issue arises when I try to distribute this setup to all users. Ideally, they should be able to use the MCP Gateway as a proxy, without needing to configure each MCP server individually.
However, when I try to run the Gateway with AUTH_REQUIRED = False and remove BASIC_AUTH_USER and BASIC_AUTH_PASS, nothing changes — the gateway still expects at least one type of authentication.
Is it possible to delegate the security handling to the MCP servers themselves?
I understand this isn’t the most secure setup, but it would only be a temporary solution until we have everything properly configured.
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions