#!/usr/bin/env node /** * Entry point for the Cognium MCP server. * * - As a bin (`cognium-mcp`): connects the server to stdio so MCP clients * (e.g. cognium-code) can spawn it as a subprocess and communicate over * stdin/stdout. * - As a library import (`import { buildServer } from '@cognium-ai/mcp-server'`): * re-exports `buildServer` so HTTP transport hosts (e.g. circle-pack's * `/api/mcp`) can build and connect to a configured `McpServer` without * spawning a subprocess. The stdio bootstrap is guarded by an * `import.meta.url === file://${process.argv[1]}` check so library * consumers never accidentally start a stdio server on the host process's * stdin/stdout. */ import { buildServer } from './server.js'; export { buildServer }; //# sourceMappingURL=index.d.ts.map