npmplus-mcp-server
Version:
Production-ready MCP server for intelligent JavaScript package management. Works with Claude, Windsurf, Cursor, VS Code, and any MCP-compatible AI editor.
189 lines (156 loc) • 5.25 kB
Markdown
# NPM Plus MCP Configuration Summary
## ✅ Fixed Issues
### 1. **Server Name Consistency**
- Updated all configurations to use **`npmplus-mcp`** instead of `javascript-package-manager`
- Fixed in:
- ✅ `.windsurfrc`
- ✅ `.cursorrules`
- ✅ `README.md` (all 7 configuration examples)
- ✅ `src/constants.ts`
- ✅ Netlify functions
- ✅ Landing page website (all configurations)
- ✅ JavaScript copy function
### 2. **Fixed Duplicate Transport Fields**
- Removed duplicate `"transport": "http"` entries in README.md
- All JSON configurations now valid
### 3. **NPX Installation Support**
- ✅ Added NPX installation option like puppeteer MCP server
- ✅ Updated `.windsurfrc` to use NPX by default
- ✅ Created `.windsurfrc.npx` configuration file
- ✅ Added NPX tab to website landing page
### 4. **Windsurf Configuration Files**
- ✅ `.windsurfrc` - NPX installation (recommended)
- ✅ `.windsurfrc.hosted` - Hosted service configuration
- ✅ `.windsurfrc.npx` - NPX installation configuration
- ✅ `docs/WINDSURF_SETUP.md` - Complete setup guide
### 5. **Website Landing Page Updates**
- ✅ Updated all configuration examples with correct server name
- ✅ Added "Hosted Service" and "NPX Install" tabs
- ✅ Fixed JavaScript copy function
- ✅ Improved configuration explanations
## 🔧 Configuration Files Ready
### For Windsurf (Hosted Service)
**File: `.windsurfrc.hosted`**
```json
{
"mcp": {
"servers": {
"npmplus-mcp": {
"transport": "http",
"url": "https://api.npmplus.dev/mcp",
"description": "NPM Plus - JavaScript package management via hosted service"
}
}
}
}
```
### For Windsurf (NPX Installation - Recommended)
**File: `.windsurfrc`**
```json
{
"mcp": {
"servers": {
"npmplus-mcp": {
"command": "npx",
"args": [
"-y",
"npmplus-mcp-server"
],
"disabled": false,
"description": "NPM Plus - JavaScript package management via npx"
}
}
}
}
```
### For Windsurf (Local Development)
**File: `.windsurfrc.local`**
```json
{
"mcp": {
"servers": {
"npmplus-mcp": {
"command": "node",
"args": ["./dist/index.js"],
"cwd": "./",
"description": "NPM Plus - JavaScript package management with NPM, Yarn, and pnpm support"
}
}
}
}
```
### For Cursor
**File: `.cursorrules`** - Complete setup with configuration examples and usage guide
## 🚀 Quick Setup Instructions
### Windsurf Setup
1. **For hosted service**: `cp .windsurfrc.hosted .windsurfrc`
2. **For local dev**: Use existing `.windsurfrc` (already configured)
3. **Restart Windsurf**
4. **Test**: Ask "Search for React testing libraries"
### Cursor Setup
1. **Check `.cursorrules`** - Everything you need is documented there
2. **Add to Cursor MCP settings**:
```json
{
"mcp": {
"servers": {
"npmplus-mcp": {
"transport": "http",
"url": "https://api.npmplus.dev/mcp"
}
}
}
}
```
## 📋 What You'll See in Windsurf
After proper configuration, Windsurf will have access to these MCP tools:
### 🔍 **Package Search & Info**
- `search_packages` - Search npm registry with intelligent scoring
- `package_info` - Get detailed package metadata
### 📦 **Package Management** (Local only)
- `install_packages` - Install with dev/global options
- `update_packages` - Update to latest versions
- `remove_packages` - Clean removal
### 🔒 **Security & Analysis**
- `audit_dependencies` - Vulnerability scanning
- `check_vulnerability` - Check specific packages
- `check_bundle_size` - Analyze package size impact
- `download_stats` - Get popularity metrics
### 🛠️ **Advanced Analysis** (Local only)
- `dependency_tree` - Visualize relationships
- `list_licenses` - License compliance
- `analyze_dependencies` - Detect circular deps
## 🧪 Test Commands
**Package Search:**
- "Search for React form validation libraries"
- "Find alternatives to moment.js"
**Package Info:**
- "What's the latest version of express?"
- "Show me information about lodash"
**Security:**
- "Check if lodash has any security vulnerabilities"
- "Audit my dependencies for security issues"
**Performance:**
- "What's the bundle size of lodash?"
- "Check bundle size impact of adding axios"
**Management (Local only):**
- "Install typescript as a dev dependency"
- "Update all my packages"
## 🔍 Troubleshooting
### Windsurf Not Showing Tools
1. **Restart Windsurf** after config changes
2. **Check `.windsurfrc` location** (project root)
3. **Validate JSON syntax**
4. **Check Windsurf console** for errors
### Hosted Service Issues
1. **Test connectivity**: Visit https://api.npmplus.dev/health
2. **Check URL**: Ensure correct endpoint in config
### Local Development Issues
1. **Build first**: `npm run build`
2. **Check paths**: Ensure `./dist/index.js` exists
3. **Node version**: Requires Node.js 16+
## 📚 Documentation
- **Complete setup guide**: `docs/WINDSURF_SETUP.md`
- **Project README**: `README.md` (now fixed with correct server names)
- **Cursor integration**: `.cursorrules` file
All configurations now use the consistent **`npmplus-mcp`** server name!