Skip to main content
Glama

Edgee MCP Server

by ampcome-mcps
index.ts1.24 kB
#!/usr/bin/env node import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; import { registerAllTools } from './tools/index.js'; /** * Edgee MCP Server * * This server provides tools for interacting with the Edgee API. * It requires an EDGEE_TOKEN environment variable to be set. */ // Check for required environment variables if (!process.env.EDGEE_TOKEN) { console.error('Error: EDGEE_TOKEN environment variable is required'); process.exit(1); } // Create server instance const server = new McpServer({ name: 'edgee', version: '1.0.0', capabilities: { resources: {}, tools: {}, }, }); // Register all tools registerAllTools(server); // Error handling process.on('uncaughtException', (error: Error) => { console.error('[MCP Error]', error); }); process.on('SIGINT', async () => { await server.close(); process.exit(0); }); // Start the server async function main() { const transport = new StdioServerTransport(); await server.connect(transport); console.error('Edgee MCP Server running on stdio'); } main().catch((error) => { console.error('Fatal error in main():', error); 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/ampcome-mcps/edgee-mcp'

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