Skip to main content
Glama
index.ts•1.06 kB
#!/usr/bin/env node /** * SCP Local MCP Server - Entry Point */ import { startServer } from './server.js'; import { testEncryption } from './storage/encryption.js'; async function main() { console.error('[SCP] Starting MCP server...'); // Test encryption on startup console.error('[SCP] Testing encryption...'); try { if (!(await testEncryption())) { console.error('[SCP] ERROR: Encryption test failed!'); process.exit(1); } console.error('[SCP] Encryption test passed'); } catch (error) { console.error('[SCP] ERROR: Encryption test threw exception:', error); process.exit(1); } // Start MCP server console.error('[SCP] Initializing server...'); try { await startServer(); console.error('[SCP] Server initialized successfully'); } catch (error) { console.error('[SCP] ERROR: Server initialization failed:', error); throw error; } } main().catch(error => { console.error('[SCP] FATAL ERROR:', error); console.error('[SCP] Stack trace:', error.stack); process.exit(1); });

Latest Blog Posts

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/shopper-context-protocol/scp-mcp-wrapper'

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