turno 0.8.0
Agents now get their gateway token from turno mcp headers, which checks that the process on the gateway port is your mcpd before it prints anything.
- Released
- Package
- turno-cli0.8.0GitHub releaseChangelog
Agents now get their gateway token from turno mcp headers, which checks that the process on the gateway port is your mcpd before it prints anything. The token is no longer in the Claude Code and Codex configs, and the launchers of Copilot CLI and Cursor CLI run the same check.
Upgrade
One command
turno upgradeUpdates turno with the tool that installed it (npm, pnpm, yarn, bun, Volta, Homebrew or a git checkout), then rewrites the launchers.
Or with your package manager
npm install --global turno-cli@latestThen run turno upgrade --finish: it rewrites the launchers, checks the config and shows what changed.
Highlights
Gateway
Agents get the token after a check
turno mcp headers <profile> checks that the process on the gateway port is your mcpd (it runs as your user and answers the /hello challenge) before it prints anything.
turno mcp sync
# see why the check fails
turno mcp headers <profile>- Claude Code and Codex:
turno mcp syncwrites their entries withheadersHelperandhttp_headers_helper, both pointing at aturno-mcp-headersscript in turno's bin folder. The token is no longer in.claude.jsonor the Codex config, and these agents run the check before each connection.turno upgrade --finishkeeps the script pointing at the turno you have after a Node version switch. - Copilot CLI and Cursor CLI: their launchers run the same check when they start and export
TURNO_MCPD_TOKENonly when it passes. When it does not, they say why once. - A service that is starting: when mcpd's service is installed but not listening, the check waits up to 2.5 seconds for it.
- When the check fails: the agent gets no token. Claude Code, Copilot CLI and Cursor CLI may still connect without it, so a process that is not mcpd can answer as the gateway's servers;
turno doctorand the status line show it. Codex does not connect and shows only "MCP HTTP headers helper exited with status 5": runturno mcp headers <profile>to see why.
More
- The status line: it uses the same check, so a process on the port that is not your mcpd shows as
mcpd port taken, and an mcpd that cannot prove it holds the token asmcpd outdated. - Configs with entries from an earlier turno:
turno doctorwarns about them, andturno upgrade --finishoffersturno mcp syncto move them to the new entries.
Fixes
- A process that never answers the hello:
turno mcp headersgives up after 5 seconds on a process that takes the gateway port and never answers the hello, so it answers with the reason well before the 10 seconds agents give a headers helper run out. - The script before the configs:
turno mcp syncwrites theturno-mcp-headersscript before it changes any agent config, also when open sessions make it skip every profile. A file of that name that turno did not write stops the sync before a config points at it, andturno mcp sync --dry-runreports it too. turno doctorand the script: it fails when synced configs run aturno-mcp-headersthat is missing or that turno did not write.turno doctor --securityand the bin folder: it fails when others or another group can write turno's bin folder or that script, and warns when only a Linux user private group (named after you, with no other member) can.--fixremoves their write access and keeps them readable, for a folder in your home that you own.- The bin folder's mode: turno creates its bin folder as 0755 whatever the umask.
turno mcp logout --help: it explains what logout does. It asks a running mcpd first, which lets a refresh in flight finish, stops using the login and revokes tokens it holds that the secret store does not have, then revokes and removes the stored login (--no-revokerevokes nothing). It also lists why mcpd may not be told: not running, no answer within 15 s, not reachable, or the process on its port did not prove it is your mcpd. The command itself is unchanged.
Changed behavior
- Agent configs at the next sync:
turno mcp syncrewrites the gateway entries of Claude Code and Codex to point atturno-mcp-headers, and the token is no longer in their config files. Until then, Codex launchers keep exporting the token, after the same check, for configs that still read it from the environment, and a profile with open sessions that sync skips keeps its token file. - Codex older than 0.148.0: its gateway servers get no token and fail.
- No token when the check fails: an agent gets its gateway token only when the check passes.
Links
- Full changelog: turno-cli.
- Every agent config points at one place and the gateway in Security and privacy.
- The same servers for every agent with Claude Code and Codex.
turno mcp sync,turno mcp logoutandturno doctor.- What
turno doctorsays: Synced configs have gateway entries from an earlier turno, Synced configs run a turno-mcp-headers that does not exist, Synced configs run a turno-mcp-headers that turno did not write, Other users can change turno's launchers, Another process holds the gateway's port and An agent is too old for the gateway entries.