Skip to Content

turno releases

turno 0.7.0

turno mcp add and turno browser serve write a server into mcp.toml and sync it, and turno mcp login can finish on a machine without a browser.

View source
Released
Package
Released together with

turno mcp add writes one MCP server into mcp.toml and syncs it, turno browser serve does the same for a browser identity you already have, and turno mcp login can finish on a machine without a browser. It goes with turno-browser 0.14.0.

Upgrade

One command

turno upgrade

Updates 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@latest

Then run turno upgrade --finish: it rewrites the launchers, checks the config and shows what changed.

Highlights

Gateway

Add a server with one command

turno mcp add <name> -- <command> [args...] writes one local server into mcp.toml, and turno mcp add <name> --url <url> a remote one, then runs turno mcp sync.

turno mcp add github --env GITHUB_TOKEN=keychain:github-token -- github-mcp-server stdio
# a remote server mcpd logs in to
turno mcp add linear --url https://mcp.linear.app/mcp --oauth
  • Flags: --env and --scope for a local server, --header and --oauth (for servers mcpd logs in to) for a remote one, and --profile for either. A header is "Name: value" or Name=value.
  • Secrets follow turno mcp import: keychain: and env: references are written as they are, a literal token is kept with a warning, and --move-secrets stores it in the secret store and writes the reference. The printed block masks the secrets turno recognizes, passwords and keys in URLs included.
  • What needs --force: a server already in mcp.toml (the change is shown line by line first), and a secret store item that holds another value (turno undo does not reach the secret store). A plain http:// URL to another machine is refused with --header or --oauth.
  • Preview and undo: --dry-run prints the block and the sync plan and writes nothing, --no-sync leaves the sync for later, and one turno undo takes back mcp.toml and the agent configs the sync changed. When the sync fails, the command still prints that turno undo line.
turno mcp add

Browser

Serve an identity you already have

turno browser serve <id> does the same for a browser identity that exists: it adds the [server.browser-<id>] block that turno browser add prints, with the identity's sharing, and syncs.

# the block and the sync plan
turno browser serve school --dry-run
turno browser serve school

turno browser add <id> --dry-run on an identity that exists now says so and points to turno browser serve.

Serve an identity

Gateway

Log in from a machine without a browser

With --no-browser, turno mcp login prints the link. Open it on any machine, and when that browser ends on a page that cannot load (it was sent back to its own 127.0.0.1), copy that page's address and paste it into the waiting turno mcp login.

turno mcp login linear --no-browser
# or forward a fixed port
turno mcp login linear --no-browser --port 33418
  • What turno takes: only the address of that login, checked like an answer that reached the callback and never printed back. Other text gets a short reason and another try. The callback still works, and whichever answer comes first is used.
  • A terminal or a pipe: stdin is read only when the link is printed, so a browser that opens on the same machine leaves it alone. When stdin and stderr are both terminals, the address is read in the terminal's raw mode, so an address longer than 1024 bytes goes through on macOS too. Ctrl-C cancels, and the pasted text is shown only on the screen, never written to a stderr that goes to a file.
  • Where turno may not ask (TURNO_NO_INPUT=1, --no-input, an agent session), it does not read the terminal and says so, and the hint names this run's port for ssh -L and says when the port can change.
  • --port <n> fixes the callback port (1024 to 65535), so it can be forwarded before you start, for example with ssh -L. turno stops with a clear message when the port is taken. The redirect URI is then http://127.0.0.1:<n>/callback, which dynamic client registration registers for you; a client you registered by hand, or a client metadata document, must list it.
turno mcp login

Fixes

  • The newest login is kept: mcpd saves a refreshed OAuth token of a remote server only if the login in the secret store is still the one it refreshed, so a turno mcp login or turno mcp logout made while a refresh is on the wire wins.
  • A new login is used at once: turno mcp login tells a running mcpd, which uses the new login from the next call instead of up to a minute later.
  • What turno mcp logout says about mcpd: whether mcpd is not running, did not answer in time, or could not be reached.
  • A refresh that ends after logout: if a refresh still finishes after logout removed the login, mcpd revokes what it got (unless --no-revoke).
  • Time limits: requests mcpd makes to discover a server, refresh a token or revoke one give up after 10 seconds.
  • Tokens the secret store did not accept: when mcpd stops with such tokens, its log says whether a new login is needed (the server rotated the refresh token) or not (the stored refresh token still works), also when the store does not answer within the 3 second limit.
  • An issuer with a trailing slash: the iss of the authorization response may also be the issuer exactly as the authorization server's metadata writes it, when the protected resource lists it with a trailing slash and the issuer has no path.
  • Prompts in a terminal an agent opened: where only an agent's session variable (inherited by a terminal an agent opened) keeps turno from asking, the message names that variable and the way out: a person at that terminal can run the command with TURNO_NO_INPUT=0. When turno asks, and when it does not, is unchanged.
  • --help after --: a --help or -h after -- belongs to the command a subcommand runs (turno mcp add <name> -- <command> --help), not to the subcommand.

Changed behavior

  • turno mcp logout with mcpd running: logout asks mcpd first. mcpd lets a refresh in flight finish, stops using the login, and revokes tokens it holds that the secret store does not have. Logout then revokes the token in the store and removes it. --no-revoke leaves the tokens unrevoked.
  • A protected resource's resource: turno mcp login takes it only when it is the server's URL, or the origin when the metadata is served at the origin's root, as RFC 9728 section 3.3 asks. A parent path is refused with a message that names both. A login saved earlier for such a server is no longer used, and logging in again helps only once the server's metadata names its own URL.

On this page