feat: add architecture_review tool handler

This commit is contained in:
2026-06-12 10:06:30 +01:00
parent fe2192ec7c
commit 867bc4860c
5 changed files with 599 additions and 52 deletions
+14 -10
View File
@@ -39,20 +39,24 @@ Build the MCP tool handlers that:
## Completed (Phase 4)
- Task 4.1 — ask_chatgpt handler (`src/tools/ask-chatgpt.js`, `test/tools/ask-chatgpt.test.js`) ✅
- Task 4.2 — review_plan handler (`src/tools/review-plan.js`, `test/tools/review-plan.test.js`) ✅
- Task 4.3 — review_code handler (`src/tools/review-code.js`, `test/tools/review-code.test.js`) ✅
- Task 4.4 — debug_issue tool handler (`src/tools/debug-issue.js`, `test/tools/debug-issue.test.js`) ✅
All five MCP tool handlers are complete:
| Handler | File | Tests |
|---------|------|-------|
| handleAskChatGpt | `src/tools/ask-chatgpt.js` | ✅ 27 |
| handleReviewPlan | `src/tools/review-plan.js` | ✅ 28 |
| handleReviewCode | `src/tools/review-code.js` | ✅ 28 |
| handleDebugIssue | `src/tools/debug-issue.js` | ✅ 28 |
| handleArchitectureReview | `src/tools/architecture-review.js` | ✅ 28 |
Total: 139 orchestration-only tests, all passing.
## Next Pending
### Task 4.4 - debug_issue tool handler ✅
### Phase 5 - MCP Server and Tool Registration
Built `src/tools/debug-issue.js` with dependency-injected `handleDebugIssue(input, deps)` and 28 orchestration-only tests in `test/tools/debug-issue.test.js`. Followed the same pattern as 4.1, 4.2, and 4.3. All 28 tests pass.
### Next Pending
- Task 4.5 — architecture_review tool handler (`src/tools/architecture-review.js`, `test/tools/architecture-review.test.js`)
- Register the five tools with the MCP server.
- Implement the stdio server.
## General Rules