@nexlayer/mcp-install
v0.1.8
Published
One command to install the Nexlayer MCP for all your AI coding tools
Downloads
858
Readme
@nexlayer/mcp-install
One command to install the Nexlayer MCP server for all your AI coding tools.
Usage
npx @nexlayer/mcp-installOr with flags:
npx @nexlayer/mcp-install --project # Install for current project only
npx @nexlayer/mcp-install --restore # Restore configs from backup (undo install)
npx @nexlayer/mcp-install --dev # Use local dev servers
npx @nexlayer/mcp-install --help # Show helpSupported AI Tools
The installer auto-detects which tools are installed by checking their config directories:
| Tool | Config Location |
|---|---|
| Claude Code | ~/.claude/ |
| Cursor | ~/.cursor/ |
| VS Code | ~/Library/Application Support/Code/User/ (macOS) |
| Windsurf | ~/.codeium/windsurf/ |
| Antigravity | ~/Library/Application Support/Antigravity/User/ (macOS) |
| Zed | ~/.config/zed/ |
| Amazon Q | ~/.aws/amazonq/ |
Cross-platform support: macOS, Windows, and Linux paths are all handled.
How It Works
- Detect — Scans for installed AI coding tools
- Authenticate — Opens browser for sign in (if auth server is available)
- Configure — Writes MCP server config to each tool's config file
If the auth server is unavailable, the installer skips authentication and you can authenticate from within your coding tool later.
Config Formats
Different tools use different config formats:
- Claude Code / Cursor / Windsurf / Antigravity:
mcpServersin JSON config - VS Code:
mcp.serversinmcp.json - Zed:
context_serversinsettings.json - Amazon Q:
mcpServerswithcommandLineformat
Architecture
├── bin.js # CLI entry point (ASCII banner, flag parsing, main flow)
├── lib/
│ ├── detect.js # AI tool detection (7 tools, cross-platform)
│ ├── auth.js # Device auth flow (browser-based)
│ ├── config.js # Per-tool config writers (read/merge/write JSON)
│ └── env.js # Environment config (MCP URL, auth URL)Environment
- MCP Server:
https://mcp.claude.nexlayer.ai/api/mcp - Server Name:
nexlayer-mcp - Node.js: >= 18 required
