@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.
47 lines • 2.33 kB
TypeScript
/**
* From an environment to a server, without the transport.
*
* `bin.ts` connects the result to stdio; the tests connect it to an in-memory
* client. Keeping the two apart is what lets the "nothing configured" start be
* tested exactly as a client meets it, without spawning a process.
*/
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { type EinvoiceTransport, type FiscalSystem } from '@ekwo-ai/core';
import type { Backend } from './backend.js';
export interface Started {
server: McpServer;
backend: Backend;
/** One line for stderr: how this server is connected, or why it is not. */
summary: string;
}
export declare function serverFromEnvironment(env?: NodeJS.ProcessEnv): Promise<Started>;
/**
* How this session posts, said once at start-up: review, autopilot, or each
* company's setting — and the companies where autopilot is refused. A read
* that fails says nothing more than the choice: it is information, and never
* stops a server from starting.
*/
export declare function postingSummary(backend: Backend): Promise<string>;
/**
* The transport electronic invoices leave through, from the environment: the
* folder of `EKWO_EINVOICE_DIRECTORY`, the one transport this release ships.
* Unset, files are issued and kept and sending is refused by name. A network
* transport is handed to `buildServer()` by the host that operates it, the
* same way.
*/
export declare function einvoiceTransportFrom(env: NodeJS.ProcessEnv): EinvoiceTransport | undefined;
/**
* The invoicing system fiscal records are chained by, from the JSON of
* `EKWO_FISCAL_SYSTEM`. Unset, `einvoicing_fiscalise` asks for it by name; set
* and malformed, the server refuses to start rather than chain records under
* a system nobody described.
*/
export declare function fiscalSystemFrom(env: NodeJS.ProcessEnv): FiscalSystem | undefined;
/**
* True when the instance row says the installation is not registered with
* Ekwo and the environment did not silence the invitation. A row this user
* may not read, or a read that fails, gives no invitation: it is a courtesy,
* and a courtesy never stops a server from starting.
*/
export declare function shouldInviteToRegister(backend: Backend, env: NodeJS.ProcessEnv): Promise<boolean>;
//# sourceMappingURL=start.d.ts.map