Skip to content

Tasks: Add Template MCP Tools

Project: ai-plans PRD: link to PRD Progress: 25/25

Task 1: Create get-prd-template Tool

  • Status: done
  • Description: Implement MCP tool to return PRD template
  • Files: mcp-server/src/tools/get-prd-template.ts
  • Subtasks:
  • Create new file
  • Implement getPrdTemplate() function
  • Read from templates/PRD.md
  • Handle file not found errors
  • Export function

Task 2: Create get-tasks-template Tool

  • Status: done
  • Description: Implement MCP tool to return Tasks template
  • Files: mcp-server/src/tools/get-tasks-template.ts
  • Subtasks:
  • Create new file
  • Implement getTasksTemplate() function
  • Read from templates/TASKS.md
  • Handle file not found errors
  • Export function

Task 3: Register Tools in Server

  • Status: done
  • Description: Add new tools to MCP server
  • Files: mcp-server/src/server.ts
  • Subtasks:
  • Import both template functions
  • Add get_prd_template to tools list
  • Add get_tasks_template to tools list
  • Add handlers in switch case
  • Define input schemas (no parameters)

Task 4: Build and Test

  • Status: done
  • Description: Compile and test new tools
  • Files: mcp-server/
  • Subtasks:
  • Run pnpm build
  • Test get_prd_template returns correct content
  • Test get_tasks_template returns correct content
  • Test error handling for missing files
  • Verify tools work from Kiro

Task 5: Update Documentation

  • Status: done
  • Description: Document new tools in steering file
  • Files: .kiro/steering/ai-plans-workflow.md, README.md
  • Subtasks:
  • Add tools to Available MCP Tools list
  • Document workflow for using templates
  • Update README with new tool count (9 tools)
  • Add usage examples
  • Deploy to production