relay.agentarea.ru on port 443. The server then answers at
https://<subdomain>.relay.agentarea.ru, and AgentArea calls it like any
remote server. Nothing is opened in your
network.
If the server already has a public URL, skip the relay and connect it directly.
Prerequisites
- The relay token. Ask the AgentArea team for it; it is not self-service yet.
- A host or pod next to the MCP server that can open outbound HTTPS to
relay.agentarea.ru:443, with Docker or Kubernetes. - The server’s MCP endpoint as seen from that host, for example
http://grafana-mcp:8000/mcp, and the credential the server itself expects. Run the server with its own authentication: the relay forwards whatever passes the tunnel password.
Steps
Pick a subdomain and a tunnel password
The subdomain is global across all relay users, so prefix it with your
workspace, for example
acme-grafana. Generate the password:Write frpc.toml
frpc substitutes Add
{{ .Envs.NAME }} from its environment, so no secret
sits in the file.hostHeaderRewrite = "<name>" when the server only accepts a known
Host. Add one [[proxies]] block per server.Run frpc
With Docker:In Kubernetes, run the same image as a one-replica Deployment. Mount
frpc.toml from a ConfigMap, and pass the three values from a Secret as
environment variables. It needs no Service and no ServiceAccount token.
Pin the image tag: frp is pre-1.0, and its config format has changed
between releases.Register the tunnel in AgentArea
Create a URL connection as in Connect a remote MCP
server. Use the tunnel URL plus the
server’s own path, and send the tunnel password as Basic auth:Then set which tools agents may call on the connection’s Tools tab.
Verify
frpc logsstart proxy success once per tunnel:
serverInfo means the request crossed
the relay, the tunnel and your server. In AgentArea, the instance’s
verification.status should be succeeded.
Troubleshooting
connect to server error: EOF in the frpc log
connect to server error: EOF in the frpc log
TLS to
relay.agentarea.ru:443 did not complete. Check that the host can
open outbound HTTPS, and that transport.protocol is wss: plain tcp on
port 443 fails this way.start error: router config conflict
start error: router config conflict
Another client holds that subdomain. Pick a different, workspace-prefixed
subdomain.
404 from the tunnel URL
404 from the tunnel URL
No frpc is connected for that subdomain right now. Check that frpc is
running and logged
start proxy success.401 with the right tunnel password
401 with the right tunnel password
The relay accepted the password, and your server rejected the
Bearer that
frpc set. Check MCP_TOKEN. If the server checks the Host header, set
hostHeaderRewrite.