Repository navigation
Connect an agent with one command: mcp setup signs in when needed - #20
Merged
Merged
Conversation
mcp setup now starts the same device-code sign-in as auth login when this machine has no session, the session has expired, or --server names another address, then carries on with setup. It accepts --server and --no-browser, marks its approval link with next=setup, and names the agents to restart. auth login is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Connecting one agent took two commands:
npx toolstile auth login, thennpx toolstile mcp setup. Runningmcp setupfirst only printed "Sign in first".Now
npx toolstile mcp setup --enable claude-codedoes it in one go. When the machine is not signed in, setup prints the same link and code asauth login, waits for the approval and then carries on.--servernames a different address than the one the machine is signed in to.TOOLSTILE_URLpicks the server for a new sign-in but never moves a valid session.mcp setupaccepts--serverand--no-browser, with the same meaning as onauth login.next=setup, so the approval page can say the terminal continues by itself.auth loginoutput and its link are unchanged; a test pins them.It works with or without a TTY, like
auth login. A script that runs setup on a machine that is not signed in now waits for approval until the code expires instead of failing at once.Checks:
typecheck,test(137 tests) andbuildpass. Run against a local server: sign-in from setup, approval and the agent's config being written.No version bump here; the release follows in its own PR.
Created with Claude Fable 5.2 and Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.