christmas-mcp-copilot-runner
Version:
A Model Copilot Provider (MCP) for safely executing whitelisted system commands across platforms with automatic VS Code setup
146 lines (109 loc) โข 4.04 kB
Markdown
# VS Code MCP Configuration Troubleshooting
## ๐จ Critical Issue: VS Code UI Defaults to NPX
The VS Code "Add Server..." UI has a known issue where it automatically defaults to `npx` command instead of `node`. This causes performance issues and version conflicts.
### โ The Problem
When you use VS Code's MCP settings UI to add christmas-mcp-copilot-runner, it creates:
```json
{
"command": "npx",
"args": ["christmas-mcp-copilot-runner", "--mcp"]
}
```
This is **WRONG** and causes:
- โ ๏ธ Slow startup times (package resolution overhead)
- โ ๏ธ Potential version conflicts
- โ ๏ธ Network dependency for every startup
- โ ๏ธ Unreliable performance
### โ
The Solution
Use **our automatic setup script** which creates the correct configuration:
```json
{
"command": "node",
"args": ["/path/to/christmas-mcp-copilot-runner/src/index.js", "--mcp"]
}
```
This provides:
- โ
Fast startup (direct execution)
- โ
Consistent performance
- โ
No network dependencies
- โ
Reliable operation
## ๐ง How to Fix Wrong Configuration
### Method 1: Use Our Setup Script (Recommended)
```bash
npm install -g christmas-mcp-copilot-runner
mcp-setup-vscode
```
The setup script will:
1. Detect your npm installation path
2. Create correct VS Code configuration
3. Set up auto-approval
4. Configure all settings properly
### Method 2: Manual Fix in VS Code
1. Open VS Code Settings (Cmd/Ctrl + ,)
2. Search for "mcp"
3. Find "MCP: Servers" section
4. Click "Edit in settings.json"
5. Find your christmas-mcp-copilot-runner entry
6. Change the configuration:
**Change this (WRONG):**
```json
"mcp.servers": {
"christmas-mcp-copilot-runner": {
"command": "npx",
"args": ["christmas-mcp-copilot-runner", "--mcp"]
}
}
```
**To this (CORRECT):**
```json
"mcp.servers": {
"christmas-mcp-copilot-runner": {
"command": "node",
"args": ["/usr/local/lib/node_modules/christmas-mcp-copilot-runner/src/index.js", "--mcp"],
"alwaysAllow": true
}
}
```
### Method 3: Delete and Recreate
1. In VS Code MCP settings, delete the christmas-mcp-copilot-runner server
2. **DO NOT** use "Add Server..." button
3. Run our setup script: `mcp-setup-vscode`
## ๐ How to Find Your Correct Path
Run this command to find your npm global installation:
```bash
npm list -g christmas-mcp-copilot-runner
```
Common paths:
- **macOS:** `/usr/local/lib/node_modules/christmas-mcp-copilot-runner/src/index.js`
- **Windows:** `%APPDATA%\npm\node_modules\christmas-mcp-copilot-runner\src\index.js`
- **Linux:** `/usr/local/lib/node_modules/christmas-mcp-copilot-runner/src/index.js`
## ๐งช Testing Your Configuration
1. Restart VS Code completely (Cmd+Q or Ctrl+Q then reopen)
2. Open a workspace
3. Ask GitHub Copilot: "Use christmas-mcp-copilot-runner to run ls"
4. Check startup time and performance
### Good Performance Indicators:
- โ
Commands execute in under 1 second
- โ
No "resolving package" messages
- โ
Consistent response times
### Bad Performance Indicators:
- โ Long delays before execution (3+ seconds)
- โ "npm WARN" or resolution messages
- โ Inconsistent performance
## ๐จ Never Use VS Code "Add Server..." UI
The VS Code MCP extension UI is broken for npm packages. It will always default to `npx` which is the wrong configuration.
**Always use our setup script instead:**
```bash
mcp-setup-vscode
```
## ๐ Still Having Issues?
1. Check our [troubleshooting guide](./VSCODE_TROUBLESHOOTING.md)
2. Verify your npm installation: `npm list -g christmas-mcp-copilot-runner`
3. Test manually: `christmas-mcp-copilot-runner --mcp`
4. Open an issue on our [GitHub repository](https://github.com/Chr1stm4s/christmas-mcp-copilot-bypass)
## ๐ Summary
- โ **Never** use VS Code "Add Server..." UI for christmas-mcp-copilot-runner
- โ
**Always** use our setup script: `mcp-setup-vscode`
- โ
**Ensure** your configuration uses `"command": "node"`
- โ
**Verify** direct path to src/index.js in args
- โ
**Restart** VS Code completely after configuration changes