Skip to content

turno-cli 0.7.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 05:58
· 15 commits to main since this release
39fbd71

What's new in turno-cli 0.7.0: https://turno.wimo.dev/releases/cli/0-7-0

Minor Changes

  • c59441f: New turno mcp add <name> -- <command> [args...] writes one local server into mcp.toml, and turno mcp add <name> --url <url> a remote one (--header, and --oauth for servers mcpd logs in to), then runs turno mcp sync. --env, --scope and --profile set the rest; 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 (an item that holds another value is replaced only with --force, and turno undo does not reach the secret store). The printed block masks the secrets turno recognizes, passwords and keys in URLs included. A plain http:// URL to another machine is refused with --header or --oauth. A server already in mcp.toml is refused unless --force, which shows the change line by line first. --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.

    New 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. turno browser add <id> --dry-run on an identity that exists now says so and points to it. Needs turno-browser's API 1.16.

  • e1ff844: turno mcp login can now finish on a machine without a browser. With --no-browser it 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. A pipe on stdin works too; stdin is read only when the link is printed, so a browser that opens on the same machine leaves it alone. turno takes only the address of that login, checks it like an answer that reached the callback, never prints it back, and gives other text a short reason and another try. The callback still works, and whichever answer comes first is used. Where turno may not ask (TURNO_NO_INPUT=1, --no-input, an agent session) it does not read the terminal and says so.

    turno mcp login --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.

Patch Changes

  • c184f5d: On a terminal where only an agent's session variable (inherited by a terminal an agent opened) keeps turno from asking, the message now 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.

  • c59441f: turno mcp login --no-browser reads a pasted redirect address in the terminal's raw mode when stdin and stderr are both terminals, so an address longer than 1024 bytes no longer waits until the login times out on macOS. Ctrl-C still cancels, and the pasted text is shown only on the screen, never written to a stderr that goes to a file. When pasting is off, the hint names this run's port for ssh -L and says when the port can change.

  • c3fe893: mcpd now keeps the newest OAuth login of a remote server. It saves a refreshed token 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. turno mcp login tells a running mcpd, which uses the new login from the next call instead of up to a minute later.

    turno mcp logout asks a running 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 (unless --no-revoke). Logout then revokes the token in the store and removes it. It now says whether mcpd is not running, did not answer in time, or could not be reached. If a refresh still finishes after logout removed the login, mcpd revokes what it got (unless --no-revoke). Requests mcpd makes to discover a server, refresh a token or revoke one now give up after 10 seconds.

    When mcpd stops with tokens the secret store did not accept, 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.

    turno mcp login takes a protected resource's resource 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. 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.

  • Updated dependencies [c184f5d]

  • Updated dependencies [c59441f]

    • turno-core@0.5.1

A CycloneDX SBOM is attached.