mcporter in its shell. Your keys never enter the agent’s context or leave this machine.
This is separate from the MCP servers page, which is how Claude Code or Cursor hand tasks to H agents.
Connect a server
Servers live in~/.config/hai/mcp.json, in the same mcpServers shape Cursor uses. ${VAR} and ${env:VAR} read from your environment, or from ~/.config/hai/.env. An optional description helps the agent when the name alone is opaque.
Run an agent that uses them
Any shell-mode agent on this machine sees the connected names (and descriptions) and the publich/mcporter skill:
mcporter, then:
What stays private
The shell’s
mcporter config holds a run token and the resolver URL. It holds no user key.
Session body
POST /api/v2/sessions accepts an optional connections array (max 100). Each entry is { "name": "..." } with an optional description (max 200 chars). A bare name string is also accepted. The Python client fills it when it serves the shell bridge. Agents without a shell desktop ignore it.
Next
Cloud workstations will use the same field and the sameh/mcporter skill, with keys in the platform vault instead of this machine. Until then, connect servers here for shell mode on your desktop.