Enhanced uninstall operation with interactive component selection and precision targeting:
- **Safety Verification**: Added verify_superclaude_file() and verify_directory_safety()
functions to ensure only SuperClaude files are removed, preserving user customizations
- **Interactive Component Selection**: Multi-level menu system for granular uninstall control
with complete vs custom uninstall options
- **Precise File Targeting**: Commands only removes files from commands/sc/ subdirectory,
agents only removes SuperClaude agent files, preserving user's custom content
- **Environment Variable Management**: Optional API key cleanup with restore script generation
- **MCP Configuration Safety**: Only removes SuperClaude-managed MCP servers, preserves
user customizations in .claude.json
- **Enhanced Display**: Clear visualization of what will be removed vs preserved with
detailed safety guarantees and file counts
- **Error Recovery**: All verification functions default to preserve if uncertain
Enhanced update operation with API key collection:
- **API Key Collection**: Update now collects API keys for new MCP servers during updates
- **Environment Integration**: Seamless environment variable setup for collected keys
- **Cross-Platform Support**: Windows and Unix environment variable management
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Features:
- Secure API key collection via getpass (hidden input)
- Cross-platform environment variable setup
- Automatic .claude.json configuration with ${ENV_VAR} syntax
- Seamless integration with existing MCP server selection flow
- Skip options for manual configuration later
Implementation:
- Added prompt_api_key() function to setup/utils/ui.py
- Created setup/utils/environment.py for cross-platform env management
- Enhanced MCP server selection in setup/cli/commands/install.py
- Updated MCP component to handle API key configuration
- Preserves user customizations while adding environment variables
Security:
- Hidden input prevents API keys from being displayed
- No logging of sensitive data
- OS-native environment variable storage
- Basic validation with user confirmation
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>