feat(mcp-cli): add gittensory_find_opportunities to the stdio surface - #2681
feat(mcp-cli): add gittensory_find_opportunities to the stdio surface#2681RenzoMXD wants to merge 1 commit into
Conversation
Register gittensory_find_opportunities in packages/gittensory-mcp/bin/gittensory-mcp.js proxying the cross-repo discovery HTTP endpoint via apiPost, following the exact shape of the neighboring gittensory_check_before_start registration. The CLI stays a thin, versioned wrapper rather than reimplementing the ranking logic client-side. Input shape mirrors the hosted tool's contract: targets/searchQuery/goalSpec/limit. Strips undefined optional fields from the proxied body so the hosted API never sees explicit-undefined placeholders. Adds 4 stdio-proxy tests covering tool registration, POST shape, public-safe output, and undefined-field stripping. Extends the test fixture server with a /v1/opportunities/find endpoint that returns a ranked, public-safe candidate list. Closes JSONbored#2309
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2681 +/- ##
=======================================
Coverage 96.10% 96.10%
=======================================
Files 237 237
Lines 26505 26505
Branches 9614 9614
=======================================
Hits 25472 25472
Misses 424 424
Partials 609 609 🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-03 05:19:35 UTC
⏸️ Suggested Action - Manual Review 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.
|
JSONbored
left a comment
There was a problem hiding this comment.
Merge conflicts + review mentions weak testing coverage.
Summary
Closes #2309.
What changed: Registered \gittensory_find_opportunities\ in \packages/gittensory-mcp/bin/gittensory-mcp.js\ proxying the cross-repo discovery HTTP endpoint via \�piPost, following the exact shape of the neighboring \gittensory_check_before_start\ registration. Added 4 stdio-proxy tests and extended the test fixture server with a /v1/opportunities/find\ endpoint.
Files changed:
egisterTool\ call
Validation:
px vitest run test/unit/mcp-cli-find-opportunities.test.ts\ — 4/4 pass
px tsc --noEmit\ — clean
Linked issue: Closes #2309