feat(mcp-cli): add gittensory_find_opportunities to the stdio surface - #2694
Conversation
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-03 06:42:32 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 4 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.
|
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
a5590e9 to
67219a1
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2694 +/- ##
==========================================
- Coverage 96.15% 96.13% -0.02%
==========================================
Files 240 240
Lines 26867 26976 +109
Branches 9751 9790 +39
==========================================
+ Hits 25833 25934 +101
- Misses 424 432 +8
Partials 610 610 🚀 New features to boost your workflow:
|
Summary
Closes #2309.
Reopened from #2681 (closed by the gate after main advanced). Rebased onto latest main; all tests pass.
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
Supersedes #2681 (closed by gate after main advanced).