fix
This commit is contained in:
21
index.js
Normal file
21
index.js
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/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);
|
||||
});
|
Reference in New Issue
Block a user