Skip to main content

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​

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​

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:

  1. Press Cmd+Shift+P (or Ctrl+Shift+P)
  2. Run: Lanonasis: Authenticate
  3. Select "OAuth (Browser)" or "API Key"
  4. Follow the prompts

Keyboard Shortcuts:

ShortcutAction
Ctrl+Shift+MSearch memories
Ctrl+Shift+Alt+MCreate memory from selection
Ctrl+Shift+KManage API keys
F1 β†’ "Lanonasis"Access all commands

VSCode Web (vscode.dev & github.dev) ✨ NEW​

Extension: LanOnasis Memory Assistant v2.1.1+

Installation:

  1. Open VSCode for Web (vscode.dev) or GitHub.dev
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search: "LanOnasis Memory Assistant"
  4. 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:

  1. Settings (Ctrl+,)
  2. Search: "LanOnasis"
  3. Configure endpoints and authentication

Authentication in Web:

  1. Open Command Palette (Ctrl+Shift+P)
  2. Run: Lanonasis: Authenticate
  3. Select "OAuth (Browser)" - recommended for web
  4. Browser window opens for authentication
  5. 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:

  1. Open Cursor Settings
  2. Navigate to MCP
  3. Add new MCP server:
    • Name: LanOnasis Memory
    • Type: HTTP or WebSocket
    • URL: https://mcp.lanonasis.com
    • Auth: Bearer token (from OAuth or API key)

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:

  1. Open Windsurf Settings
  2. Navigate to MCP Servers
  3. 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​

  1. Use OAuth for Interactive Apps: Automatic token management is more secure
  2. Enable MCP Auto-Discover: Let the extension find your local server
  3. Use Gateway Mode: Enhanced performance and routing
  4. Regular Authentication Checks: Use lanonasis auth status to verify access
  5. Keep Extensions Updated: Latest versions have bug fixes and new features
  6. Web IDE Security: Use OAuth, avoid storing API keys in browser


Quick Reference​

Endpoints​

ServiceURL
MCP Productionhttps://mcp.lanonasis.com
MCP SSEhttps://mcp.lanonasis.com/sse
MCP WebSocketwss://mcp.lanonasis.com/ws
API Gatewayhttps://api.lanonasis.com
Auth Gatewayhttps://auth.lanonasis.com

Commands​

CommandDescription
lanonasis auth loginAuthenticate with OAuth or API key
lanonasis auth statusCheck auth status with live API probe
lanonasis whoamiView user profile
lanonasis mcp connectConnect to MCP server
lanonasis mcp statusCheck MCP connection
lanonasis mcp-server startStart local MCP server

IDE Extensions​

IDEExtensionWeb Support
VSCode DesktopLanOnasis Memory AssistantN/A
VSCode WebLanOnasis Memory Assistantβœ… Yes
GitHub.devLanOnasis Memory Assistantβœ… Yes
CursorBuilt-in MCP❌ No
WindsurfBuilt-in MCP❌ No