/** * The share page for `otterkit mcp publish`: what a browser sees at the * server's link. Lists the published tools and gives setup steps for five clients. * * The link is the key, so the page must never leak it: no external fonts, * scripts or images (a Referer would carry the URL), and the gateway serves * it with `Referrer-Policy: no-referrer` and `noindex`. * * Tool names and descriptions come from the user's MCP server and are * untrusted text: everything is escaped on the way in. */ export interface PageTool { name: string; description?: string; /** Parameter names, required ones first. */ params: string[]; } export interface SharePage { name: string; description?: string; /** Full public MCP endpoint, including the key. */ endpoint: string; tools: PageTool[]; } /** A config-safe server name for client configs (letters, digits, dashes). */ export declare function slugName(name: string): string; export declare function renderSharePage(page: SharePage): string; /** * Wrong or missing key. The server is running, so say that much, but nothing about what it is: * no name, no tools. */ export declare function renderNotFoundPage(): string;