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.
23 lines • 1.09 kB
TypeScript
/**
* MCP-side SDK clients.
*
* The fixed tools obtain their client via {@link getSdk}; `run` replays its
* snippet's chains against {@link getSandboxSdk}. Each instance is lazily
* constructed on first use and cached while the relevant
* local environment is unchanged. If a test harness or long-running agent host
* changes config/profile/API env vars, the next call rebuilds the client
* instead of silently reusing stale paths.
*/
import { type NodeRun402 } from "../sdk/dist/node/index.js";
export declare function getSdk(): NodeRun402;
/**
* The client a `run` snippet's chains replay against. `surface: "sandbox"`
* resolves credentials wallet-only like `"mcp"`, tags requests with client
* metadata surface `sandbox`, and sets `capabilities.returnSecrets: false`, so
* every SDK method that would return or consume a one-time secret refuses with
* `SECRET_REQUIRES_CLI` before any request.
*/
export declare function getSandboxSdk(): NodeRun402;
/** Reset the cached SDK instances. Test-only. */
export declare function _resetSdk(): void;
//# sourceMappingURL=sdk.d.ts.map