Repository navigation
turno-cli 0.7.0
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 intomcp.toml, andturno mcp add <name> --url <url>a remote one (--header, and--oauthfor servers mcpd logs in to), then runsturno mcp sync.--env,--scopeand--profileset the rest; a header is"Name: value"orName=value. Secrets followturno mcp import:keychain:andenv:references are written as they are, a literal token is kept with a warning, and--move-secretsstores it in the secret store and writes the reference (an item that holds another value is replaced only with--force, andturno undodoes not reach the secret store). The printed block masks the secrets turno recognizes, passwords and keys in URLs included. A plainhttp://URL to another machine is refused with--headeror--oauth. A server already inmcp.tomlis refused unless--force, which shows the change line by line first.--dry-runprints the block and the sync plan and writes nothing,--no-syncleaves the sync for later, and oneturno undotakes backmcp.tomland the agent configs the sync changed; when the sync fails, the command still prints thatturno undoline.New
turno browser serve <id>does the same for a browser identity that exists: it adds the[server.browser-<id>]block thatturno browser addprints, with the identity's sharing, and syncs.turno browser add <id> --dry-runon an identity that exists now says so and points to it. Needs turno-browser's API 1.16. -
e1ff844:
turno mcp logincan now finish on a machine without a browser. With--no-browserit 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 own127.0.0.1), copy that page's address and paste it into the waitingturno 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 withssh -L. turno stops with a clear message when the port is taken. The redirect URI is thenhttp://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-browserreads 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 forssh -Land 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 loginorturno mcp logoutmade while a refresh is on the wire wins.turno mcp logintells a running mcpd, which uses the new login from the next call instead of up to a minute later.turno mcp logoutasks 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 logintakes a protected resource'sresourceonly 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. Theissof 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.