/** * Conarium server core — shared by stdio (index.ts) and remote HTTP (http.ts) entrypoints. * Behavior is identical to the original inline main(): same tools, same governance, same audit. */ import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import type { ConariumConfig } from './types.js'; import type { Connector } from './types.js'; import { Governance } from './governance.js'; import { Audit } from './audit.js'; import type { ResolvedActor } from './tokens.js'; export interface ConariumDeps { config: ConariumConfig; governance: Governance; audit: Audit; connectors: Connector[]; } export declare function loadConfig(): ConariumConfig; /** Connect all configured connectors once (shared across sessions in HTTP mode). */ export declare function bootDeps(config: ConariumConfig): Promise; /** * Build an MCP Server wired to the shared deps. One instance per transport/session. * * `aktor`: the person who opened THIS SESSION. Because the session is opened * with a single token, identity is fixed for the life of the session. Deliberately * a parameter — a module-level global would mix identities across concurrent * sessions and the audit record would blame the wrong person. If omitted, * behavior is as before (consumer). */ export declare function buildServer({ config, governance: temelGovernance, audit, connectors }: ConariumDeps, aktor?: ResolvedActor): Server; //# sourceMappingURL=server.d.ts.map