UNPKG

@l4t/mcp-ai

Version:

A set of tools for making integration and aggregation of MCP servers extremely easy.

22 lines 824 B
import { create as createCli } from './cli.js'; import { create as createSse } from './sse.js'; import { create as createHttp } from './http.js'; import { create as createStatelessHttp } from './stateless-http.js'; const create = (config, options) => { switch (config.server.connection.type) { case 'cli': return createCli(config); case 'sse': return createSse(config, options?.express); case 'http': // @ts-ignore if (config.stateless) { return createStatelessHttp(config, options?.express); } return createHttp(config, options?.express); default: throw new Error(`Unsupported server type: ${config.server.connection.type}`); } }; export { create }; //# sourceMappingURL=index.js.map