UNPKG

allthingsdev-mcp-server

Version:

🚀 Official MCP server for AllThingsDev API marketplace. Discover, search, and integrate 600+ APIs directly through Claude Desktop, Cursor IDE, and other AI assistants. Features real-time API search, pricing comparison, endpoint documentation, and seamles

86 lines (79 loc) 3.02 kB
#!/usr/bin/env node // Script to generate Windsurf IDE install instructions for AllThingsDev MCP Server import os from 'os'; import path from 'path'; const config = { "allthingsdev": { "command": "npx", "args": ["-y", "allthingsdev-mcp-server"] } }; // Get platform-specific config paths function getConfigPaths() { const platform = os.platform(); const homeDir = os.homedir(); switch (platform) { case 'win32': return { config: path.join(homeDir, 'AppData', 'Roaming', 'Windsurf', 'config.json'), display: '%APPDATA%\\Windsurf\\config.json' }; case 'darwin': return { config: path.join(homeDir, 'Library', 'Application Support', 'Windsurf', 'config.json'), display: '~/Library/Application Support/Windsurf/config.json' }; default: // linux return { config: path.join(homeDir, '.config', 'Windsurf', 'config.json'), display: '~/.config/Windsurf/config.json' }; } } const configPaths = getConfigPaths(); console.log('='.repeat(80)); console.log('🌊 AllThingsDev MCP Server - Windsurf IDE Installation'); console.log('='.repeat(80)); console.log(); console.log('📁 CONFIG LOCATION:'); console.log(` ${configPaths.display}`); console.log(); console.log('📝 ADD TO YOUR WINDSURF CONFIG:'); console.log(); console.log('If you have an existing config file, add this to the "mcpServers" section:'); console.log('```json'); console.log(JSON.stringify({ allthingsdev: config.allthingsdev }, null, 2)); console.log('```'); console.log(); console.log('If this is your first MCP server, use this complete config:'); console.log('```json'); console.log(JSON.stringify({ mcpServers: config }, null, 2)); console.log('```'); console.log(); console.log('🔧 INSTALLATION STEPS:'); console.log('1. Close Windsurf IDE if it\'s running'); console.log('2. Create/edit the config file above'); console.log('3. Add the configuration shown above'); console.log('4. Save the file'); console.log('5. Restart Windsurf IDE'); console.log(); console.log('✅ VERIFICATION:'); console.log('After restart, you should be able to:'); console.log('• Ask Windsurf to "search for weather APIs"'); console.log('• Request "show me payment processing APIs under $20"'); console.log('• Get "details about any specific API"'); console.log(); console.log('📚 EXAMPLE QUERIES:'); console.log('• "Find APIs for currency conversion"'); console.log('• "Show me all location-based APIs under $10/month"'); console.log('• "What are the endpoints for the Weather API?"'); console.log('• "How do I publish my API on AllThingsDev?"'); console.log(); console.log('🆘 TROUBLESHOOTING:'); console.log('• Make sure Node.js 18+ is installed'); console.log('• Verify the config file path exists'); console.log('• Check JSON syntax is valid'); console.log('• Restart Windsurf completely after config changes'); console.log(); console.log('✨ Discover 600+ APIs directly in Windsurf IDE!'); console.log('='.repeat(80));