/** * Setup-section renderer for the mcpc CLI-as-proxy adapter. * * @remarks * mcpc (Apify's MCP CLI, https://github.com/apify/mcpc) lets non-MCP agents * talk to MCP servers via shell commands. The Setup section embedded into * SKILL.md tells the consumer: * * 1. How to install mcpc (`npm install -g mcpc`). * 2. How to register the underlying MCP server (`mcpc connect -- ...`) * using the launch command we received from the host. * 3. The adapter fingerprint (FR-IT-012) — a human-readable line so * freshness audits can detect drift between the rendered SKILL.md and * the adapter version that produced it. * * @module setup */ import type { AdapterFingerprint } from '@to-skills/mcp'; /** * Stdio launch shape — mirrors the host's `AdapterRenderContext.launchCommand`. */ export interface StdioLaunchCommand { readonly command: string; readonly args?: readonly string[]; readonly env?: Readonly>; } /** * HTTP endpoint shape — mirrors the host's `AdapterRenderContext.httpEndpoint`. */ export interface HttpLaunchEndpoint { readonly url: string; readonly headers?: Readonly>; } /** * Render the Markdown Setup section for an mcpc-proxied skill. * * @param skillName - kebab-case skill identifier; used as the mcpc connection name * @param launchCommand - stdio command (`{ command, args?, env? }`) or HTTP endpoint (`{ url, headers? }`) * @param fingerprint - adapter fingerprint embedded in the FR-IT-012 trace line * @returns Markdown string starting with `## Setup` and ending with the trace line */ export declare function renderMcpcSetup(skillName: string, launchCommand: StdioLaunchCommand | HttpLaunchEndpoint, fingerprint: AdapterFingerprint): string; //# sourceMappingURL=setup.d.ts.map