@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.
26 lines • 1.34 kB
TypeScript
/**
* The server before anybody has told it where the books are.
*
* An MCP client lists a server's tools the moment it is added, and so do the
* directories that index servers — they start the package with no
* environment and ask for `tools/list`. A server that exits on a missing
* variable shows up there as "failed to start", and in Claude Desktop as a red
* dot with the reason buried in a log file. So when the connection is simply
* *absent*, the server starts anyway, offers its tools, and every call answers
* with what to set and where. Nothing is connected and nothing is guessed:
* there is no default database, and no tool pretends to have read one.
*
* Only absence is forgiven. A `service_role` key or a malformed user id is a
* configuration somebody wrote, and it is refused at start as before.
*/
import { type Backend } from './backend.js';
/** Whether a configuration error only says that something is missing. */
export declare function isMissingConfiguration(error: unknown): boolean;
/**
* A backend that refuses every call with the reason the server has none.
*
* `mode` says `postgrest` because that is the route the message recommends;
* no call reaches the point where it is read.
*/
export declare function unconfiguredBackend(reason: Error): Backend;
//# sourceMappingURL=unconfigured.d.ts.map