export declare const DEFAULT_API_URL = "https://api.depot.dev"; export declare const DEFAULT_MAX_LOG_PAGES = 20; export declare const DEFAULT_OUTPUT_CHAR_BUDGET = 24000; export interface DepotMcpConfig { readonly token: string; readonly apiUrl: string; readonly orgId: string | undefined; readonly projectId: string | undefined; /** * Gate for mutating tools (`src/tools/writes.ts`). Off by default: the write tools are then * not registered at all, so a client never sees them. Depot has no read-only token scope, so * this flag is the only thing keeping a token that can cancel and rerun from being used to. */ readonly allowWrites: boolean; /** * Second gate, for writes that cannot be undone (`src/tools/writes.ts`, `destructiveTools`). * Off by default and meaningless on its own: a destructive tool is registered only when this * and `allowWrites` are both set, so enabling writes never enables deletion by accident. */ readonly allowDestructive: boolean; /** * Gate for tools built on Depot APIs that Depot itself labels beta or publishes only as protos * (`depot.sandbox.v1`, `depot.registry.v1beta1`). Off by default so a client never sees a tool * whose upstream contract may change without notice. */ readonly enableBeta: boolean; /** * Repositories and workflow files `depot_dispatch_ci_workflow` may start, from * DEPOT_MCP_DISPATCH_ALLOWLIST. Undefined when the variable is unset: any repository the token * can see may then be dispatched. An empty list never occurs; a blank variable reads as unset. */ readonly dispatchAllowlist: readonly DispatchAllowlistEntry[] | undefined; readonly maxLogPages: number; readonly outputCharBudget: number; } export interface DispatchAllowlistEntry { /** `owner/name`, compared case-insensitively, the way GitHub treats repository names. */ readonly repo: string; /** The workflow file basename, for example `deploy.yml`, compared exactly. */ readonly workflow: string; } export declare class ConfigError extends Error { constructor(message: string); } export declare function loadConfig(env?: NodeJS.ProcessEnv): DepotMcpConfig; //# sourceMappingURL=config.d.ts.map