/** * ServicialoAdapter — pluggable backend interface for the MCP server. * * Any Servicialo-compatible implementation can be connected by providing * an adapter that implements this interface. The MCP server delegates all * backend calls through this abstraction. * * Built-in adapters: * - CoordinaloClient (SERVICIALO_ADAPTER=coordinalo, default) * - HttpAdapter (SERVICIALO_ADAPTER=http) */ export interface ServicialoAdapter { /** Whether the adapter has credentials for authenticated operations. */ readonly isAuthenticated: boolean; /** Public API — no authentication required. */ readonly pub: { get(path: string, params?: Record): Promise; }; /** Authenticated GET with optional query parameters. */ get(path: string, params?: Record): Promise; /** Authenticated POST with optional JSON body. */ post(path: string, body?: unknown): Promise; /** Authenticated PUT with optional JSON body. */ put(path: string, body?: unknown): Promise; /** Authenticated PATCH with optional JSON body. */ patch(path: string, body?: unknown): Promise; /** Authenticated DELETE. */ delete(path: string): Promise; } export type AdapterType = 'coordinalo' | 'http'; /** * Factory: create the appropriate adapter based on SERVICIALO_ADAPTER env var. * * - "coordinalo" (default): connects to a Coordinalo-compatible backend. * Paths are org-scoped under /api/organizations/{orgId}. * * - "http": connects to any implementation that exposes the canonical * HTTP_PROFILE.md REST endpoints under /v1/*. * Requires SERVICIALO_BASE_URL to point to the implementation's root. */ export declare function createAdapter(): Promise; //# sourceMappingURL=adapter.d.ts.map