Skip to content

Connect an agent with one command: mcp setup signs in when needed - #20

Merged
akshitkrnagpal merged 1 commit into
mainfrom
setup-signs-in
Nov 19, 2026
Merged

akshitkrnagpal merged 1 commit into
mainfrom
setup-signs-in

Conversation

@akshitkrnagpal

@akshitkrnagpal akshitkrnagpal commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Connecting one agent took two commands: npx toolstile auth login, then npx toolstile mcp setup. Running mcp setup first only printed "Sign in first".

Now npx toolstile mcp setup --enable claude-code does it in one go. When the machine is not signed in, setup prints the same link and code as auth login, waits for the approval and then carries on.

  • Setup signs in when there is no saved session, when the saved session has expired, or when --server names a different address than the one the machine is signed in to. TOOLSTILE_URL picks the server for a new sign-in but never moves a valid session.
  • mcp setup accepts --server and --no-browser, with the same meaning as on auth login.
  • The approval link from setup carries next=setup, so the approval page can say the terminal continues by itself.
  • The closing line names the agents to restart, for example "Restart Claude Code and Codex to pick up the change."
  • auth login output 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) and build pass. 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


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

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>
@akshitkrnagpal
akshitkrnagpal merged commit 2360b2a into main Nov 19, 2026
1 check passed
@akshitkrnagpal
akshitkrnagpal deleted the setup-signs-in branch November 19, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant