Add namespace switching with multi-profile support#766
Conversation
Enable users to switch between personal and organization namespaces without re-authenticating by storing multiple credential profiles locally. Changes: - Extended Settings interface to support a profiles map - Added saveProfile, getProfile, getProfiles, switchProfile, and removeProfile helpers - Created 'smithery namespace switch <name>' command for fast profile switching - Modified handleLogin to save credentials as named profiles - Updated listNamespaces to show cached profiles alongside remote namespaces - Updated handleWhoami to list available cached profiles - Enhanced handleLogout to support profile-aware logout (--all flag for clearing all profiles) - Added comprehensive tests for profile switching logic - Updated README.md with multi-profile workflow documentation Implements: SMI-1872 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
🤖 Factory council reviewTally: 1 approve · 1 reject · 0 neutral · 1 errored claude-opus-4-7 — reject (score 0.35)The claude-sonnet-4-6 — approve (score 0.78)The diff fully implements the ticket requirements: new claude-haiku-4-5-20251001 — errored (score 0.00)reviewer threw: flamecast think 502: error code: 502 |
Summary
smithery namespace switch <name>commandsmithery namespace listto show cached profilessmithery auth whoamito list available profiles--allflag tosmithery auth logoutfor clearing all profilesImplementation Details
Test plan
Related
Implements: SMI-1872
🤖 Generated with Factory