diff --git a/PLAN.md b/PLAN.md index 4e5781e..cead556 100644 --- a/PLAN.md +++ b/PLAN.md @@ -99,20 +99,28 @@ from `~/.hermes/.env`, so `config.yaml` holds no secret: mcp_servers: mcphub: url: "https://mcphub./sse?as_user=" + transport: sse headers: Authorization: "Basic ${MCPHUB_AUTH}" supermarket: - url: "http://127.0.0.1:8470/mcp" - headers: - Authorization: "Bearer ${SUPERMARKET_MCP_TOKEN}" + command: socat + args: ["STDIO", "UNIX-CONNECT:/mcp.sock"] ``` -**`~/.hermes/.env`** (written through `hermes config set`, which routes -UPPER_SNAKE names to `.env`): +**Why a socket, not `http://127.0.0.1:8470/mcp`** (found 2026-11-19). +CoreDesktop runs Hermes under srt, in its own network namespace. Hermes +always dials loopback directly, never through the proxy, and finds nothing +there. srt's proxy, in turn, refuses any name that resolves to loopback. +Unix sockets are allowed in Hermes' sandbox, so the app serves stdio-style +MCP on `/data/mcp.sock`, and Hermes runs `socat` as a stdio MCP server. The +socket is 0600, which is the same protection as the token file beside it. +The HTTP endpoint with its bearer token stays for unsandboxed agents +(Claude Code). + +**`~/.hermes/.env`**: ``` -MCPHUB_AUTH=