Skip to main content
Glama

MindBridge MCP Server

cli.ts1.61 kB
#!/usr/bin/env node import dotenv from 'dotenv'; import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; import MindBridgeServer from './server.js'; // Load environment variables from .env file dotenv.config(); // Configure stdio transport for simplicity const transport = new StdioServerTransport(); // Create and start the server const server = new MindBridgeServer(); // Print banner - using console.error for stderr output console.error('\n✨ Mindbridge MCP Server ✨'); console.error('Version: 1.1.0'); console.error('\nStarting server...'); // Connect the server (async () => { try { await server.connect(transport); console.error('\nServer started successfully!'); console.error('\nAvailable Tools:'); console.error('- getSecondOpinion: Get responses from various LLM providers'); console.error('- listProviders: List all configured LLM providers and their models'); console.error('- listReasoningModels: List models optimized for reasoning tasks\n'); } catch (error) { console.error('Failed to start server:', error); process.exit(1); } })(); // Handle graceful shutdown process.on('SIGINT', () => { console.error('\nShutting down server...'); process.exit(0); }); process.on('SIGTERM', () => { console.error('\nShutting down server...'); process.exit(0); }); // Handle uncaught errors process.on('uncaughtException', (error) => { console.error('Uncaught Exception:', error); process.exit(1); }); process.on('unhandledRejection', (reason) => { console.error('Unhandled Rejection:', reason); process.exit(1); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pinkpixel-dev/mindbridge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server