UNPKG

celestial-position-mcp

Version:

MCP server for celestial object altitude-azimuth coordinates

25 lines (24 loc) 673 B
#!/usr/bin/env node // Entry point for the MCP server import { MCPServer } from 'mcp-framework'; import { initializeCatalogs } from './utils/astronomy.js'; // Initialize the astronomical catalogs first initializeCatalogs(); // Create a new MCP server const server = new MCPServer({ transport: { type: "http-stream", options: { port: 3008, // Use a different port since 3005 and 3007 are already in use endpoint: "/mcp", cors: { allowOrigin: "*" } } } }); // Start the server server.start().catch((error) => { console.error('Server error:', error); process.exit(1); });