Refactors the initialize_project MCP tool to call a dedicated direct function (initializeProjectDirect) instead of executing the CLI command. This improves reliability and aligns it with other MCP tools. Key changes include: Modified initialize-project.js to call initializeProjectDirect, required projectRoot parameter, implemented handleApiResult for MCP response formatting, enhanced direct function to prioritize args.projectRoot over session-derived paths, added validation to prevent initialization in invalid directories, forces yes:true for non-interactive use, ensures process.chdir() targets validated directory, and added isSilentMode() checks to suppress console output during MCP operations. This resolves issues where the tool previously failed due to incorrect fallback directory resolution when session context was incomplete.
1.3 KiB
1.3 KiB
name, about, title, labels, assignees
| name | about | title | labels | assignees |
|---|---|---|---|---|
| Enhancements & feature requests | Suggest an idea for this project | feat: | enhancement |
"Direct quote or clear summary of user request or need or user story."
Motivation
Detailed explanation of why this feature is important. Describe the problem it solves or the benefit it provides.
Proposed Solution
Clearly describe the proposed feature, including:
- High-level overview of the feature
- Relevant technologies or integrations
- How it fits into the existing workflow or architecture
High-Level Workflow
- Step-by-step description of how the feature will be implemented
- Include necessary intermediate milestones
Key Elements
- Bullet-point list of technical or UX/UI enhancements
- Mention specific integrations or APIs
- Highlight changes needed in existing data models or commands
Example Workflow
Provide a clear, concrete example demonstrating the feature:
$ task-master [action]
→ Expected response/output
Implementation Considerations
- Dependencies on external components or APIs
- Backward compatibility requirements
- Potential performance impacts or resource usage
Out of Scope (Future Considerations)
Clearly list any features or improvements not included but relevant for future iterations.