We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cameronsjo/mouse-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
index.ts•1.12 kB
#!/usr/bin/env node
/**
* Disney Parks MCP Server
*
* Entry point for the MCP server.
*
* Usage:
* npx mouse-mcp
* node --import ./dist/instrumentation.js dist/index.js
*
* For development with tsx:
* tsx --import ./src/instrumentation.ts src/index.ts
*/
// Load environment variables from .env file FIRST
import "dotenv/config";
// Import instrumentation (Sentry + OTEL) - must be imported early
// Note: For best results, use --import flag instead of this import
import "./instrumentation.js";
import { DisneyMcpServer } from "./server.js";
import { createLogger, SENTRY_FLUSH_TIMEOUT_MS } from "./shared/index.js";
import { Sentry } from "./shared/tracing.js";
const logger = createLogger("Main");
async function main(): Promise<void> {
try {
const server = new DisneyMcpServer();
await server.run();
} catch (error) {
logger.error("Fatal error starting server", error);
// Capture fatal error in Sentry
Sentry.captureException(error);
// Flush Sentry events before exit
await Sentry.close(SENTRY_FLUSH_TIMEOUT_MS);
process.exit(1);
}
}
void main();