run402-mcp
Version:
MCP server for Run402 — full-stack backend infrastructure for AI agents: Postgres, auth, storage, serverless functions and atomic deploys. Paid with x402/MPP. Includes $0.03 image generation.
31 lines • 1.05 kB
TypeScript
/**
* `secrets` namespace — project-scoped environment variables for functions.
* All methods require the project's service key.
*/
import type { Client } from "../kernel.js";
export interface SecretSetOptions {
value: string;
}
export interface SecretSummary {
key: string;
created_at?: string;
updated_at?: string;
}
export interface SecretListResult {
secrets: SecretSummary[];
}
export interface DeleteSecretResult {
status: string;
key: string;
}
export declare class Secrets {
private readonly client;
constructor(client: Client);
/** Set or overwrite a project secret. Injected as `process.env.KEY` in deployed functions. */
set(projectId: string, key: string, opts: SecretSetOptions): Promise<void>;
/** List secret keys for a project. Values and value-derived hashes are never returned. */
list(projectId: string): Promise<SecretListResult>;
/** Delete a secret. */
delete(projectId: string, key: string): Promise<DeleteSecretResult>;
}
//# sourceMappingURL=secrets.d.ts.map