/** * MCP CLI Command * * Run a .photon.ts file as an MCP server (the core Photon runtime command) */ import type { Command } from 'commander'; /** * Parse extended photon name format * * Supports: * - "rss-feed" → { name: "rss-feed" } * - "alice/custom-photons:rss-feed" → { name: "rss-feed", marketplaceSource: "alice/custom-photons" } * * Rule: colon splits only when left side contains `/` (a marketplace source) * and right side is a simple name (no `/`). */ export declare function parsePhotonSpec(spec: string): { name: string; marketplaceSource?: string; }; export type SupportedClient = 'claude'; export declare const SUPPORTED_CLIENTS: SupportedClient[]; /** * Register `` in the target MCP client's config file. * * Reads the existing JSON config, merges the server entry under mcpServers, * writes atomically through a temp file, and preserves a `.bak` backup. * Creates the config from scratch if it doesn't exist yet. */ export declare function installToClient(name: string, filePath: string, client: SupportedClient, workingDir: string): Promise; /** * Register the mcp command * * MCP Runtime: run a .photon.ts file as MCP server */ export declare function registerMCPCommand(program: Command): void; //# sourceMappingURL=mcp.d.ts.map