2025-08-18 11:58:55 +02:00
# MCP Server Troubleshooting Guide
**MCP Server Focus**: Model Context Protocol (MCP) servers provide enhanced capabilities like documentation lookup (Context7), UI generation (Magic), and advanced reasoning (Sequential). This guide covers installation, configuration, and operational troubleshooting for all MCP servers.
**Server-Specific Solutions**: Each MCP server has unique requirements and common failure patterns. This guide provides targeted solutions for each server type and general MCP troubleshooting strategies.
## MCP Server Overview
### Available MCP Servers
**Core MCP Servers:**
- **Context7**: Official documentation lookup and framework patterns
- **Sequential**: Multi-step reasoning and complex analysis
- **Magic**: Modern UI component generation from 21st.dev patterns
- **Playwright**: Browser automation and E2E testing
- **Morphllm**: Pattern-based code editing with token optimization
- **Serena**: Semantic code understanding and project memory
**Server Requirements:**
- Node.js 16.0.0 or higher
- npm or yarn package manager
- Stable network connection for some servers
- Sufficient system memory (2GB+ recommended)
## Installation and Configuration Issues
### Node.js and npm Problems
#### Issue: Node.js Version Incompatibility
**Error Message**: `ERROR: MCP servers require Node.js 16+ but found Node.js 14.x`
**Diagnosis**:
```bash
node --version
npm --version
```
**Solution 1**: Update Node.js (Linux/Ubuntu)
```bash
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
```
**Solution 2**: Use Node Version Manager (nvm)
```bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.bashrc
nvm install node
nvm use node
```
**Solution 3**: Manual Node.js installation
- Download from https://nodejs.org/
- Follow platform-specific installation instructions
**Verification**:
```bash
node --version # Should be 16.0.0+
npm --version # Should be 8.0.0+
```
**Issue: npm Permission Problems**
```bash
# Error message
ERROR: EACCES: permission denied, access '/usr/local/lib/node_modules'
# Solution 1: Configure npm for user directory
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile
source ~/.profile
# Solution 2: Fix npm permissions
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
# Solution 3: Use npx for package execution
npx @context7/mcp -server --version
# Verification
npm list -g --depth=0
npm config get prefix
```
### MCP Server Installation Failures
**Issue: Context7 MCP Server Installation Failed**
```bash
# Error message
ERROR: Failed to install @context7/mcp -server
# Diagnosis
npm list -g @context7/mcp -server
node --version
# Solution 1: Clean npm cache and reinstall
npm cache clean --force
npm install -g @context7/mcp -server
# Solution 2: Use alternative registry
npm install -g @context7/mcp -server --registry https://registry.npmjs.org/
# Solution 3: Manual installation verification
npm info @context7/mcp -server
npm install -g @context7/mcp -server@latest
# Verification
npm list -g @context7/mcp -server
node -e "console.log('Context7 installation test')"
```
**Issue: Sequential MCP Server Dependencies Missing**
```bash
# Error message
ERROR: Sequential MCP server missing required dependencies
# Diagnosis
npm list -g @sequential/mcp -server
npm list -g | grep -E "typescript|@types "
# Solution 1: Install dependencies explicitly
npm install -g typescript @types/node
npm install -g @sequential/mcp -server
# Solution 2: Force reinstall with dependencies
npm uninstall -g @sequential/mcp -server
npm install -g @sequential/mcp -server --save-dev
# Solution 3: Check package integrity
npm audit --global
npm update -g
# Verification
npm list -g @sequential/mcp -server
```
**Issue: Magic UI Generator Installation Problems**
```bash
# Error message
ERROR: @magic/ui -generator installation failed - build dependencies missing
# Diagnosis
npm list -g @magic/ui -generator
which gcc make # Check build tools
# Solution 1: Install build dependencies (Linux)
sudo apt install build-essential python3-dev
# Solution 2: Install build dependencies (macOS)
xcode-select --install
# Solution 3: Use pre-built binaries
npm install -g @magic/ui -generator --ignore-scripts
# Verification
npm list -g @magic/ui -generator
```
## Connection and Communication Issues
### MCP Server Connection Failures
**Issue: Context7 Server Not Connecting**
```bash
# Error message
ERROR: MCP server 'context7' failed to connect
# Diagnosis
# Check Node.js installation
node --version # Should be 16.0.0 or higher
npm list -g @context7/mcp -server
# Check server configuration
cat ~/.claude/CLAUDE.md | grep -i context7
# Solution 1: Restart Claude Code session
# MCP servers restart with Claude Code session restart
# Solution 2: Reconfigure MCP servers
python3 -m SuperClaude install --components mcp --force
# Solution 3: Manual server testing
node -e "console.log('Node.js working')"
npm test @context7/mcp -server
# Solution 4: Check network connectivity
ping context7-server.example.com # If server requires network
curl -I https://context7-api.example.com/health # Health check
# Verification
# Try Context7 functionality in Claude Code
# Should respond to documentation requests
```
**Issue: MCP Server Communication Timeout**
```bash
# Error message
ERROR: MCP server request timeout after 30 seconds
# Diagnosis
# Check network connectivity and server health
ping 8.8.8.8 # Basic connectivity
curl -I https://api.example.com/health # API health
# Check system resources
top
free -h
# Solution 1: Reduce operation complexity
# Break complex tasks into smaller parts
# Solution 2: Restart Claude Code session
# MCP servers restart with Claude Code session restart
# Solution 3: Disable problematic server temporarily
# Use --no-mcp flag for operations
# Solution 4: Increase timeout (if configurable)
# Check MCP server configuration files
# Verification
# Test with simple operations first
# Gradually increase complexity
```
**Issue: Multiple MCP Servers Conflicting**
```bash
# Error message
ERROR: MCP server port conflicts detected
# Diagnosis
netstat -tlnp | grep :8000 # Check port usage
ps aux | grep -E "context7|sequential|magic"
# Solution 1: Sequential server restart
# Restart Claude Code to reset all MCP servers
# Solution 2: Configure different ports
# Edit MCP server configuration files
# Usually in ~/.claude/ or server-specific directories
# Solution 3: Use selective server activation
# Use specific server flags instead of --all-mcp
# Verification
netstat -tlnp | grep -E "8000|8001|8002" # Check port assignments
```
## Server-Specific Troubleshooting
### Context7 Documentation Server
**Issue: Context7 Not Finding Documentation**
```bash
# Symptoms: Context7 activated but returns no documentation
# Diagnosis
# Test Context7 connection
node -e "const c7 = require('@context7/mcp -server'); console.log('Context7 loaded');"
# Solution 1: Update Context7 server
npm update -g @context7/mcp -server
# Solution 2: Clear Context7 cache
rm -rf ~/.context7/cache/ # If cache directory exists
# Solution 3: Use explicit library keywords
# Use specific framework names in requests
# Solution 4: Verify internet connection
curl -I https://docs.react.dev/ # Example API test
# Verification
# Try specific documentation requests
# Should return relevant framework information
```
**Issue: Context7 Returning Outdated Information**
```bash
# Symptoms: Context7 returns old documentation versions
# Solution 1: Update Context7 server
npm uninstall -g @context7/mcp -server
npm install -g @context7/mcp -server@latest
# Solution 2: Clear documentation cache
rm -rf ~/.context7/ # Clear cache if exists
# Solution 3: Force documentation refresh
# Restart Claude Code session completely
# Verification
# Check documentation dates in responses
# Should return current framework versions
```
### Sequential Reasoning Server
**Issue: Sequential Server Internal Errors**
```bash
# Error message
ERROR: Sequential reasoning server encountered internal error
# Diagnosis
# Check Sequential server logs
tail -f ~/.claude/logs/sequential-mcp.log # If logs exist
# Check server installation
npm list -g @sequential/mcp -server
# Solution 1: Restart Claude Code session
# This restarts all MCP servers including Sequential
# Solution 2: Use alternative reasoning approach
# Use native Claude reasoning without MCP servers
# Solution 3: Reinstall Sequential MCP
npm uninstall -g @sequential/mcp -server
npm install -g @sequential/mcp -server@latest
# Solution 4: Check memory availability
free -h # Ensure sufficient memory for complex reasoning
# Verification
# Test with simple analysis tasks first
# Should provide structured reasoning output
```
**Issue: Sequential Server Memory Overload**
```bash
# Symptoms: Sequential server crashes or becomes unresponsive
# Diagnosis
top | grep -E "sequential|node"
free -h
# Solution 1: Reduce analysis complexity
# Break complex problems into smaller parts
# Solution 2: Increase system memory or swap
sudo swapon --show # Check swap status
# Solution 3: Use scope limiting
# Focus analysis on specific components
# Verification
ps aux | grep sequential # Check process status
```
### Magic UI Generator
**Issue: Magic Not Generating UI Components**
```bash
# Symptoms: UI component requests not producing expected output
# Diagnosis
# Check Magic server installation
npm list -g @magic/ui -generator
cat ~/.claude/CLAUDE.md | grep -i magic
# Solution 1: Verify Magic server installation
npm list -g @magic/ui -generator
npm install -g @magic/ui -generator@latest
# Solution 2: Use explicit Magic activation
# Include "component", "UI", or "interface" keywords
# Solution 3: Check component request format
# Use descriptive requests for better Magic activation
# Solution 4: Test Magic server directly
node -e "const magic = require('@magic/ui -generator'); console.log('Magic loaded');"
# Verification
# Should produce complete UI components with modern patterns
```
**Issue: Magic Components Not Framework-Compliant**
```bash
# Symptoms: Generated components don't match framework patterns
# Solution 1: Use framework-specific keywords
# Include "React", "Vue", "Angular" in requests
# Solution 2: Combine with Context7
# Use both Magic and Context7 for framework-compliant components
# Solution 3: Update Magic server
npm update -g @magic/ui -generator
# Verification
# Generated components should follow framework conventions
```
### Playwright Browser Automation
**Issue: Playwright Browser Installation Failures**
```bash
# Error message
ERROR: Playwright browser automation failed - browser not installed
# Diagnosis
npm list -g playwright
npx playwright --version
# Solution 1: Install Playwright browsers
npx playwright install
npx playwright install-deps
# Solution 2: Install specific browsers
npx playwright install chromium
npx playwright install firefox
npx playwright install webkit
# Solution 3: Fix browser dependencies (Linux)
sudo apt-get install libnss3 libatk-bridge2.0-0 libdrm2 libgtk-3-0
# Verification
npx playwright --version
ls ~/.cache/ms-playwright/ # Check browser installations
```
**Issue: Playwright Browser Launch Failures**
```bash
# Error message
ERROR: Browser launch failed - display not available
# Diagnosis
echo $DISPLAY # Check X11 display
ps aux | grep Xvfb # Check virtual display
# Solution 1: Use headless mode
# Set headless: true in Playwright configuration
# Solution 2: Install virtual display (Linux)
sudo apt-get install xvfb
export DISPLAY=:99
Xvfb :99 -screen 0 1024x768x24 &
# Solution 3: Use Docker for browser testing
docker run -it --rm playwright:latest
# Verification
# Should successfully launch browsers in headless mode
```
### Morphllm Pattern Editor
**Issue: Morphllm Pattern Application Failures**
```bash
# Symptoms: Pattern-based edits not applying correctly
# Diagnosis
npm list -g @morphllm/mcp -server
# Solution 1: Update Morphllm server
npm update -g @morphllm/mcp -server
# Solution 2: Use more specific patterns
# Provide explicit pattern descriptions
# Solution 3: Check file permissions
ls -la target-files/ # Ensure write permissions
# Verification
# Pattern edits should be applied consistently across files
```
### Serena Project Memory
**Issue: Serena Session Persistence Failures**
```bash
# Symptoms: Project context not persisting between sessions
# Diagnosis
ls ~/.claude/sessions/ # Check session storage
ls ~/.serena/ # Check Serena-specific storage
# Solution 1: Verify session save operations
# Ensure proper session saving before closing
# Solution 2: Check storage permissions
ls -la ~/.claude/sessions/
chmod 755 ~/.claude/sessions/
# Solution 3: Reinstall Serena server
Fixes (#379)
* Fix: Install only selected MCP servers and ensure valid empty backups
This commit addresses two separate issues:
1. **MCP Installation:** The `install` command was installing all MCP servers instead of only the ones selected by the user. The `_install` method in `setup/components/mcp.py` was iterating through all available servers, not the user's selection. This has been fixed to respect the `selected_mcp_servers` configuration. A new test has been added to verify this fix.
2. **Backup Creation:** The `create_backup` method in `setup/core/installer.py` created an invalid `.tar.gz` file when the backup source was empty. This has been fixed to ensure that a valid, empty tar archive is always created. A test was added for this as well.
Co-authored-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
Co-authored-by: Jules <jules-ai-assistant@users.noreply.github.com>
* Fix: Correct installer validation for MCP and MCP Docs components
This commit fixes a validation issue in the installer where it would incorrectly fail after a partial installation of MCP servers.
The `MCPComponent` validation logic was checking for all "required" servers, regardless of whether they were selected by the user. This has been corrected to only validate the servers that were actually installed, by checking against the list of installed servers stored in the metadata. The metadata storage has also been fixed to only record the installed servers.
The `MCPDocsComponent` was failing validation because it was not being registered in the metadata if no documentation files were installed. This has been fixed by ensuring the post-installation hook runs even when no files are copied.
New tests have been added for both components to verify the corrected logic.
Co-authored-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
Co-authored-by: Jules <jules-ai-assistant@users.noreply.github.com>
* Fix: Allow re-installation of components and correct validation logic
This commit fixes a bug that prevented new MCP servers from being installed on subsequent runs of the installer. It also fixes the validation logic that was causing failures after a partial installation.
The key changes are:
1. A new `is_reinstallable` method has been added to the base `Component` class. This allows certain components (like the `mcp` component) to be re-run even if they are already marked as installed.
2. The installer logic has been updated to respect this new method.
3. The `MCPComponent` now correctly stores only the installed servers in the metadata.
4. The validation logic for `MCPComponent` and `MCPDocsComponent` has been corrected to prevent incorrect failures.
New tests have been added to verify all aspects of the new logic.
Co-authored-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
Co-authored-by: Jules <jules-ai-assistant@users.noreply.github.com>
* feat: Display authors in UI header and update author info
This commit implements the user's request to display author names and emails in the UI header of the installer.
The key changes are:
1. The `__email__` field in `SuperClaude/__init__.py` has been updated to include both authors' emails.
2. The `display_header` function in `setup/utils/ui.py` has been modified to read the author and email information and display it.
3. A new test has been added to `tests/test_ui.py` to verify the new UI output.
Co-authored-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
Co-authored-by: Jules <jules-ai-assistant@users.noreply.github.com>
* feat: Version bump to 4.1.0 and various fixes
This commit prepares the project for the v4.1.0 release. It includes a version bump across all relevant files and incorporates several bug fixes and feature enhancements from recent tasks.
Key changes in this release:
- **Version Bump**: The project version has been updated from 4.0.9 to 4.1.0 in all configuration files, documentation, and source code.
- **Installer Fixes**:
- Components can now be marked as `reinstallable`, allowing them to be re-run on subsequent installations. This fixes a bug where new MCP servers could not be added.
- The validation logic for `mcp` and `mcp_docs` components has been corrected to avoid incorrect failures.
- A bug in the backup creation process that created invalid empty archives has been fixed.
- **UI Enhancements**:
- Author names and emails are now displayed in the installer UI header.
- **Metadata Updates**:
- Mithun Gowda B has been added as an author.
- **New Tests**:
- Comprehensive tests have been added for the installer logic, MCP components, and UI changes to ensure correctness and prevent regressions.
Co-authored-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
Co-authored-by: Jules <jules-ai-assistant@users.noreply.github.com>
* fix: Resolve dependencies for partial installs and other fixes
This commit addresses several issues, the main one being a dependency resolution failure during partial installations.
Key changes:
- **Dependency Resolution**: The installer now correctly resolves the full dependency tree when a user requests to install a subset of components. This fixes the "Unknown component: core" error.
- **Component Re-installation**: A new `is_reinstallable` flag allows components like `mcp` to be re-run on subsequent installs, enabling the addition of new servers.
- **Validation Logic**: The validation for `mcp` and `mcp_docs` has been corrected to avoid spurious failures.
- **UI and Metadata**: Author information has been added to the UI header and source files.
- **Version Bump**: The project version has been updated to 4.1.0.
- **Tests**: New tests have been added to cover all the above changes.
Co-authored-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
Co-authored-by: Jules <jules-ai-assistant@users.noreply.github.com>
* fix: Installer fixes and version bump to 4.1.0
This commit includes a collection of fixes for the installer logic, UI enhancements, and a version bump to 4.1.0.
Key changes:
- **Dependency Resolution**: The installer now correctly resolves the full dependency tree for partial installations, fixing the "Unknown component: core" error.
- **Component Re-installation**: A new `is_reinstallable` flag allows components like `mcp` to be re-run to add new servers.
- **MCP Installation**: The non-interactive installation of the `mcp` component now correctly prompts the user to select servers.
- **Validation Logic**: The post-installation validation logic has been corrected to only validate components from the current session and to use the correct list of installed servers.
- **UI & Metadata**: Author information has been added to the UI and source files.
- **Version Bump**: The project version has been updated from 4.0.9 to 4.1.0 across all files.
- **Tests**: New tests have been added to cover all the bug fixes.
Co-authored-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
Co-authored-by: Jules <jules-ai-assistant@users.noreply.github.com>
* feat: Add --authors flag and multiple installer fixes
This commit introduces the `--authors` flag to display author information and includes a collection of fixes for the installer logic.
Key changes:
- **New Feature**: Added an `--authors` flag that displays the names, emails, and GitHub usernames of the project authors.
- **Dependency Resolution**: Fixed a critical bug where partial installations would fail due to unresolved dependencies.
- **Component Re-installation**: Added a mechanism to allow components to be "reinstallable", fixing an issue that prevented adding new MCP servers on subsequent runs.
- **MCP Installation**: The non-interactive installation of the `mcp` component now correctly prompts for server selection.
- **Validation Logic**: Corrected the post-installation validation to prevent spurious errors.
- **Version Bump**: The project version has been updated to 4.1.0.
- **Metadata**: Author and GitHub information has been added to the source files.
- **UI**: The installer header now displays author information.
- **Tests**: Added new tests for all new features and bug fixes.
Co-authored-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
Co-authored-by: Jules <jules-ai-assistant@users.noreply.github.com>
* Add Docker support and framework enhancements
- Add serena-docker.json MCP configuration
- Update MCP configs and installer components
- Enhance CLI commands with new functionality
- Add symbols utility for framework operations
- Improve UI and logging components
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* Bump version from 4.1.1 to 4.1.2
- Update version across all package files
- Update documentation and README files
- Update Python module version strings
- Update feature configuration files
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Co-Authored-By: Mithun Gowda B <mithungowda.b7411@gmail.com>
* Bump version from 4.1.2 to 4.1.3
- Update version across all package files
- Update documentation and README files
- Update Python module version strings
- Update feature configuration files
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Co-Authored-By: Mithun Gowda B <mithungowda.b7411@gmail.com>
* Fix home directory detection for immutable distros
- Add get_home_directory() function to handle /var/home/$USER paths
- Support Fedora Silverblue, Universal Blue, and other immutable distros
- Replace all Path.home() calls throughout the setup system
- Add fallback methods for edge cases and compatibility
- Create test script for immutable distro validation
Fixes:
- Incorrect home path detection on immutable Linux distributions
- Installation failures on Fedora Silverblue/Universal Blue
- Issues with Claude Code configuration paths
Technical changes:
- New get_home_directory() in utils/environment.py
- Updated all CLI commands, validators, and core components
- Maintains backward compatibility with standard systems
- Robust fallback chain for edge cases
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Co-Authored-By: Mithun Gowda B <mithungowda.b7411@gmail.com>
* Fix circular import and complete immutable distro support
- Move get_home_directory() to separate paths.py module
- Resolve circular import between environment.py and logger.py
- Update all import statements across the setup system
- Verify functionality with comprehensive testing
Technical changes:
- Created setup/utils/paths.py for path utilities
- Updated imports in all affected modules
- Maintains full backward compatibility
- Fixes installation on immutable distros
Testing completed:
- ✅ Basic home directory detection works
- ✅ Installation system integration works
- ✅ Environment utilities integration works
- ✅ Immutable distro logic validated
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
Co-Authored-By: Mithun Gowda B <mithungowda.b7411@gmail.com>
* Fix mcp_docs installation bugs
- Fix mcp_docs component incorrectly marking as installed when no MCP servers selected
- Add MCP server selection prompt when mcp_docs component is explicitly requested
- Return False instead of calling _post_install() when no servers selected or files found
- Add user-friendly warning when mcp_docs requested without server selection
- Remove mcp_docs from installation when no servers are available
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* Fix MCP server name mapping for documentation files
- Add mapping for sequential-thinking -> MCP_Sequential.md
- Add mapping for morphllm-fast-apply -> MCP_Morphllm.md
- Ensures mcp_docs installation works with all MCP server naming conventions
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* Enable mcp_docs component reinstallation
- Add is_reinstallable() method returning True to allow repeat installations
- Fixes issue where mcp_docs was skipped on subsequent installation attempts
- Enables users to change MCP server selections and update documentation
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* Fix repeat installation issues for mcp_docs
- Ensure mcp component is auto-added when mcp_docs is selected with servers
- Fix component_files tracking to only include successfully copied files
- Ensures CLAUDE.md gets properly updated with MCP documentation imports
- Fixes issue where MCP servers weren't installed on repeat attempts
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* Fix MCP component metadata tracking and debug logging
- Fix servers_count to track actually installed servers instead of total available
- Add installed_servers list to metadata for better tracking
- Add debug logging to trace component auto-addition
- Ensures MCP component appears properly in metadata when servers are installed
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* Fix pyproject.toml license format and add missing classifier
- Fix license format from string to {text = "MIT"} format
- Add missing "License :: OSI Approved :: MIT License" classifier
- Fix indentation consistency in classifiers section
- Resolves setup.py installation errors and PEP 621 compliance
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* Fix MCP incremental installation and auto-detection system
PROBLEM FIXED:
- MCP component only registered servers selected during current session
- mcp_docs component only installed docs for newly selected servers
- Users had to reinstall everything when adding new MCP servers
- Installation failed if no servers selected but servers existed
SOLUTION IMPLEMENTED:
- Add auto-detection of existing MCP servers from config files (.claude.json, claude_desktop_config.json)
- Add CLI detection via 'claude mcp list' output parsing
- Add smart server merging (existing + selected + previously installed)
- Add server name normalization for common variations
- Fix CLI logic to allow mcp_docs installation without server selection
- Add graceful error handling for corrupted configs
KEY FEATURES:
✅ Auto-detects existing MCP servers from multiple config locations
✅ Supports incremental installation (add new servers without breaking existing)
✅ Works with or without --install-dir argument
✅ Handles server name variations (sequential vs sequential-thinking, etc.)
✅ Maintains metadata persistence across installation sessions
✅ Graceful fallback when config files are corrupted
✅ Compatible with both interactive and non-interactive modes
TESTED SCENARIOS:
- Fresh installation with no MCP servers ✅
- Auto-detection with existing servers ✅
- Incremental server additions ✅
- Mixed mode (new + existing servers) ✅
- Error handling with corrupted configs ✅
- Default vs custom installation directories ✅
- Interactive vs command-line modes ✅
Files changed:
- setup/cli/commands/install.py: Allow mcp_docs auto-detection mode
- setup/components/mcp.py: Add comprehensive auto-detection logic
- setup/components/mcp_docs.py: Add auto-detection for documentation
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* Integrate SuperClaude framework flags into help command
ENHANCEMENT:
- Add comprehensive flag documentation to /sc:help command
- Include all 25 SuperClaude framework flags with descriptions
- Organize flags into logical categories (Mode, MCP, Analysis, Execution, Output)
- Add practical usage examples showing flag combinations
- Include flag priority rules and precedence hierarchy
NEW SECTIONS ADDED:
✅ Mode Activation Flags (5 flags): --brainstorm, --introspect, --task-manage, --orchestrate, --token-efficient
✅ MCP Server Flags (8 flags): --c7, --seq, --magic, --morph, --serena, --play, --all-mcp, --no-mcp
✅ Analysis Depth Flags (3 flags): --think, --think-hard, --ultrathink
✅ Execution Control Flags (6 flags): --delegate, --concurrency, --loop, --iterations, --validate, --safe-mode
✅ Output Optimization Flags (3 flags): --uc, --scope, --focus
✅ Flag Priority Rules: Clear hierarchy and precedence guidelines
✅ Usage Examples: 4 practical examples showing real-world flag combinations
IMPACT:
- Users can now discover all SuperClaude capabilities from /sc:help
- Single source of truth for commands AND flags
- Improved discoverability of advanced features
- Clear guidance on flag usage and combinations
- Help content nearly doubled (68 → 148 lines) with valuable reference information
Files changed:
- SuperClaude/Commands/help.md: Integrate FLAGS.md content with structured tables and examples
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* Remove non-existent commands from modes.md documentation
PROBLEM FIXED:
- Documentation contained references to fake/non-existent commands
- Commands like sc:fix, sc:simple-pix, sc:update, sc:develop, sc:modernize, sc:simple-fix don't exist in CLI
- Confusing users who try to use these commands and get errors
- Inconsistency between documentation and actual SuperClaude command availability
COMMANDS REMOVED/REPLACED:
❌ /sc:simple-fix → ✅ /sc:troubleshoot (real command)
❌ /sc:develop → ✅ /sc:implement (real command)
❌ /sc:modernize → ✅ /sc:improve (real command)
AFFECTED FILES:
- Docs/User-Guide/modes.md: Fixed all non-existent command references
- Docs/User-Guide-jp/modes.md: Fixed Japanese translation with same issues
- Docs/User-Guide-zh/modes.md: Fixed Chinese translation with same issues
VERIFICATION:
✅ All remaining /sc: commands verified to exist in SuperClaude/Commands/
✅ No more references to fake commands in any language version
✅ Examples now use only real, working SuperClaude commands
✅ User experience improved - no more confusion from non-working commands
REAL COMMANDS REFERENCED:
- /sc:analyze, /sc:brainstorm, /sc:help, /sc:implement
- /sc:improve, /sc:reflect, /sc:troubleshoot
- All verified to exist in CLI implementation
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* Version bump to 4.1.4
CHANGELOG:
✅ Added comprehensive flag documentation to /sc:help command
✅ Fixed MCP incremental installation and auto-detection system
✅ Cleaned up documentation by removing non-existent commands
✅ Enhanced user experience with complete capability reference
VERSION UPDATES:
- Updated VERSION file: 4.1.3 → 4.1.4
- Updated pyproject.toml: 4.1.3 → 4.1.4
- Updated package.json: 4.1.3 → 4.1.4
- Updated all Python __init__.py fallback versions
- Updated all documentation references across all languages
- Updated setup/data/features.json component versions
- Updated CHANGELOG.md with comprehensive 4.1.4 release notes
SCOPE OF CHANGES:
📦 Core files: VERSION, pyproject.toml, package.json, __init__.py files
📚 Documentation: All .md files across English, Japanese, Chinese
🔧 Setup files: features.json, base.py version references
📝 Project files: README files, CHANGELOG, SECURITY, CONTRIBUTING
VERIFICATION:
✅ No remaining 4.1.3 references found
✅ 29 files now properly reference 4.1.4
✅ All language versions consistently updated
✅ Package metadata properly versioned for distribution
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* Fix Serena MCP installation to use uvx instead of uv run
- Update serena.json config template to use uvx with git+https://github.com/oraios/serena
- Fix documentation across all language versions (EN, JP, ZH) to show correct uvx syntax
- Update mcp-server-guide.md troubleshooting section with proper Serena reinstallation commands
- Remove obsolete npm-based installation references
This resolves GitHub Codespace installation failures where 'uv run serena' failed
because serena wasn't locally installed. The uvx approach correctly fetches from
the official GitHub repository as documented by Serena maintainers.
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
* some fixes
* Update pyproject.toml
Version
* Update VERSION
Fix
---------
Signed-off-by: Mithun Gowda B <mithungowda.b7411@gmail.com>
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Jules <jules-ai-assistant@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Happy <yesreply@happy.engineering>
2025-09-20 11:00:38 +02:00
# Remove existing Serena registration
claude mcp remove serena
# Reinstall using uvx
uvx --from git+https://github.com/oraios/serena serena --help
# Re-register with Claude
claude mcp add serena -- uvx --from git+https://github.com/oraios/serena serena start-mcp-server --context ide-assistant
2025-08-18 11:58:55 +02:00
# Verification
# Session context should persist across Claude Code restarts
```
## Performance and Optimization
### MCP Server Performance Issues
**Issue: Slow MCP Server Response Times**
```bash
# Symptoms: MCP server operations causing delays
# Diagnosis
# Check MCP server installation and health
npm list -g | grep -E "context7|sequential|magic|playwright"
top | grep node
# Solution 1: Selective MCP server usage
# Use only needed servers for specific tasks
# Solution 2: Restart Claude Code session
# This restarts all MCP servers fresh
# Solution 3: Local fallback mode
# Use --no-mcp flag for pure native operations
# Solution 4: Update all MCP servers
npm update -g
# Verification
time node -e "console.log('Node.js speed test')"
2025-08-22 19:18:44 +02:00
# Should complete successfully
2025-08-18 11:58:55 +02:00
```
**Issue: MCP Server Memory Leaks**
```bash
# Symptoms: Increasing memory usage over time
# Diagnosis
top | grep node # Monitor Node.js processes
ps aux --sort=-%mem | head -10
# Solution 1: Regular Claude Code session restarts
2025-08-22 19:18:44 +02:00
# Restart sessions periodically during heavy usage
2025-08-18 11:58:55 +02:00
# Solution 2: Monitor specific servers
htop # Monitor individual MCP server processes
# Solution 3: Use memory-efficient patterns
# Avoid keeping large data sets in MCP server memory
# Verification
free -h # Monitor memory usage trends
```
### Resource Management
**Issue: Multiple MCP Servers Competing for Resources**
```bash
# Symptoms: System slowdown when multiple servers active
# Diagnosis
top | grep -E "node|mcp"
iostat 1 3 # Check I/O usage
# Solution 1: Use targeted server activation
# Activate only needed servers per task
# Solution 2: Increase system resources
# Add more RAM or CPU cores if possible
# Solution 3: Queue MCP operations
# Avoid simultaneous heavy operations
# Solution 4: Use MCP server priorities
# Configure resource allocation in MCP settings
# Verification
top # Monitor resource usage during operations
```
## Advanced MCP Configuration
### Custom MCP Server Configuration
**Issue: Default MCP Configuration Not Optimal**
```bash
# Symptoms: MCP servers not performing optimally for specific use cases
# Solution 1: Locate configuration files
find ~/.claude/ -name "*mcp*" -type f
find ~/.config/ -name "*mcp*" -type f
# Solution 2: Customize server settings
# Edit server-specific configuration files
# Common locations: ~/.claude/mcp-config.json
# Solution 3: Environment variable configuration
export MCP_CONTEXT7_TIMEOUT=60
export MCP_SEQUENTIAL_MEMORY_LIMIT=2048
# Verification
# Test with custom configuration
# Should show improved performance for specific use cases
```
**Issue: MCP Server Load Balancing**
```bash
# Symptoms: Uneven load distribution across MCP servers
# Solution 1: Configure server priorities
# Edit MCP configuration to balance loads
# Solution 2: Use round-robin server selection
# Implement rotation logic in server calls
# Solution 3: Monitor server performance
# Track response times and adjust accordingly
# Verification
# Observe balanced resource usage across servers
```
## Debugging and Diagnostics
### MCP Server Health Monitoring
**Comprehensive MCP Health Check:**
```bash
# MCP Server System Diagnostics
echo "=== MCP Server Health Check ==="
# Node.js environment
echo "Node.js version: $(node --version)"
echo "npm version: $(npm --version)"
# Server installations
echo "=== Installed MCP Servers ==="
npm list -g | grep -E "context7|sequential|magic|playwright|morphllm|serena"
# Process monitoring
echo "=== Running MCP Processes ==="
ps aux | grep -E "node.*mcp|mcp.*server" | head -5
# Resource usage
echo "=== Resource Usage ==="
echo "Memory: $(free -h | grep Mem | awk '{print $3 "/" $2}')"
echo "CPU Load: $(uptime | awk -F'load average:' '{print $2}')"
# Network connectivity (if required)
echo "=== Network Status ==="
ping -c 1 8.8.8.8 > /dev/null & & echo "✅ Network OK" || echo "❌ Network Issue"
```
**MCP Server Functionality Test:**
```bash
# Test each MCP server individually
echo "=== MCP Server Functionality Test ==="
# Context7 test
if npm list -g @context7/mcp -server > /dev/null 2>&1; then
echo "✅ Context7 installed"
else
echo "❌ Context7 missing"
fi
# Sequential test
if npm list -g @sequential/mcp -server > /dev/null 2>&1; then
echo "✅ Sequential installed"
else
echo "❌ Sequential missing"
fi
# Magic test
if npm list -g @magic/ui -generator > /dev/null 2>&1; then
echo "✅ Magic installed"
else
echo "❌ Magic missing"
fi
# Playwright test
if npx playwright --version > /dev/null 2>&1; then
echo "✅ Playwright installed"
else
echo "❌ Playwright missing"
fi
```
### MCP Server Log Analysis
**Log Collection and Analysis:**
```bash
# Collect MCP server logs
echo "=== MCP Server Logs ==="
# Check common log locations
find ~/.claude/ -name "*.log" -type f 2>/dev/null
find /tmp/ -name "*mcp*.log" -type f 2>/dev/null
find /var/log/ -name "*mcp*.log" -type f 2>/dev/null
# Check npm logs
npm config get logs-max
ls ~/.npm/_logs/ 2>/dev/null | tail -5
# System logs for Node.js processes
journalctl -u node* --since "1 hour ago" 2>/dev/null | tail -10
```
## Emergency Recovery
### Complete MCP Reset
**Full MCP Server Reset Procedure:**
```bash
# Emergency MCP Reset
echo "=== Emergency MCP Server Reset ==="
# Step 1: Stop all Claude Code sessions
echo "Stop all Claude Code sessions and wait 30 seconds"
# Step 2: Backup current state
cp -r ~/.claude ~/.claude.mcp.backup.$(date +%Y%m%d)
# Step 3: Remove all MCP servers
npm list -g | grep -E "context7|sequential|magic|playwright|morphllm|serena" | awk '{print $2}' | xargs npm uninstall -g
# Step 4: Clear npm cache
npm cache clean --force
# Step 5: Reinstall MCP servers
python3 -m SuperClaude install --components mcp --force
# Step 6: Verification
npm list -g | grep -E "context7|sequential|magic|playwright|morphllm|serena"
# Step 7: Test functionality
echo "Test MCP servers in Claude Code after restart"
```
## Related Resources
### MCP-Specific Documentation
2025-10-16 00:37:39 +09:00
- **Core SuperClaude Guide**: [../user-guide/mcp-servers.md ](../user-guide/mcp-servers.md ) - MCP server overview and usage
2025-08-18 13:01:14 +02:00
- **Common Issues**: [common-issues.md ](./common-issues.md ) - General troubleshooting procedures
- **Diagnostic Reference**: [diagnostic-reference.md ](./diagnostic-reference.md ) - Advanced diagnostic procedures
2025-08-18 11:58:55 +02:00
### External Resources
- **Node.js Official**: [https://nodejs.org/ ](https://nodejs.org/ ) - Node.js installation and documentation
- **npm Documentation**: [https://docs.npmjs.com/ ](https://docs.npmjs.com/ ) - Package manager documentation
- **Playwright Guide**: [https://playwright.dev/ ](https://playwright.dev/ ) - Browser automation documentation
### Support Channels
- **GitHub Issues**: [MCP-specific problems ](https://github.com/SuperClaude-Org/SuperClaude_Framework/issues )
- **GitHub Discussions**: [MCP server community support ](https://github.com/SuperClaude-Org/SuperClaude_Framework/discussions )
---
**MCP Server Priority**: When troubleshooting, address servers in order of dependency: Node.js → npm → individual servers → Claude Code integration. Most MCP issues resolve with proper Node.js setup and server reinstallation.
**Verification Pattern**: After MCP solutions, always verify with:
- ✅ `node --version` - Should be 16.0.0+
- ✅ `npm list -g | grep mcp` - Should show installed servers
- ✅ Test server functionality in Claude Code - Should respond without errors