{"_id":"@9d9/mcp-automation","name":"@9d9/mcp-automation","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@9d9/mcp-automation","version":"0.1.0","description":"Automation utilities for Model Context Protocol (MCP) workflows","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"keywords":["mcp","model-context-protocol","automation","workflow","9d9"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/9d9ten/mcp-automation.git"},"scripts":{"build":"tsup","test":"vitest run","prepublishOnly":"npm run build"},"devDependencies":{"tsup":"^8.0.0","typescript":"^5.5.0","vitest":"^2.0.0"},"gitHead":"4af8dfa1459ec8f1cae9111f1b3623d41737d855","_id":"@9d9/mcp-automation@0.1.0","bugs":{"url":"https://github.com/9d9ten/mcp-automation/issues"},"homepage":"https://github.com/9d9ten/mcp-automation#readme","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-q1Ky09zlRBVMFh/VUQjI1VCu+PvqbZgFlrwvq3y1nErbUZByrm8RcxMhRFPCYu/we77nZP5u5DI4EQQxVD9mbw==","shasum":"68f198215fffaabb78a2c97073d7f98d96be9963","tarball":"https://registry.npmjs.org/@9d9/mcp-automation/-/mcp-automation-0.1.0.tgz","fileCount":9,"unpackedSize":22293,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB3a/q/dYRdeD/M+ejX7B3Pzyo+Ro6LqQWxwgpKQZS07AiBNjmBbuT5geTcQi+AahjB9EQkkmHtHSg3KoD+CxSoB9w=="}]},"_npmUser":{"name":"oku.yasu","email":"Service@9d9.co.jp"},"directories":{},"maintainers":[{"name":"oku.yasu","email":"Service@9d9.co.jp"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-automation_0.1.0_1775860385879_0.010479851130050122"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-10T22:33:05.785Z","0.1.0":"2026-04-10T22:33:06.025Z","modified":"2026-04-10T22:33:06.249Z"},"maintainers":[{"name":"oku.yasu","email":"Service@9d9.co.jp"}],"description":"Automation utilities for Model Context Protocol (MCP) workflows","homepage":"https://github.com/9d9ten/mcp-automation#readme","keywords":["mcp","model-context-protocol","automation","workflow","9d9"],"repository":{"type":"git","url":"git+https://github.com/9d9ten/mcp-automation.git"},"bugs":{"url":"https://github.com/9d9ten/mcp-automation/issues"},"license":"MIT","readme":"# @9d9/mcp-automation\n\nAutomation utilities for [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) workflows.\n\n## Install\n\n```bash\nnpm install @9d9/mcp-automation\n```\n\n## Usage\n\n```ts\nimport {\n  createWorkflow,\n  addStep,\n  createStep,\n  executeWorkflow,\n  createServerConfig,\n  defineTool,\n  defineResource,\n} from \"@9d9/mcp-automation\";\n\n// Define server config\nconst config = createServerConfig(\"my-server\", \"stdio\", {\n  command: \"node\",\n  args: [\"server.js\"],\n});\n\n// Define tools\nconst tool = defineTool(\"query\", \"Query data\", {\n  type: \"object\",\n  properties: { q: { type: \"string\" } },\n});\n\n// Build workflow\nlet workflow = createWorkflow(\"wf-1\", \"Data pipeline\");\nworkflow = addStep(workflow, createStep(\"step-1\", \"query\", { q: \"hello\" }));\nworkflow = addStep(workflow, createStep(\"step-2\", \"transform\", { format: \"json\" }, { timeout: 5000 }));\n\n// Execute\nconst result = await executeWorkflow(workflow, async (tool, input) => {\n  // Your tool execution logic here\n  return { data: \"processed\" };\n});\n```\n\n## API\n\n### Server Config\n- `createServerConfig(name, transport, opts?)` — Build MCP server config\n\n### Tool & Resource Definitions\n- `defineTool(name, description, inputSchema)` — Define an MCP tool\n- `defineResource(uri, name, opts?)` — Define an MCP resource\n\n### Workflow Builder\n- `createWorkflow(id, name)` — Create empty workflow\n- `addStep(workflow, step)` — Add step to workflow (immutable)\n- `createStep(id, tool, input, opts?)` — Create workflow step\n\n### Workflow Execution\n- `executeWorkflow(workflow, executor)` — Run workflow with custom executor\n  - Supports timeout per step\n  - Retry with configurable attempts and delay\n  - Error handling: stop, continue, or retry\n\n## License\n\nMIT © [9d9 LLC](https://github.com/9d9ten)\n","readmeFilename":"README.md","_rev":"1-2ceb5eb66988fa188dc39b21245f6d3d"}