fix(mcp): parse http and git protocol GitHub remotes - #2107
Conversation
Support legacy git:// and plain http:// GitHub remote URLs so local MCP preflight can infer repoFullName without an explicit --repo override. Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2107 +/- ##
==========================================
- Coverage 95.71% 0 -95.72%
==========================================
Files 222 0 -222
Lines 24620 0 -24620
Branches 8936 0 -8936
==========================================
- Hits 23565 0 -23565
+ Misses 432 0 -432
+ Partials 623 0 -623 🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-01 11:42:53 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 6 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.
|
JSONbored
left a comment
There was a problem hiding this comment.
Please fix these blockers and resubmit:
The main maintainability issue is that the regex list now repeats the same owner/repo capture shape across several protocol variants.
Summary
parseGitRemoteto acceptgit://github.com/owner/repoandhttp://github.com/owner/reporemotes.repoFullNamewithout--repofor legacy URL shapes.No-issue rationale
MCP remote parsing hardening with no linked issue.
Test plan
npx vitest run test/unit/local-branch.test.ts -t \"parses remotes\"Made with Cursor