/**
 * The server over stdio, from a command line: `ekwo-mcp`, and `ekwo mcp` of
 * the command line, which loads this same function rather than carrying a
 * second server.
 *
 * Everything comes from the environment, because that is how an MCP client
 * launches a server: a command and a block of variables in
 * `claude_desktop_config.json` or `.mcp.json`. Nothing is read from a file
 * and nothing is written to one — a credential cache would save one paste and
 * turn the first accidental `git add .` into a disclosure.
 *
 * stdout belongs to the protocol. Anything this process has to say to a human
 * goes to stderr, or the client sees a parse error instead of a server.
 */
import type { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
import { type Started } from './start.js';
export interface StdioOptions {
    /** The environment to configure from. Default: the process's. */
    env?: NodeJS.ProcessEnv;
    /** Another transport than stdio, for a test. Then no signal is handled either. */
    transport?: Transport;
    /** Where a human reads what the server says. Default: stderr. */
    log?: (text: string) => void;
}
/**
 * Starts the server on its arguments — `--autopilot`, `--review`, `--help`,
 * `--version` — and its environment. Resolves once it is connected, with what
 * was started; undefined after `--help` or `--version`.
 */
export declare function runStdio(argv: readonly string[], options?: StdioOptions): Promise<Started | undefined>;
export declare const STDIO_HELP = "ekwo-mcp \u2014 the Model Context Protocol server for Ekwo OS.\n`ekwo mcp` of the command line starts the same server, with the same flags.\n\nIt speaks MCP over stdio and is started by a client, not by hand. Configure it\nin claude_desktop_config.json or .mcp.json with:\n\n  SUPABASE_URL            https://<ref>.supabase.co\n  SUPABASE_ANON_KEY       the anon (publishable) key \u2014 never the service_role key\n  EKWO_EMAIL              the user this agent acts as\n  EKWO_PASSWORD           their password\n  EKWO_ACCESS_TOKEN       an access token, instead of the two above\n\nFor a self-hosted database, without PostgREST in front of it:\n\n  EKWO_DB_URL             postgresql://\u2026\n  EKWO_ACT_AS_USER_ID     the auth.users id this server acts for \u2014 required,\n                          because a database connection is nobody\n\nHow this session posts a document \u2014 review or autopilot:\n\n  --autopilot             post directly in every company whose agent_posting\n                          is review or autopilot; refused, autopilot_forbidden,\n                          where it is review_only. Every posting is on the\n                          audit trail, with this session.\n  --review                post only what a person approved, whatever the\n                          company's setting.\n  EKWO_AGENT_POSTING      autopilot or review: the same, as a variable.\n\n  Without either, each company's agent_posting decides (review by default).\n\nOptional:\n\n  EKWO_NO_REGISTER_INVITE 1 leaves the invitation to register out of the\n                          instructions of an unregistered installation\n  EKWO_NO_CLOUD_OFFER     1 leaves the offer of a free Ekwo Cloud account\n                          out of the instructions (so does CI)\n  EKWO_MCP_TOOLS          on_demand starts with the tools of a first session;\n                          search_tools and load_tools find and add the\n                          others. Unset, every tool from the start\n\nRow level security applies either way. This server has no privileges of its\nown and refuses a service_role key.\n\nStarted with none of these, it still answers the client's list of tools, and\nevery tool call replies with what to set \u2014 nothing is connected until then.\n";
//# sourceMappingURL=stdio.d.ts.map