UNPKG

@kinetixarts/craft-it-mcp-server

Version:

Craft IT - Model Context Protocol (MCP) compliant Server for AI-Powered Asset Generation using Gemini

27 lines 868 B
import { FastMCP } from "fastmcp"; import { registerResources } from "../core/resources.js"; import { registerTools } from "../core/tools.js"; import { registerPrompts } from "../core/prompts.js"; // Create and start the MCP server async function startServer() { try { // Create a new FastMCP server instance const server = new FastMCP({ name: "Craft IT", version: "1.0.1" }); // Register all resources, tools, and prompts registerResources(server); registerTools(server); registerPrompts(server); // Return the initialized server return server; } catch (error) { console.error("Failed to initialize server:", error); process.exit(1); } } // Export the server creation function export default startServer; //# sourceMappingURL=server.js.map