MCP gateway
The hub signs in to your MCP servers once, and agents on every machine reach them through it.

How it works
- Agent on any machine
- Tunnel to the hub
- MCP gateway
- Your MCP servers
Workflows
MCP gateway
On with the packThe hub signs in to your MCP servers once, and agents on every machine reach them through it.
Slack bridge
Off until you turn it onAgents read Slack as you through the MCP gateway, and leave only unsent drafts and canvases.
Read before you turn it on
The bridge acts as your Slack account. It reads what you can read, and writes only drafts you send yourself and canvases. Native Codex turns its Slack app off on every machine, so agents reach Slack only through the bridge.
Gmail
Off until you turn it onAgents read your mail and leave replies as unsent drafts, through the MCP gateway.
Read before you turn it on
The route acts as your Google account through a ChatGPT sign-in. Only its allowlist keeps agents from tools that send, change or delete, so native Codex turns Gmail off on every machine.
Google Calendar
Off until you turn it onAgents read your calendar through the MCP gateway, and change nothing.
Read before you turn it on
The route acts as your Google account through a ChatGPT sign-in. Only its allowlist keeps agents from tools that send, change or delete, so native Codex turns Google Calendar off on every machine.
Google Drive
Off until you turn it onAgents read your documents, sheets and slides through the MCP gateway, and change nothing.
Read before you turn it on
The route acts as your Google account through a ChatGPT sign-in. Only its allowlist keeps agents from tools that send, change or delete, so native Codex turns Google Drive off on every machine.
Mail replies start threads
Off until you turn it onA reply in a Gmail conversation that you wrote in starts a T3 thread about it, and later replies in that conversation go to the same thread.
Read before you turn it on
Mail from outside becomes agent prompts. The prompt treats every email as data, and the Gmail route can only read mail and write drafts.
Review wait wakes threads
Off until you turn it onWhen a ready pull request of yours waits 4 hours on a review nobody gave, the T3 thread that links it wakes up, and again at 24 hours. A thread that has waited 30 minutes on a decision it put to you in prose, while a watch keeps it out of your inbox, is told once to ask with the question tool.
Read before you turn it on
Reads your pull requests on GitHub and your own Slack messages from the last 12 hours. It messages your threads and changes nothing on GitHub or Slack.
What it costs
The hub needs Docker. Every other machine reaches the gateway through its tunnel to the hub.
Know before you turn it on
The hub holds the sign-ins for your MCP servers, and each machine holds a key that reaches all of them. Keep the hub as private as your laptop.
Settings3 settings that your agent asks about
mcp-gateway.mailQueryWhich Gmail search finds the mail that may be a reply to you? Mail watch adds the time window itself.Default:in:inbox -from:me -category:promotions -category:social -category:forumsmcp-gateway.reviewWaitSearchWhich GitHub search qualifiers narrow the ready pull requests that review wait watches, such as org:your-org? Leave it empty for all of yours.mcp-gateway.reviewWaitAsksWhich Slack search filter finds your own review asks, such as from:<@U012ABCDEF> in:#your-team? Review wait holds a pull request you linked there in the last 12 hours.
Add MCP gateway to your Hedge
Paste this prompt into a T3 Code thread on a machine that runs Hedge.
Your install prompt
Add this Hedge pack to my setup with me: MCP gateway. Hedge runs on my hub and my nodes in the cloud, not on my Mac. Run each command of this prompt on the hub, over SSH with the `PATH` line of https://raw.githubusercontent.com/PostHog/hedge/main/SETUP.md when you run elsewhere. Install nothing from Hedge here. Ask me each choice with your question tool, and run every command yourself. 1. Find my hub. List my cloud boxes as step 1 of https://raw.githubusercontent.com/PostHog/hedge/main/SETUP.md does, and run `hedge hub status` over SSH on each one that runs, until one names the hub. Do not ask a `hedge` on this Mac: an earlier setup can leave one here. The name after "The hub:" is the SSH name of the hub. In each SSH command of a note, put that whole name in place of the host that holds `<hub>`. When every box prints "The hub: not named", or no box runs Hedge, I have no hub yet. Tell me, and offer to set one up first with steps 5, 7, and 9 of https://raw.githubusercontent.com/PostHog/hedge/main/SETUP.md. To make a box that already runs Hedge the hub, skip step 5 for it. 2. Run `hedge update` on the hub, so it has the newest engine and packs. Then run `hedge packs` there, and leave out each pack that is already on. 3. Read the setup note of each pack. Ask me what it asks, and collect the flags that it names. Where a note names "the setup command" or "the command in item 2 of step 9", use the `hedge packs` command of this prompt. Do not run a step that a note puts after that command yet. - MCP gateway: ~/.local/share/hedge/engine/packs/mcp-gateway/SETUP.md 4. Turn the packs on with one command on the hub, and add the flags that the notes name: hedge packs --add mcp-gateway 5. Do the steps that each note puts after the command. 6. Run `hedge doctor` on the hub, and explain each line. Do each `To do:` line with me, and say what a sign-in is for before it opens. 7. My nodes take the change at their next `hedge update`. To give it to one now, run `hedge update` there.