22 lines
563 B
JavaScript
22 lines
563 B
JavaScript
#!/usr/bin/env node
|
|
|
|
/**
|
|
* @fileoverview Main entry point for Laravel Healthcare MCP Server
|
|
* Automatically detects transport mode and starts appropriate server
|
|
* Default: stdio mode for MCP clients like Claude Desktop
|
|
*/
|
|
|
|
import dotenv from "dotenv";
|
|
|
|
// Load environment variables
|
|
dotenv.config();
|
|
|
|
// Set default transport to stdio for this entry point
|
|
process.env.MCP_TRANSPORT = "stdio";
|
|
|
|
// Import and start the server
|
|
import("./http-tools-server.js").catch((error) => {
|
|
console.error("❌ Failed to start MCP server:", error);
|
|
process.exit(1);
|
|
});
|