/** * `warden-mcp gateway --config gateway.json`: WARDEN for platforms without agent hooks (OpenWebUI first; n8n, * LangChain and hand-written agents the same way). One process, one state per chat: * * - `/mcp/`: proxy in front of an MCP server over Streamable HTTP (gateway-mcp.ts); * - `/openapi//…`: proxy in front of an OpenAPI tool server (gateway-openapi.ts); * - `/v1/prompt|source|pre|post|approve|health`: the decision service the platform adapter calls for what never passes * a proxy — the person's message, web search and documents, the platform's own Python tools (gateway-decide.ts). * * Node built-ins only. Listens on 127.0.0.1 unless told otherwise; every route but /v1/health needs the bearer token. */ import { type Server } from 'node:http'; import { type GatewayConfig } from './gateway-config.js'; import { Decider } from './gateway-decide.js'; import { operationsOf } from './gateway-openapi.js'; export { operationsOf }; export interface Gateway { server: Server; decider: Decider; config: GatewayConfig; close(): Promise; } export declare function createGateway(config: GatewayConfig, env?: NodeJS.ProcessEnv, logLine?: (m: string) => void): Gateway; export declare function runGatewayCli(argv: string[]): Promise; //# sourceMappingURL=gateway.d.ts.map