feat(mcp): add follow-up issue local-write action spec (#2177) - #3832
feat(mcp): add follow-up issue local-write action spec (#2177)#3832kiannidev wants to merge 1 commit into
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>
|
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 #3832 +/- ##
=======================================
Coverage 93.41% 93.41%
=======================================
Files 325 325
Lines 32844 32873 +29
Branches 12030 12039 +9
=======================================
+ Hits 30680 30709 +29
Misses 1530 1530
Partials 634 634
🚀 New features to boost your workflow:
|
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-06 13:50:06 UTC
🛑 Suggested Action - Reject/Close
Review summary Blockers
Nits — 5 non-blocking
Why this is blocked
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.
|
|
Gittensory is closing this pull request on the maintainer's behalf (No linked issue detected; Maintainer requires a linked issue; AI reviewers agree on a likely critical defect: src/mcp/local-write-tools.ts buildFollowUpIssueSpec (~line 96-100) stores the raw, un-sanitized input.finding.title/detail/action in the returned inputs.finding object even though composeFollowUpIssueTitle/composeFollowUpIssueBody strip HTML comment markers for the command/description — since LocalWriteActionSpec.inputs is documented as letting the harness 'construct its own invocation instead of running command raw' (src/mcp/local-write-tools.ts:13), any consumer using inputs.finding instead of command/inputs.title/inputs.body will emit the un-stripped content (potentially private text hidden in HTML comments) into a public GitHub issue, defeating the feature's core 'public-safe' claim.). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
Implements #2177 by adding
buildFollowUpIssueSpecinsrc/mcp/local-write-tools.ts. The helper composes a public-safe follow-up issue title/body from a deferred review finding, strips HTML comment markers, bounds title/body length, and delegates to the existingbuildFileIssueSpec/gh issue createshape with optional point-bearing labels. No new hosted MCP write path is introduced.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:
npm run test:ciwas run in parts locally;cf-typegen:checkreports staleworker-configuration.d.tsin this environment without anywrangler.jsoncchanges (upstreammainCI is green).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.sqescaping, label/no-label branches, existingFollow-up:prefix handling, and over-long title/body bounding.Made with Cursor