UNPKG

@kya-os/mcp-i

Version:

The TypeScript MCP framework with identity features built-in

46 lines (45 loc) 1.19 kB
"use strict"; // ------------------------------------------------------------ // Constants // ------------------------------------------------------------ Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_PATHS_CONFIG = exports.DEFAULT_STDIO_CONFIG = exports.DEFAULT_HTTP_CONFIG = exports.DEFAULT_CORS_CONFIG = void 0; /** * Default values for CORS config */ exports.DEFAULT_CORS_CONFIG = { origin: "*", methods: ["GET", "POST"], allowedHeaders: [ "Content-Type", "Authorization", "mcp-session-id", "mcp-protocol-version", ], exposedHeaders: ["Content-Type", "Authorization", "mcp-session-id"], credentials: false, maxAge: 86400, }; /** * Default values for the HTTP transport */ exports.DEFAULT_HTTP_CONFIG = { port: 3000, host: "127.0.0.1", bodySizeLimit: 1024 * 1024 * 10, // 10MB debug: false, endpoint: "/mcp", cors: exports.DEFAULT_CORS_CONFIG, }; /** * Default values for the STDIO transport */ exports.DEFAULT_STDIO_CONFIG = { debug: false, }; /** * Default values for the tools directory */ exports.DEFAULT_PATHS_CONFIG = { tools: "src/tools", };