Skip to main content
Glama

myAI Memory Sync

by Jktfe
index.ts1.3 kB
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; import { createMcpServer } from './mcpServer.js'; async function main() { try { // Create MCP server const server = await createMcpServer(); // Set up process event handlers process.on('SIGINT', () => { console.error('Received SIGINT, shutting down gracefully'); process.exit(0); }); process.on('SIGTERM', () => { console.error('Received SIGTERM, shutting down gracefully'); process.exit(0); }); // Handle uncaught exceptions process.on('uncaughtException', (error) => { console.error('Uncaught exception:', error); // Continue running }); // Handle unhandled promise rejections process.on('unhandledRejection', (reason) => { console.error('Unhandled promise rejection:', reason); // Continue running }); // Start the server with stdio transport const transport = new StdioServerTransport(); await server.connect(transport); console.error('myAI Memory Sync MCP server is running...'); } catch (error) { console.error(`Error starting server: ${error instanceof Error ? error.message : String(error)}`); process.exit(1); } } // Start the server main();

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/Jktfe/myAImemory-mcp'

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