MCP IDE Integration
This guide shows how to connect IDEs and agents to the LanOnasis MCP server.
π Web IDE Support (NEW!)β
The LanOnasis Memory Assistant now works in web-based IDEs:
- β VSCode for Web (vscode.dev)
- β GitHub.dev (git.dev)
- β Cursor Web (coming soon)
This enables seamless memory management and context synchronization directly in your browser-based development environment.
Connection Optionsβ
Remote (Recommended)β
Production Endpoint: https://mcp.lanonasis.com
Best for:
- Stable workflows
- Team sharing
- Production reliability
- Web IDEs (vscode.dev, github.dev)
Local (Development)β
Local Endpoint: Started via CLI
Best for:
- Development and testing
- New feature experimentation
- Offline work
- Custom configurations
# Start local MCP server
lanonasis mcp-server start --http --port 3001
# Or use auto-connect
lanonasis mcp connect --local
Authenticationβ
OAuth 2.0 with PKCE (Recommended)β
Secure browser-based authentication with automatic token management:
# Initiate OAuth flow
lanonasis auth login
# Check status with live profile
lanonasis auth status
# View your profile
lanonasis whoami
Benefits:
- β No manual token management
- β Automatic refresh before expiry
- β Secure PKCE flow
- β OS-level credential storage
Device Flow (Headless)β
For environments without browser access:
lanonasis auth login --device
API Key (Alternative)β
For automation and CI/CD:
lanonasis auth login --vendor-key <your-key>
IDE-Specific Setupβ
VSCode Desktopβ
Extension: LanOnasis Memory Assistant v2.1.1+
Installation:
# From VSCode Extensions Marketplace
# Search: "LanOnasis"
# Or via CLI
code --install-extension LanOnasis.lanonasis-memory
Configuration:
{
"lanonasis.apiUrl": "https://api.lanonasis.com",
"lanonasis.gatewayUrl": "https://api.lanonasis.com",
"lanonasis.useGateway": true,
"lanonasis.authUrl": "https://auth.lanonasis.com",
"lanonasis.enableMCP": true,
"lanonasis.mcpAutoDiscover": true,
"lanonasis.websocketUrl": "wss://mcp.lanonasis.com/ws",
"lanonasis.transportPreference": "auto",
"lanonasis.useEnhancedUI": true,
"lanonasis.preferCLI": true,
"lanonasis.verboseLogging": false
}
Authentication:
- Press
Cmd+Shift+P(orCtrl+Shift+P) - Run:
Lanonasis: Authenticate - Select "OAuth (Browser)" or "API Key"
- Follow the prompts
Keyboard Shortcuts:
| Shortcut | Action |
|---|---|
Ctrl+Shift+M | Search memories |
Ctrl+Shift+Alt+M | Create memory from selection |
Ctrl+Shift+K | Manage API keys |
F1 β "Lanonasis" | Access all commands |
VSCode Web (vscode.dev & github.dev) β¨ NEWβ
Extension: LanOnasis Memory Assistant v2.1.1+
Installation:
- Open VSCode for Web (vscode.dev) or GitHub.dev
- Go to Extensions (Ctrl+Shift+X)
- Search: "LanOnasis Memory Assistant"
- Click "Install"
Features Available:
- β Memory search and retrieval
- β Memory creation from selection
- β Real-time sync
- β API key management
- β Chat participant integration
- β Enhanced React UI (experimental)
Limited Features:
- β οΈ Some features may require workspace trust
- β οΈ Local file system access limited in web context
Configuration: Same as VSCode Desktop, accessible via:
- Settings (Ctrl+,)
- Search: "LanOnasis"
- Configure endpoints and authentication
Authentication in Web:
- Open Command Palette (
Ctrl+Shift+P) - Run:
Lanonasis: Authenticate - Select "OAuth (Browser)" - recommended for web
- Browser window opens for authentication
- Return to VSCode Web - authenticated!
Web-Specific Notes:
- Uses browser's secure storage
- Credentials persist across sessions
- Works in private/incognito mode (credentials cleared on close)
- Requires internet connection for API access
Cursorβ
Extension: Built-in MCP support
Configuration:
- Open Cursor Settings
- Navigate to MCP
- Add new MCP server:
- Name:
LanOnasis Memory - Type:
HTTPorWebSocket - URL:
https://mcp.lanonasis.com - Auth: Bearer token (from OAuth or API key)
- Name:
Alternative - CLI Integration:
# Start local MCP server
lanonasis mcp-server start --http --port 3001
# Configure Cursor to use localhost:3001
Windsurfβ
Extension: Built-in MCP support
Configuration:
- Open Windsurf Settings
- Navigate to MCP Servers
- Add configuration:
{
"mcpServers": {
"lanonasis": {
"url": "https://mcp.lanonasis.com",
"transport": "websocket",
"auth": {
"type": "bearer",
"token": "<your-token>"
}
}
}
}
Local Development:
# Start local server
lanonasis mcp-server start --http --port 3001
# Configure Windsurf to use local endpoint
Choosing Local vs Remoteβ
Use Remote When:β
- β Production workflows
- β Team collaboration
- β Consistent experience across devices
- β Web IDE usage (vscode.dev, github.dev)
- β Maximum reliability and uptime
Use Local When:β
- β Development and testing
- β Experimenting with new features
- β Custom configurations
- β Offline work
- β Debugging and troubleshooting
Troubleshootingβ
Web IDE Issuesβ
Extension not loading:
- Check browser console for errors
- Ensure workspace is trusted
- Try reloading the window (Ctrl+R)
Authentication failing in web:
- Clear browser cache and cookies
- Ensure pop-ups are allowed
- Try OAuth (Browser) method instead of API key
Connection Issuesβ
Cannot connect to MCP:
# Check CLI status
lanonasis auth status
lanonasis mcp status
# Test connectivity
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://mcp.lanonasis.com/health
Manual endpoint configuration:
{
"lanonasis.useGateway": false,
"lanonasis.apiUrl": "https://api.lanonasis.com",
"lanonasis.websocketUrl": "wss://mcp.lanonasis.com/ws"
}
Authentication Issuesβ
OAuth token expired:
# Force re-authentication
lanonasis auth login --force
API key not working:
# Verify key is valid
lanonasis auth login --vendor-key <your-key>
# Check status
lanonasis auth status
Best Practicesβ
- Use OAuth for Interactive Apps: Automatic token management is more secure
- Enable MCP Auto-Discover: Let the extension find your local server
- Use Gateway Mode: Enhanced performance and routing
- Regular Authentication Checks: Use
lanonasis auth statusto verify access - Keep Extensions Updated: Latest versions have bug fixes and new features
- Web IDE Security: Use OAuth, avoid storing API keys in browser
Related Documentationβ
- MCP Overview - Understanding MCP protocol
- Production Server - Production deployment
- Authentication Guide - OAuth and API keys
- CLI Reference - CLI commands
- VSCode Extension - VSCode-specific features
Quick Referenceβ
Endpointsβ
| Service | URL |
|---|---|
| MCP Production | https://mcp.lanonasis.com |
| MCP SSE | https://mcp.lanonasis.com/sse |
| MCP WebSocket | wss://mcp.lanonasis.com/ws |
| API Gateway | https://api.lanonasis.com |
| Auth Gateway | https://auth.lanonasis.com |
Commandsβ
| Command | Description |
|---|---|
lanonasis auth login | Authenticate with OAuth or API key |
lanonasis auth status | Check auth status with live API probe |
lanonasis whoami | View user profile |
lanonasis mcp connect | Connect to MCP server |
lanonasis mcp status | Check MCP connection |
lanonasis mcp-server start | Start local MCP server |
IDE Extensionsβ
| IDE | Extension | Web Support |
|---|---|---|
| VSCode Desktop | LanOnasis Memory Assistant | N/A |
| VSCode Web | LanOnasis Memory Assistant | β Yes |
| GitHub.dev | LanOnasis Memory Assistant | β Yes |
| Cursor | Built-in MCP | β No |
| Windsurf | Built-in MCP | β No |