UNPKG

@ekwo-ai/mcp

Version:

MCP server for Ekwo OS: let an AI agent work on the books, under the user's own row level security.

24 lines • 1.47 kB
/** * The one interface every tool is written against. * * There are two ways to reach an Ekwo database and neither of them is a * privileged one. The recommended route is PostgREST with the signed-in * user's own token, which is how the schema is meant to be read and written: * row level security decides, exactly as it would for that person in a * browser. The second is a direct Postgres connection, for a self-hosted * installation and for the tests — and even there the claims and the role are * set on every call, so the same policies apply. * * Tools therefore never see a client, a token or a connection string. They * see `select`, `insert`, `update`, `remove` and `rpc`, and what comes back * is whatever the policies let through. */ import { BooksError, columnName, identifier, qualified, socleCode, type AgentSession, type Backend, type Filter, type Order, type Row, type SelectQuery, type SessionPosting, type Value } from '@ekwo-ai/core'; export { columnName, identifier, qualified, socleCode }; export type { AgentSession, Backend, Filter, Order, Row, SelectQuery, SessionPosting, Value }; /** The core's error, under the name this package has always exported. */ export declare const EkwoMcpError: typeof BooksError; export type EkwoMcpError = BooksError; /** The socle error, with the sentence that explains it when we have one. */ export declare function explain(message: string): EkwoMcpError; //# sourceMappingURL=backend.d.ts.map