@krr2020/taskflow-mcp-server 0.1.0-beta.1 → 0.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,286 @@
1
+ # @krr2020/taskflow-mcp-server
2
+
3
+ Model Context Protocol (MCP) server that exposes Taskflow's task management capabilities to AI assistants like Claude Desktop. Delegates all logic to `@krr2020/taskflow-core` for a clean, maintainable architecture.
4
+
5
+ ## 📦 Installation
6
+
7
+ ```bash
8
+ npm install -g @krr2020/taskflow-mcp-server
9
+ ```
10
+
11
+ ## 🚀 Quick Start
12
+
13
+ ### Option 1: Use with Claude Desktop (Recommended)
14
+
15
+ Add to your `claude_desktop_config.json` (located at `~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
16
+
17
+ ```json
18
+ {
19
+ "mcpServers": {
20
+ "taskflow": {
21
+ "command": "npx",
22
+ "args": ["-y", "@krr2020/taskflow-mcp-server"]
23
+ }
24
+ }
25
+ }
26
+ ```
27
+
28
+ After updating the configuration:
29
+ 1. Restart Claude Desktop
30
+ 2. Look for the 🔌 tools menu
31
+ 3. You should see 13 Taskflow tools available
32
+
33
+ ### Option 2: Run Standalone
34
+
35
+ ```bash
36
+ npx @krr2020/taskflow-mcp-server
37
+ ```
38
+
39
+ ## 🛠️ Available Tools (13 Total)
40
+
41
+ ### Initialization
42
+
43
+ #### `init`
44
+ Initialize Taskflow in the current project.
45
+
46
+ **Inputs:**
47
+ - `projectName` (optional): Project name (defaults to directory name)
48
+
49
+ **Actions:**
50
+ - Creates `taskflow.config.json`
51
+ - Creates `.taskflow` directory structure
52
+ - Copies template files (AI-PROTOCOL.md, TASK-GENERATOR.md, etc.)
53
+ - Creates `tasks/` directory
54
+
55
+ ---
56
+
57
+ ### Status & Navigation
58
+
59
+ #### `get_status`
60
+ Get project status, feature status, or story status.
61
+
62
+ **Inputs:**
63
+ - `id` (optional): Feature ID (N) or Story ID (N.M) for specific status
64
+
65
+ **Returns:**
66
+ - Project overview with all features and stories
67
+ - Task progress and completion statistics
68
+ - Active task information
69
+
70
+ #### `find_next_task`
71
+ Find the next available task that can be worked on.
72
+
73
+ **Actions:**
74
+ - Checks task dependencies
75
+ - Returns first available task with `not-started` status
76
+ - Provides task details and context
77
+
78
+ ---
79
+
80
+ ### PRD (Product Requirements Document)
81
+
82
+ #### `prd_create`
83
+ Create a new PRD template for defining features.
84
+
85
+ **Inputs:**
86
+ - `featureName` (required): Name of feature (e.g., "user-authentication")
87
+
88
+ **Actions:**
89
+ - Generates structured markdown template in `tasks/prds/`
90
+ - Includes sections: Overview, User Stories, Technical Requirements, etc.
91
+
92
+ #### `prd_generate_arch`
93
+ Generate CODING-STANDARDS.md and ARCHITECTURE-RULES.md from a PRD.
94
+
95
+ **Inputs:**
96
+ - `prdFile` (required): PRD filename (e.g., "2024-01-15-user-auth.md")
97
+
98
+ **Actions:**
99
+ - Analyzes codebase and PRD
100
+ - Generates project-specific coding standards
101
+ - Creates architecture rules and validation patterns
102
+ - Saves to `.taskflow/ref/` directory
103
+
104
+ ---
105
+
106
+ ### Task Generation
107
+
108
+ #### `tasks_generate`
109
+ Generate complete task breakdown from a PRD.
110
+
111
+ **Inputs:**
112
+ - `prdFile` (required): PRD filename to generate tasks from
113
+
114
+ **Actions:**
115
+ - Creates feature, story, and task hierarchy
116
+ - Sets up dependencies between tasks
117
+ - Generates `project-index.json` and task files
118
+ - Saves to `tasks/` directory structure
119
+
120
+ ---
121
+
122
+ ### Task Workflow
123
+
124
+ #### `start_task`
125
+ Start working on a task.
126
+
127
+ **Inputs:**
128
+ - `taskId` (required): Task ID in format N.M.K (e.g., "1.1.0")
129
+
130
+ **Actions:**
131
+ - Switches to story branch (creates if needed)
132
+ - Loads task requirements and context
133
+ - Sets status to `SETUP`
134
+ - Provides comprehensive AI guidance
135
+
136
+ **Returns:**
137
+ - Task details and description
138
+ - Subtasks and dependencies
139
+ - Context files to read
140
+ - AI-specific execution guidance
141
+
142
+ #### `check_task`
143
+ Validate current task and advance to next status.
144
+
145
+ **Behavior varies by current status:**
146
+ - `SETUP` → `IMPLEMENTING`: Confirms task understanding
147
+ - `IMPLEMENTING` → `VERIFYING`: Confirms code completion
148
+ - `VERIFYING` → `VALIDATING`: Confirms self-review
149
+ - `VALIDATING` → `COMMITTING`: Runs configured validation commands (format, lint, etc.)
150
+ - Returns validation results and next steps
151
+
152
+ #### `commit_task`
153
+ Commit changes and complete the task.
154
+
155
+ **Inputs:**
156
+ - `message` (required): Bullet points describing changes (e.g., "- Added feature X\n- Fixed bug Y")
157
+
158
+ **Actions:**
159
+ - Generates conventional commit message
160
+ - Runs `git add .`
161
+ - Commits with formatted message
162
+ - Pushes to remote
163
+ - Marks task as `completed`
164
+ - Finds next available task
165
+
166
+ **Commit Format:**
167
+ ```
168
+ feat(F1): T1.1.0 - Task title
169
+
170
+ - Bullet point 1
171
+ - Bullet point 2
172
+
173
+ Story: S1.1
174
+ ```
175
+
176
+ #### `resume_task`
177
+ Resume a blocked or on-hold task.
178
+
179
+ **Inputs:**
180
+ - `status` (optional): Status to resume to (setup, implementing, verifying, validating)
181
+
182
+ **Actions:**
183
+ - Restores task to active status
184
+ - Provides guidance on continuing work
185
+ - Loads task context
186
+
187
+ #### `block_task`
188
+ Mark current task as blocked.
189
+
190
+ **Inputs:**
191
+ - `reason` (required): Reason for blocking the task
192
+
193
+ **Actions:**
194
+ - Saves current status before blocking
195
+ - Marks task as `blocked`
196
+ - Clears active session
197
+ - Finds next available task
198
+
199
+ ---
200
+
201
+ ### Retrospective System
202
+
203
+ #### `add_retrospective`
204
+ Add a new error pattern to the retrospective.
205
+
206
+ **Inputs:**
207
+ - `category` (required): Error category (type_error, lint, runtime, build, test, etc.)
208
+ - `pattern` (required): Error pattern to match in validation output
209
+ - `solution` (required): Solution to the error
210
+ - `criticality` (optional): Criticality level (low, medium, high) - defaults to medium
211
+
212
+ **Actions:**
213
+ - Adds entry to `RETROSPECTIVE.md`
214
+ - Pattern will be matched against future validation failures
215
+ - Solution will be displayed when pattern matches
216
+
217
+ #### `list_retrospectives`
218
+ List all retrospective entries.
219
+
220
+ **Inputs:**
221
+ - `category` (optional): Filter by category
222
+
223
+ **Returns:**
224
+ - All retrospective entries with patterns and solutions
225
+ - Error occurrence counts
226
+ - Filterable by category
227
+
228
+ ---
229
+
230
+ ## 🏗️ Architecture
231
+
232
+ This MCP server is a thin wrapper around `@krr2020/taskflow-core`:
233
+
234
+ ```
235
+ MCP Server (index.ts)
236
+ ├── Tool Definitions (13 tools)
237
+ ├── Input Validation (Zod schemas)
238
+ └── Command Delegation
239
+ └── @krr2020/taskflow-core
240
+ ├── 13 Command Classes
241
+ └── 8 Library Modules
242
+ ```
243
+
244
+ **Key Benefits:**
245
+ - Zero business logic duplication
246
+ - All logic in tested core package
247
+ - MCP server focuses on protocol translation
248
+ - Easy to maintain and extend
249
+
250
+ ## 📊 Command Output Format
251
+
252
+ Every command returns structured output:
253
+
254
+ ```typescript
255
+ {
256
+ success: boolean;
257
+ output: string; // Human-readable output
258
+ nextSteps?: string; // Next action guidance
259
+ aiGuidance?: string; // AI-specific instructions
260
+ contextFiles?: string[]; // Files to read for context
261
+ warnings?: string[]; // Non-fatal warnings
262
+ errors?: string[]; // Error details if success=false
263
+ }
264
+ ```
265
+
266
+ ## 🔧 Development
267
+
268
+ ```bash
269
+ # Install dependencies
270
+ pnpm install
271
+
272
+ # Build
273
+ pnpm build
274
+
275
+ # Start server
276
+ pnpm start
277
+ ```
278
+
279
+ ## 📚 Related Packages
280
+
281
+ - **[@krr2020/taskflow-core](https://www.npmjs.com/package/@krr2020/taskflow-core)** - Core logic and CLI
282
+ - **[Main Documentation](../../README.md)** - Complete workflow documentation
283
+
284
+ ## 📄 License
285
+
286
+ MIT