This commit is contained in:
nasir@endelospay.com
2025-07-22 05:18:21 +05:00
parent 47e3c98b65
commit 88c212c05e
6 changed files with 779 additions and 88 deletions

21
index.js Normal file
View 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);
});