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.
52 lines
1.3 KiB
Markdown
52 lines
1.3 KiB
Markdown
---
|
|
name: Enhancements & feature requests
|
|
about: Suggest an idea for this project
|
|
title: 'feat: '
|
|
labels: enhancement
|
|
assignees: ''
|
|
---
|
|
|
|
> "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
|
|
|
|
1. Step-by-step description of how the feature will be implemented
|
|
2. 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:
|
|
|
|
```shell
|
|
$ 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.
|