This document summarizes the changes made to migrate the MCP Server for VS Code to the N|Solid runtime.
- Added
nsolidconfiguration section with:- Application name:
mcp-server-vscode - Tags:
vscode,mcp,ai-assistant - Tracing enabled by default
- OTLP exporter configuration
- Application name:
- Updated
start:mcpscript to usensolidinstead ofnode - Added
start:mcp:nodescript for fallback to standard Node.js - Added
start:nsolidscript for quick start with auto-configuration
- Added N|Solid environment variable support
- Enhanced logging to display N|Solid configuration on startup
- Added telemetry status reporting
- Improved startup messages with runtime information
- Added comprehensive "N|Solid Runtime Integration" section including:
- What is N|Solid
- Installation instructions (Linux, macOS, Docker)
- Running with N|Solid (quick start, basic usage, environment variables)
- Docker deployment instructions
- Monitoring stack setup
- Verification steps
- Configuration options
- Production-ready Dockerfile using
nodesource/nsolid:krypton-latestbase image - Non-root user for security
- Health check configuration
- N|Solid environment variables pre-configured
- Multi-architecture support (x86 and ARM)
- Complete observability stack including:
- MCP Server for VS Code
- OpenTelemetry Collector
- ClickHouse database
- N|Solid API backend
- N|Solid UI dashboard
- Network configuration for service communication
- Volume persistence for ClickHouse data
- OpenTelemetry Collector configuration
- OTLP receivers (gRPC and HTTP)
- ClickHouse exporter configuration
- Prometheus metrics endpoint
- Batch processing for optimal performance
- Optimized Docker build context
- Excludes unnecessary files (node_modules, test files, etc.)
- Quick start script for running with N|Solid
- Automatic N|Solid installation detection
- OTLP collector auto-detection
- Environment variable setup
- User-friendly output with configuration details
- No changes required to application logic
- Automatic CPU profiling, heap snapshots, and event loop metrics
- Built-in security monitoring
- Distributed tracing with OpenTelemetry
- Real-time metrics collection
- Centralized logging
- Performance monitoring dashboard
- Docker deployment with N|Solid runtime
- Health checks and monitoring
- Multi-architecture support
- Non-root container security
- Quick start script for easy setup
- Comprehensive documentation
- Fallback to standard Node.js if needed
- Auto-detection of monitoring infrastructure
# Quick start with N|Solid
npm run start:nsolid
# Or manual start
npm run start:mcp
# Fallback to Node.js
npm run start:mcp:node# Build and run
docker build -t mcp-server-vscode .
docker run -p 8991:8991 mcp-server-vscode
# Or with full monitoring stack
docker-compose up -d- Check N|Solid version:
nsolid -vv - Open N|Solid UI: http://localhost:3002
- Verify application appears in dashboard
- Check metrics and traces are flowing
N|Solid can be configured via:
- package.json (default configuration)
- Environment variables (override defaults)
- JavaScript API (programmatic control)
| Variable | Default | Description |
|---|---|---|
NSOLID_APPNAME |
mcp-server-vscode | Application name |
NSOLID_TRACING_ENABLED |
1 | Enable distributed tracing |
NSOLID_OTLP |
otlp | OTLP exporter type |
NSOLID_OTLP_CONFIG |
localhost:4318 | OTLP endpoint configuration |
VSCODE_BRIDGE_PORT |
8991 | VS Code bridge port |
- Install N|Solid runtime (if not using Docker)
- Start the monitoring stack (optional):
docker-compose up -d - Run the server:
npm run start:nsolid - Verify in N|Solid UI: http://localhost:3002
# macOS
brew install nsolid
# Linux
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo apt-get install nsolid -y- Verify OTLP collector is running:
docker-compose ps otel-collector - Check collector logs:
docker-compose logs otel-collector - Ensure
NSOLID_TRACING_ENABLED=1is set
- Use service names (e.g.,
otel-collector) instead oflocalhost - Verify containers are on same network:
docker network ls
- N|Solid Documentation: https://nodesource.com/products/nsolid
- OpenTelemetry Documentation: https://opentelemetry.io/docs/
- Migration Guide: See
MIGRATION_GUIDE_FOR_AI_AGENTS.md
Migration completed by GitHub Copilot on March 5, 2026