import { M as McpbManifestInput } from '../mcpb-BXOrsRnv.js'; export { a as McpbTool } from '../mcpb-BXOrsRnv.js'; interface WriteMcpbBundleOptions { /** Where to write the packed `.mcpb` (absolute or cwd-relative). */ outFile: string; /** The manifest inputs (server name, version, mcpUrl, tools, …). */ manifest: McpbManifestInput; /** * The mcpb CLI to shell out to. Default: `["npx", "-y", "@anthropic-ai/mcpb"]`. * Pass a locally-installed binary path (string) or argv (array) to avoid the * npx network fetch. */ mcpbBin?: string | string[]; /** Run `mcpb validate` before packing. Default true. */ validate?: boolean; /** Keep the temp work dir instead of removing it (debugging). Default false. */ keepWorkDir?: boolean; /** Working directory the CLI runs in. Default `process.cwd()`. */ cwd?: string; } interface WriteMcpbBundleResult { /** Absolute path to the written `.mcpb`. */ outFile: string; /** Size of the written bundle in bytes. */ bytes: number; /** The manifest object that was packed. */ manifest: Record; /** The work dir used (returned even after cleanup, for logging). */ workDir: string; } /** * Generate a `manifest.json` + `server/proxy.js` for a remote MCP server, then * validate and pack them into a `.mcpb` using the official `@anthropic-ai/mcpb` * CLI. Returns the output path + size. * * ```ts * import { writeMcpbBundle } from "@particle-academy/agent-integrations/connectors/build"; * * await writeMcpbBundle({ * outFile: "public/decksmith.mcpb", * manifest: { * name: "decksmith", * display_name: "Decksmith", * version: "0.2.0", * description: "Agent-driven slide deck builder.", * author: { name: "Particle Academy", url: "https://decksmith.dev" }, * mcpUrl: "https://decksmith.dev/mcp", * tools: [{ name: "start_session", description: "…" }], * }, * }); * ``` */ declare function writeMcpbBundle(opts: WriteMcpbBundleOptions): Promise; export { McpbManifestInput, type WriteMcpbBundleOptions, type WriteMcpbBundleResult, writeMcpbBundle };