{"_id":"@beautiful-ccg/mcp-server","_rev":"3-a62dec56e7546e5f70f6952007aab248","name":"@beautiful-ccg/mcp-server","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@beautiful-ccg/mcp-server","version":"0.1.0","_id":"@beautiful-ccg/mcp-server@0.1.0","maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"dist":{"shasum":"158cd505d3b39de0d6135d0f9974c9367c6ff663","tarball":"https://registry.npmjs.org/@beautiful-ccg/mcp-server/-/mcp-server-0.1.0.tgz","fileCount":7,"integrity":"sha512-NV0uUXTi0OoW9rH2wkO9I5SKR0cel517uCNOxXX2dBunSi2ZOM39mDEtWuWDxn5nEoYCxY6sE/XXEcY8EXeTsA==","signatures":[{"sig":"MEQCIAJHtMIkMqPfzmxOKB3VJcDTfW+fUnfmQ5gimFoPmLZvAiAr0BdbRc4X9jxkTztbiib41NzvgIsdvyfHlZYZoMq5eg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11922},"main":"./dist/index.cjs","type":"module","_from":"file:beautiful-ccg-mcp-server-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup"},"_npmUser":{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"},"_resolved":"/private/var/folders/n2/l33b5mwj3zq8bqgzq8m6pjx00000gn/T/6c3b56df46cbdfe5e573731f9c73b71f/beautiful-ccg-mcp-server-0.1.0.tgz","_integrity":"sha512-NV0uUXTi0OoW9rH2wkO9I5SKR0cel517uCNOxXX2dBunSi2ZOM39mDEtWuWDxn5nEoYCxY6sE/XXEcY8EXeTsA==","_npmVersion":"11.9.0","description":"MCP server that exposes bccg capabilities as tools via the [Model Context Protocol](https://modelcontextprotocol.io).","directories":{},"_nodeVersion":"24.14.0","dependencies":{"zod":"^3.25.0","@beautiful-ccg/core":"0.1.0","@modelcontextprotocol/sdk":"^1.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server_0.1.0_1775528166885_0.8069175503475186","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@beautiful-ccg/mcp-server","version":"0.2.0","_id":"@beautiful-ccg/mcp-server@0.2.0","maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"dist":{"shasum":"153f4bef83e59575665203baeb9256bc37a7b323","tarball":"https://registry.npmjs.org/@beautiful-ccg/mcp-server/-/mcp-server-0.2.0.tgz","fileCount":7,"integrity":"sha512-DXHTldAJQsVXfQzAAkppy9P3BKny2mgYXmlzB8XER4mT4oke0sx8VT1B7P02jM4na+D7IOFqbsLOvzsJIOxMzg==","signatures":[{"sig":"MEUCIFWaplZvk+YXX5ViinpRuSDFfs6ZJaN15QkUOo0i65xlAiEAj1jGxAMSgJfqp1OINPeUeBWtMQW8UYkmmB7x29fg3Kw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11966},"main":"./dist/index.cjs","type":"module","_from":"file:beautiful-ccg-mcp-server-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup"},"_npmUser":{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"},"_resolved":"/private/var/folders/n2/l33b5mwj3zq8bqgzq8m6pjx00000gn/T/15ce5432582e0cb8814c771583136a8e/beautiful-ccg-mcp-server-0.2.0.tgz","_integrity":"sha512-DXHTldAJQsVXfQzAAkppy9P3BKny2mgYXmlzB8XER4mT4oke0sx8VT1B7P02jM4na+D7IOFqbsLOvzsJIOxMzg==","_npmVersion":"11.9.0","description":"MCP server that exposes bccg capabilities as tools via the [Model Context Protocol](https://modelcontextprotocol.io).","directories":{},"_nodeVersion":"24.14.0","dependencies":{"zod":"^3.25.0","@beautiful-ccg/core":"0.2.0","@modelcontextprotocol/sdk":"^1.12.0","@beautiful-ccg/adapter-base":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server_0.2.0_1775535857393_0.14536795249114665","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@beautiful-ccg/mcp-server","version":"0.3.0","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"publishConfig":{"access":"public"},"dependencies":{"@modelcontextprotocol/sdk":"^1.12.0","zod":"^3.25.0","@beautiful-ccg/adapter-base":"0.3.0","@beautiful-ccg/core":"0.3.0"},"devDependencies":{"@types/node":"^22.0.0","tsup":"^8.4.0","typescript":"^5.8.0"},"scripts":{"build":"tsup","test":"vitest run"},"_id":"@beautiful-ccg/mcp-server@0.3.0","description":"MCP server that exposes bccg capabilities as tools via the [Model Context Protocol](https://modelcontextprotocol.io).","_integrity":"sha512-71bkKOJ0eMTGIcWt14f131RDoboAo9i2vPgZtgn7ZmScKWWW1laRQsf8DgqjVWHDdwqSJjI69JS3uNlNBFbSzw==","_resolved":"/private/var/folders/n2/l33b5mwj3zq8bqgzq8m6pjx00000gn/T/e50024b6aaccb8e3e3ed092f25217110/beautiful-ccg-mcp-server-0.3.0.tgz","_from":"file:beautiful-ccg-mcp-server-0.3.0.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-71bkKOJ0eMTGIcWt14f131RDoboAo9i2vPgZtgn7ZmScKWWW1laRQsf8DgqjVWHDdwqSJjI69JS3uNlNBFbSzw==","shasum":"07081b9c972ef0c15866a5b0d39e9490e1763b2d","tarball":"https://registry.npmjs.org/@beautiful-ccg/mcp-server/-/mcp-server-0.3.0.tgz","fileCount":7,"unpackedSize":11966,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICmXVXlYesa1Y7qDt7UXyVh+jSo9pqSQnj6DkCP54eO+AiAgGFm/oKX2upg4L9khQdRCp8FMVS0X+4in8ASPHuFNnw=="}]},"_npmUser":{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"},"directories":{},"maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server_0.3.0_1775542775806_0.19146181146072738"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-07T02:16:06.769Z","modified":"2026-04-07T06:19:36.105Z","0.1.0":"2026-04-07T02:16:07.042Z","0.2.0":"2026-04-07T04:24:17.551Z","0.3.0":"2026-04-07T06:19:35.952Z"},"description":"MCP server that exposes bccg capabilities as tools via the [Model Context Protocol](https://modelcontextprotocol.io).","maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"readme":"# @beautiful-ccg/mcp-server\n\nMCP server that exposes bccg capabilities as tools via the [Model Context Protocol](https://modelcontextprotocol.io).\n\n## Usage\n\n```typescript\nimport { createServer, startServer } from \"@beautiful-ccg/mcp-server\";\nimport { Orchestrator, Registry } from \"@beautiful-ccg/core\";\n\nconst orchestrator = new Orchestrator(registry);\n\n// Option 1: Start stdio server (blocks)\nawait startServer(orchestrator);\n\n// Option 2: Create server for custom transport\nconst server = createServer(orchestrator);\nawait server.connect(myTransport);\n```\n\n## MCP Tools\n\n### `bccg_run`\n\nRun a prompt through multiple AI CLIs with auto-routing.\n\n| Parameter | Type | Required | Description |\n|---|---|---|---|\n| `prompt` | string | yes | The prompt to run |\n| `strategy` | enum | no | `cheap-first`, `quality-first`, `balanced`, `parallel` |\n| `adapter` | string | no | Specific adapter name |\n| `model` | string | no | Model for intra-CLI routing |\n\n### `bccg_pipeline`\n\nExecute a multi-step CCG pipeline.\n\n| Parameter | Type | Required | Description |\n|---|---|---|---|\n| `steps` | string | yes | Pipeline DSL (e.g. `gemini:summarize -> claude:review`) |\n| `prompt` | string | no | Base prompt for the pipeline |\n\n### `bccg_status`\n\nCheck available CLI adapters and their status. No parameters. Returns JSON.\n\n## Recursion Guard\n\nBoth `bccg_run` and `bccg_pipeline` are blocked when `BCCG_DEPTH >= 1`, returning an error. This prevents infinite loops when a host CLI invokes bccg which would spawn the same CLI.\n\n## Transport\n\nUses `StdioServerTransport` from `@modelcontextprotocol/sdk`. Handles `SIGINT` and `SIGTERM` for clean shutdown.\n\n## Exports\n\n- `createServer(orchestrator): McpServer` — create an MCP server instance\n- `startServer(orchestrator): Promise<void>` — start stdio server (blocks until signal)\n","readmeFilename":"README.md"}