feat(mcp): MCP/HTTP affected tool (Phase 2)#133
Conversation
Extract shared affected-engine from cmd-affected; register affected on MCP/HTTP with paths/changed_since/test_glob/max_depth. Document in mcp-instructions and skill; include in CODEMAP_MCP_TOOLS allowlist.
🦋 Changeset detectedLatest commit: bff97fd The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Warning Review limit reached
Your plan includes 1 review of capacity. Refill in 42 minutes and 17 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (19)
📝 WalkthroughWalkthroughThis PR introduces a new MCP/HTTP ChangesMCP/HTTP Affected Tool Implementation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Move tryRecordRecipeRun to handleAffected/runAffectedCmd (recipe_recency boundary). Align max_depth integer validation, HTTP 400 vs 500, agent changed_since error labels. Expand tests and architecture/docs updates.
…ests Require integer coercion for recipe number params, document recency skip on empty paths, and add MCP/HTTP/CLI parity tests for max_depth validation and recipe_recency writes.
Summary
affectedtool with{ paths?, changed_since?, test_glob?, max_depth? }— same preprocessor ascodemap affected→affected-testsrecipe.src/application/affected-engine.ts(CLI + transports).mcp-instructions+ skill; registers inCODEMAP_MCP_TOOLSallowlist.Follow-up to #132 (Phase 2 optional from agent-surface plan).
Test plan
bun test src/application/affected-engine.test.tsbun test src/application/mcp-server.test.ts(affected + allowlist)bun test src/application/http-server.test.ts(affected)bun test src/cli/cmd-affected.test.tsbun run typecheckSummary by CodeRabbit
New Features
Documentation