# turno 0.7.0 (/releases/cli/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.

Released 2026-12-03.

**[`turno mcp add`](/docs/reference/cli/mcp#turno-mcp-add)** writes one MCP server into `mcp.toml` and syncs it, **[`turno browser serve`](/docs/guides/signed-in-browser#serve-an-identity-you-already-have)** does the same for a browser identity you already have, and **[`turno mcp login`](/docs/reference/cli/mcp#turno-mcp-login)** can finish on a machine without a browser. It goes with [turno-browser 0.14.0](/releases/browser/0-14-0).

## Upgrade [#upgrade]

<Upgrade>
**Update `turno-cli` and `turno-browser` together**: turno 0.7.0 needs turno-browser's API 1.16, which turno-browser 0.14.0 brings. An older turno-browser is refused with a message that says what to update.
</Upgrade>

## Highlights [#highlights]

<Highlight area="Gateway" title="Add a server with one command" href="/docs/reference/cli/mcp#turno-mcp-add" more="turno mcp add">
`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`.

```sh
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.
</Highlight>

<Highlight area="Browser" title="Serve an identity you already have" href="/docs/guides/signed-in-browser#serve-an-identity-you-already-have" more="Serve an identity">
`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.

```sh
# 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`.
</Highlight>

<Highlight area="Gateway" title="Log in from a machine without a browser" href="/docs/reference/cli/mcp#turno-mcp-login" more="turno mcp login">
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`.

```sh
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.
</Highlight>

## Fixes [#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 [#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.

## Links [#links]

- Full changelog: [turno-cli](https://github.com/wimo-dev/turno/blob/turno-cli%400.7.0/packages/turno/CHANGELOG.md).
- [`turno mcp add`](/docs/reference/cli/mcp#turno-mcp-add), [`turno mcp login`](/docs/reference/cli/mcp#turno-mcp-login) and [`turno mcp logout`](/docs/reference/cli/mcp#turno-mcp-logout).
- [Remote servers](/docs/concepts/gateway#remote-servers) in the gateway.
- [Serve an identity you already have](/docs/guides/signed-in-browser#serve-an-identity-you-already-have) and [`turno browser serve`](/docs/reference/cli/browser#turno-browser-serve).