spec_coding_requirements_start
Initiate requirements collection for software features by providing structured guidance to gather specifications before development begins.
Instructions
Start the requirements collection phase and provide guidance for requirements gathering
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session identifier | |
| feature_name | Yes | Feature name |
Implementation Reference
- src/tools/requirements.ts:8-45 (handler)The main handler function that executes the tool logic: logs the start, reads the 'gen-requirement.md' template using session and feature data, and returns a formatted markdown response with workflow progress and instructions for requirements gathering.export async function requirementsStart( params: RequirementsStartParams ): Promise<string> { const { session_id, feature_name } = params; console.error(`[MCP] Starting requirements collection for feature: ${feature_name}`); // Use gen-requirement.md template const template = await readTemplate('gen-requirement.md', { feature_name, session_id }); return `# π Requirements Gathering Stage (2/5) ## Feature: ${feature_name} ### Workflow Progress: - [x] 1. Goal Collection β - [x] 2. **Requirements Gathering** β Current Stage - [ ] 3. Design Documentation - [ ] 4. Task Planning - [ ] 5. Task Execution --- ${template} --- **Important**: - Please generate requirements document according to the above guidelines - **Only when you explicitly confirm the requirements are complete can you call** \`spec_coding_requirements_confirmed\` tool - **Never** call the next stage tool before the user **explicitly confirms the requirements** **Session Information**: - Session ID: \`${session_id}\` - Feature Name: \`${feature_name}\``; }
- src/server.ts:63-76 (schema)JSON schema defining the input parameters for the 'spec_coding_requirements_start' tool, used for validation in the MCP server.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:60-77 (registration)Tool registration in the 'tools' array, defining name, description, and input schema for the ListToolsRequest handler.{ name: 'spec_coding_requirements_start', description: 'Start the requirements collection phase and provide guidance for requirements gathering', 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:215-217 (registration)Switch case in the CallToolRequest handler that routes the tool call to the requirementsStart implementation.case 'spec_coding_requirements_start': result = await requirementsStart(args as any); break;
- src/tools/requirements.ts:3-6 (schema)TypeScript type definition for the input parameters of the handler function.export interface RequirementsStartParams { session_id: string; feature_name: string; }