#!/bin/bash
# Display Windsurf MCP Configuration
# Quick reference for updating Windsurf settings
echo "╔════════════════════════════════════════════════════════════════════════════╗"
echo "║ Windsurf MCP Configuration ║"
echo "║ Copy this to your Windsurf settings.json ║"
echo "╚════════════════════════════════════════════════════════════════════════════╝"
echo
echo "📝 Steps:"
echo " 1. Press Cmd+, (macOS) or Ctrl+, (Windows) in Windsurf"
echo " 2. Search: 'MCP Servers'"
echo " 3. Click: 'Edit in settings.json'"
echo " 4. Replace 'directus' entry with configuration below"
echo " 5. Save file (Cmd+S or Ctrl+S)"
echo " 6. Quit Windsurf completely (Cmd+Q or Ctrl+Q)"
echo " 7. Reopen Windsurf and wait 10 seconds"
echo
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo
cat << 'EOF'
{
"mcpServers": {
"directus": {
"command": "node",
"args": [
"/Users/jorgenunes/2026/aidev/directus-mcp-claude/dist/index.js"
],
"env": {
"DIRECTUS_URL": "http://localhost:8065",
"DIRECTUS_TOKEN": "1X6eST1lyCGCtjGOucQ-i65tLXfcKkE4",
"DIRECTUS_PROMPTS_COLLECTION_ENABLED": "true",
"DIRECTUS_PROMPTS_COLLECTION": "ai_prompts",
"DIRECTUS_RESOURCES_ENABLED": "true",
"DIRECTUS_RESOURCES_EXCLUDE_SYSTEM": "true",
"NODE_ENV": "production"
}
}
}
}
EOF
echo
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo
echo "✅ Features Enabled:"
echo " • Tools: 27 Directus tools"
echo " • Prompts: ai_prompts collection"
echo " • Resources: All collections (system excluded)"
echo
echo "🧪 After restart, test with:"
echo " 'List all Directus collections'"
echo " 'What prompts are available?'"
echo " 'Show me available resources'"
echo
echo "📖 Full guide: cat WINDSURF-FIX.md"
echo