/** * `McpcAdapter` — CLI-as-proxy invocation adapter for Apify's `mcpc` CLI. * * @remarks * Emits SKILL.md output usable by any agent with a shell tool, by routing * tool calls through `mcpc` (https://github.com/apify/mcpc). Unlike the * `mcp-protocol` adapter, this adapter does NOT emit an `mcp:` frontmatter * block — the MCP server connection is established via the shell `mcpc * connect` command described in the Setup section. Instead it emits a * `generated-by:` block carrying the adapter's fingerprint (FR-IT-012). * * The body delegates to core's default render path with two extensions: * * 1. `bodyPrefix` — the Setup section is prepended to the SKILL.md body so * the consumer sees install/connect instructions before the standard * skill content. * 2. `skipDefaultFunctionsRef` — the default `references/functions.md` is * suppressed; the adapter emits its own `references/tools.md` carrying * mcpc command-shape rows produced by `renderCliParamTable`. * * Resources/prompts/types/etc. references are inherited from core * unchanged — the only kind requiring CLI-specific rendering is functions * (which become tools in the mcpc dialect). * * @module render */ import type { AdapterFingerprint, AdapterRenderContext, ExtractedSkill, RenderedSkill } from '@to-skills/core'; import type { InvocationAdapter } from '@to-skills/mcp'; /** * mcpc CLI-as-proxy adapter — emits shell-command skills consumable by any * agent with a `bash`/`shell` tool. * * @public */ export declare class McpcAdapter implements InvocationAdapter { readonly target: "cli:mcpc"; readonly fingerprint: AdapterFingerprint; constructor(); /** * Render an `ExtractedSkill` into a `RenderedSkill` carrying mcpc * command-shape SKILL.md output. * * The launch shape is selected by `resolveLaunchCommand` from `ctx.mode`. */ render(skill: ExtractedSkill, ctx: AdapterRenderContext): Promise; } //# sourceMappingURL=render.d.ts.map