UNPKG

mongodb-memory-bank-mcp

Version:

FIXED: MongoDB Memory Bank MCP with bulletproof error handling, smart operations, and session state management. Eliminates [object Object] errors and user confusion.

19 lines (18 loc) 578 B
#!/usr/bin/env node import app from "./protocols/mcp/app.js"; import { MongoDBConnection } from "../infra/mongodb/connection/mongodb-connection.js"; async function startServer() { try { // Initialize MongoDB connection const mongoConnection = MongoDBConnection.getInstance(); await mongoConnection.connect(); console.log('MongoDB connection initialized'); // Start MCP server await app.start(); } catch (error) { console.error('Failed to start server:', error); process.exit(1); } } startServer();