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.
32 lines • 1.47 kB
TypeScript
/**
* `docs` — the discovery surface for `run`.
*
* Answers from two files that ship inside the `run402-mcp` package, copied
* there by `npm run build`: the SDK reference (`sdk/llms-sdk.txt`, generated
* from `docs-site/src/content/docs/sdk/**`) and the `run` primer
* (`docs-site/src/content/docs/mcp/run.md`). The text a host reads is therefore
* the SDK the snippet runs against, never a newer or older copy from the
* network; this tool never fetches anything.
*
* `topic` is `index` (the default: the primer, the `r` namespace table, and the
* list of topics), `sdk` (the whole reference), or one section of it: a
* namespace such as `assets` or `project.apply`, or a section slug such as
* `local-state`. `search` returns the sections whose heading or body contains
* every word, capped. Every answer goes through the result store, so a long
* one is a window plus a `ref` that `expand_result` pages.
*/
import { z } from "zod";
/** Lines shown inline; the index fits inside one window. */
export declare const DOCS_WINDOW_LINES = 200;
/** Sections a search returns at most. */
export declare const DOCS_SEARCH_MAX_SECTIONS = 8;
import type { ToolResult } from "../structured.js";
export declare const docsSchema: {
topic: z.ZodOptional<z.ZodString>;
search: z.ZodOptional<z.ZodString>;
};
export declare function handleDocs(args: {
topic?: string;
search?: string;
}): Promise<ToolResult>;
//# sourceMappingURL=docs.d.ts.map