feat: add CreatePipeline MCP tool for CLI/MCP parity#68
Merged
Conversation
added 2 commits
March 4, 2026 12:52
Extract pipeline creation logic from CLI into ScheduleManagerService.createPipeline(), then expose it through both MCP (CreatePipeline tool) and CLI (refactored pipeline command). - Add PipelineStepRequest, PipelineCreateRequest, PipelineStep, PipelineResult domain types - Add createPipeline() to ScheduleService interface and ScheduleManagerService - Add CreatePipeline MCP tool with Zod schema, path validation, and handler - Refactor CLI pipeline command to use shared service method (68 → 42 lines) - Add 11 service tests and 6 adapter tests for pipeline functionality
- Extract truncatePrompt() helper in schedule-manager.ts - Fix stale 4-arg MCPAdapter constructor in adapter tests to use stubScheduleService - Remove redundant PipelineStepRequest import and type annotation in MCP adapter
7 tasks
dean0x
added a commit
that referenced
this pull request
Mar 4, 2026
## Summary - Bump version `0.4.0` → `0.4.1` - Add release notes (`docs/releases/RELEASE_NOTES_v0.4.1.md`) - Update CHANGELOG.md with `[0.4.1]` section - Update FEATURES.md with `CreatePipeline` MCP tool entry ## Context PR #68 (squash-merged) added the `CreatePipeline` MCP tool, closing the CLI/MCP feature parity gap. This PR prepares the patch release. ## Test plan - [x] `npm run build` passes - [x] `npm run test:services` — 131 passed - [x] `npm run test:adapters` — 43 passed - [x] `npm run test:cli` — 115 passed - [x] Release notes file exists - [x] Version in `package.json` is `0.4.1` - [ ] After merge: trigger GitHub Actions → Release → Run workflow Co-authored-by: Dean Sharon <deanshrn@gmain.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CreatePipelineMCP tool — the only functional gap between CLI and MCP before public launchScheduleManagerService.createPipeline()(one business logic path, two adapters)beat pipelinecommand to call the shared service method (68 → 42 lines)Changes
src/core/domain.tsPipelineStepRequest,PipelineCreateRequest,PipelineStep,PipelineResultsrc/core/interfaces.tscreatePipeline()added toScheduleServiceinterfacesrc/services/schedule-manager.tscreatePipeline()implementation — validates 2-20 steps, chains one-time schedules, stops on first errorsrc/adapters/mcp-adapter.tssrc/cli/commands/pipeline.tsscheduleService.createPipeline(), added min 2-step validationtests/unit/services/schedule-manager.test.tstests/unit/adapters/mcp-adapter.test.tsTest plan
npm run build— clean compilationnpm run test:core— 331 passednpm run test:handlers— 84 passednpm run test:services— 131 passednpm run test:adapters— 43 passed (+6 new)npm run test:cli— 115 passed