feat(mcp): add follow-up issue local-write action spec (#2177) - #3836
Conversation
Compose a boundary-safe gh issue-create spec from deferred review findings so contributors can file follow-up work locally without a new MCP write path. Co-authored-by: Cursor <cursoragent@cursor.com>
Strip HTML comment markers from inputs.finding so harnesses that read structured fields cannot emit hidden comment text into public issues. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3836 +/- ##
=======================================
Coverage 93.41% 93.41%
=======================================
Files 326 326
Lines 32855 32887 +32
Branches 12035 12044 +9
=======================================
+ Hits 30691 30723 +32
Misses 1530 1530
Partials 634 634
🚀 New features to boost your workflow:
|
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-06 14:49:42 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 5 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
Closes #2177.
Adds
buildFollowUpIssueSpecinsrc/mcp/local-write-tools.tsto compose a public-safe follow-up issue title/body from a deferred review finding, strip HTML comment markers, bound title/body length, and delegate to the existingbuildFileIssueSpec/gh issue createshape with optional point-bearing labels. Structuredinputs.findingis sanitized before return so harnesses cannot emit hidden comment text into public issues.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
Closes #2177wording and unsanitizedinputs.finding; both are fixed here.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — backend-only MCP local-write helper; no visible UI change.
Notes
commands.ts,processors.ts, andfocus-manifest.ts; this PR only changeslocal-write-tools.tsand its unit tests.Made with Cursor