feat(mcp): add gittensory_find_opportunities to hosted Worker (#2308) - #3986
Merged
JSONbored merged 4 commits intoJul 7, 2026
Merged
Conversation
andriypolanski
marked this pull request as draft
July 7, 2026 08:51
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
❌ 51 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
andriypolanski
marked this pull request as ready for review
July 7, 2026 09:04
andriypolanski
marked this pull request as draft
July 7, 2026 09:04
Contributor
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-07 09:33:05 UTC
⏸️ Suggested Action - Manual Review
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.
|
added 3 commits
July 7, 2026 02:07
JSONbored
approved these changes
Jul 7, 2026
JSONbored
marked this pull request as ready for review
July 7, 2026 09:36
This was referenced Jul 7, 2026
JSONbored
added a commit
that referenced
this pull request
Jul 8, 2026
…4081) (#4084) src/mcp/find-opportunities.ts (since #3986) imports packages/gittensory-miner/lib/ opportunity-fanout.js (committed, pre-built), which imports @jsonbored/gittensory-engine. That package's dist/ is gitignored and only exists after an explicit build step -- Cloudflare's Workers Builds pipeline for gittensory-api runs npm run deploy:api directly with no such step, so wrangler deploy's bundler has failed to resolve the import on every push to main since 487d26a (2026-07-07T09:36:46Z). Mirrors the identical fix already applied to the self-host image build (#4034), the release build (#4063), and the backend test suite (#4036).
This was referenced Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gittensory_find_opportunitiesMCP tool on/mcp, composing opportunity fan-out (feat(miner-discovery): cross-repo GitHub search/listing fan-out (metadata-only) #2307), deterministic ranker (feat(miner-discovery): pure ranker function — potential x feasibility x laneFit x freshness x (1-dupRisk) #2302), and goal-model signals from@jsonbored/gittensory-engine.POST /v1/opportunities/findso the stdio CLI proxy (packages/gittensory-mcp) can reach the same logic via API.rankScore,laneFit,freshness,dupRisk,aiPolicyAllowed: true); banned repos are hard-skipped upstream and never appear.Closes #2308
Scope
Changed files
src/mcp/find-opportunities.tssrc/mcp/server.tsfindOpportunitieshandler, discovery access gatesrc/api/routes.tsPOST /v1/opportunities/find, path allowlist, API auth helperstest/unit/find-opportunities.test.tsrunFindOpportunitiescoverage (AI-policy hard-skip)test/unit/mcp-find-opportunities.test.tstest/unit/mcp-output-schemas.test.tstest/integration/api.test.tsValidation
git diff --check npm exec vitest run test/unit/find-opportunities.test.ts test/unit/mcp-find-opportunities.test.ts test/unit/mcp-cli-find-opportunities.test.ts npm run test:coverage -- test/unit/find-opportunities.test.ts test/unit/mcp-find-opportunities.test.ts npm run test:ci npm audit --audit-level=moderate