@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.
28 lines • 1.37 kB
TypeScript
/**
* What this server needs of the database it is pointed at.
*
* An MCP client is installed by whoever wants an agent, and the database
* it reaches was installed by whoever runs the books — two decisions, two
* dates. So the server asks the schema its version before it answers anything,
* and refuses one it is too new for, by name. The alternative is what an
* agent does with a missing column: it improvises, and the improvisation
* is an accounting entry.
*
* Declared in `package.json` under `ekwo.schemaMin`, as a country pack
* declares it in its manifest, and repeated here as a constant so a bundle
* that never reads a manifest still carries it.
*/
import { type Backend } from './backend.js';
/** The oldest schema this server speaks to. */
export declare const SCHEMA_MIN = "0.19.0";
/** The version the migrations of that database define. */
export declare function installedSchemaVersion(backend: Backend): Promise<string | undefined>;
/**
* Refuses a database older than this server, and says which way to fix it.
*
* A database that cannot answer at all is refused too: `ekwo_schema_version()`
* has existed since the first migration, so a silence means the schema is not
* installed rather than that it is old.
*/
export declare function assertSchemaSupported(backend: Backend): Promise<string>;
//# sourceMappingURL=schema.d.ts.map