Add Claude CLI support with Strategy Pattern architecture (v0.6.0) - #19
Open
o2alexanderfedin wants to merge 6 commits into
Open
Add Claude CLI support with Strategy Pattern architecture (v0.6.0)#19o2alexanderfedin wants to merge 6 commits into
o2alexanderfedin wants to merge 6 commits into
Conversation
- Add hasClaudeCLI() function to detect claude CLI availability - Add installToClaudeCLI() function using claude mcp add commands - Update installation functions to prefer Claude CLI over Claude Desktop - Add immediate availability for CLI vs restart requirement for Desktop - Update README with Claude CLI installation instructions and features - Maintain backward compatibility with Claude Desktop 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
- Remove installRepoWithArgsToClaudeDesktop function that was unused - Fix TypeScript compilation error 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
- Replace conditional branching with Strategy Pattern for better extensibility - Add InstallationStrategy interface with ClaudeCliStrategy and ClaudeDesktopStrategy implementations - Move strategy detection to server startup for improved performance (1 detection vs 4 per operation) - Eliminate duplicate hasClaudeCLI() calls and conditional logic throughout codebase - Simplify installation flow with unified strategy.install() interface - Remove legacy installToClaudeCLI/installToClaudeDesktop functions - Prepare architecture for future environment support (Docker, Kubernetes, VS Code, etc.) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <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.
🚀 Major Enhancement: Claude CLI Support & Strategy Pattern Architecture
This PR introduces comprehensive Claude CLI support with a robust Strategy Pattern architecture, bringing the MCP installer to v0.6.0 with significant performance and extensibility improvements.
✨ New Features
Claude CLI Integration
claudeCLI is available at startupStrategy Pattern Architecture
🏗️ Technical Improvements
Architecture Changes
InstallationStrategyinterface with concrete implementations:ClaudeCliStrategy- ForclaudeCLI installationsClaudeDesktopStrategy- For traditional config file approachPerformance Enhancements
hasClaudeCLI()calls per installation operationhasClaudeCLI()call per server startupCode Quality
installToClaudeCLI/installToClaudeDesktopfunctions📦 Installation & Usage
For Claude CLI (New - Recommended):
For Claude Desktop (Existing):
{ "mcpServers": { "mcp-installer": { "command": "npx", "args": ["@o2alexanderfedin/mcp-installer"] } } }🔄 Backward Compatibility
✅ No Breaking Changes: All existing Claude Desktop installations continue to work exactly as before
✅ Enhanced Experience: Existing users get improved performance and better error messages
✅ Seamless Migration: No action required for current users
🧪 Testing
📋 Commits Included
Add Claude CLI support with automatic detection and fallback (
8e50814)Remove unused function to fix TypeScript compilation (
dd6e4a9)Refactor installation logic using Strategy Pattern (
a778373)Bump version to 0.6.0 (
ce7ed5c)🎯 Future Roadmap
This architecture enables easy addition of new installation environments:
docker runcommands)kubectl apply).vscode/settings.json)🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com