spec_coding_execute_start
Start task execution phase with guidance for implementing features in spec-driven development workflows, using session and feature identifiers to proceed with structured coding tasks.
Instructions
Start the task execution phase and provide guidance for task execution
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session identifier | |
| feature_name | Yes | Feature name | |
| task_id | No | Optional: Specify the task ID to execute; if not specified, the next unfinished task will be executed |
Implementation Reference
- src/tools/execute.ts:9-48 (handler)The main handler function `executeStart` that implements the logic for the `spec_coding_execute_start` tool. It generates execution guidance using a template.export async function executeStart( params: ExecuteStartParams ): Promise<string> { const { session_id, feature_name, task_id = 'next_uncompleted' } = params; console.error(`[MCP] Starting execution for feature: ${feature_name}, task: ${task_id}`); // 使用 execute-task.md 模板 const template = await readTemplate('execute-task.md', { feature_name, session_id, task_id }); return `# ⚙️ Task Execution Stage (5/5) ## Feature: ${feature_name} Congratulations! Now entering the final execution stage. Based on the completed requirements, design, and task planning, let's start executing development tasks one by one. ### Workflow Progress: - [x] 1. Goal Collection ✅ - [x] 2. Requirements Gathering ✅ - [x] 3. Design Documentation ✅ - [x] 4. Task Planning ✅ - [x] 5. **Task Execution** ← Current Stage --- ${template} --- **Session Information**: - Session ID: \`${session_id}\` - Feature Name: \`${feature_name}\` - Current Task: \`${task_id}\` - All Documents: ✅ Completed Now please start executing the development tasks!`; }
- src/server.ts:168-189 (schema)The tool specification including name, description, and input schema for `spec_coding_execute_start`, used for listing and validation.{ name: 'spec_coding_execute_start', description: 'Start the task execution phase and provide guidance for task execution', inputSchema: { type: 'object', properties: { session_id: { type: 'string', description: 'Session identifier' }, feature_name: { type: 'string', description: 'Feature name' }, task_id: { type: 'string', description: 'Optional: Specify the task ID to execute; if not specified, the next unfinished task will be executed' } }, required: ['session_id', 'feature_name'] } }
- src/server.ts:239-241 (registration)The switch case in the CallToolRequest handler that registers and dispatches to the `executeStart` function for `spec_coding_execute_start`.case 'spec_coding_execute_start': result = await executeStart(args as any); break;
- src/tools/execute.ts:3-7 (schema)TypeScript interface defining the input parameters for the handler, matching the tool's input schema.export interface ExecuteStartParams { session_id: string; feature_name: string; task_id?: string; }
- src/server.ts:14-14 (registration)Import statement registering the `executeStart` handler function.import { executeStart } from './tools/execute.js';