UNPKG

gaia-vault-mcp

Version:

Azure Blob Storage MCP server for AI assistants

30 lines (29 loc) 757 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fastmcp_1 = require("fastmcp"); const tools_1 = require("./services/tools"); const server = new fastmcp_1.FastMCP({ name: "My Server", version: "1.0.0", }); // Register all tools tools_1.tools.forEach((tool) => { server.addTool(tool); }); // Get transport type from environment variable or default to stdio const transportType = process.env.TRANSPORT_TYPE || "stdio"; if (transportType === "sse") { server.start({ transportType: "sse", sse: { endpoint: "/sse", port: parseInt(process.env.PORT || "8080", 10), }, }); } else { server.start({ transportType: "stdio", }); }