spec_coding_design_start
Initiate design documentation phase with structured guidance for creating technical design documents based on requirements specifications.
Instructions
Start the design documentation phase and provide guidance for creating design documents
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session identifier | |
| feature_name | Yes | Feature name |
Implementation Reference
- src/tools/design.ts:8-46 (handler)The designStart function that executes the tool logic: logs the start, reads a design template, and returns formatted instructions for the design documentation phase including progress markers and session info.export async function designStart( params: DesignStartParams ): Promise<string> { const { session_id, feature_name } = params; console.error(`[MCP] Starting design phase for feature: ${feature_name}`); // Use gen-design.md template const template = await readTemplate('gen-design.md', { feature_name, session_id }); return `# 📝 Design Documentation Stage (3/5) ## Feature: ${feature_name} ### Workflow Progress: - [x] 1. Goal Collection ✅ - [x] 2. Requirements Gathering ✅ - [x] 3. **Design Documentation** ← Current Stage - [ ] 4. Task Planning - [ ] 5. Task Execution --- ${template} --- **Important**: - Please create design document according to the above guidelines - **Only when you explicitly confirm the design is complete can you call** \`spec_coding_design_confirmed\` tool - **Never** call the next stage tool before the user **explicitly confirms the design** **Session Information**: - Session ID: \`${session_id}\` - Feature Name: \`${feature_name}\` - Requirements: \`docs/specs/${feature_name}/requirements.md\``; }
- src/server.ts:99-112 (schema)Input schema for the spec_coding_design_start tool defining required session_id and feature_name parameters.inputSchema: { type: 'object', properties: { session_id: { type: 'string', description: 'Session identifier' }, feature_name: { type: 'string', description: 'Feature name' } }, required: ['session_id', 'feature_name'] }
- src/server.ts:96-112 (registration)Registration of the spec_coding_design_start tool in the server's tools list, specifying name, description, and input schema.{ name: 'spec_coding_design_start', description: 'Start the design documentation phase and provide guidance for creating design documents', inputSchema: { type: 'object', properties: { session_id: { type: 'string', description: 'Session identifier' }, feature_name: { type: 'string', description: 'Feature name' } }, required: ['session_id', 'feature_name'] }
- src/server.ts:223-225 (registration)Switch case in the CallToolRequest handler that routes calls to spec_coding_design_start to the designStart implementation.case 'spec_coding_design_start': result = await designStart(args as any); break;
- src/tools/design.ts:3-6 (schema)TypeScript interface defining the input parameters for the designStart handler, matching the tool schema.export interface DesignStartParams { session_id: string; feature_name: string; }