feat(mcp): expose .loopover.yml config recommendations as a read-only MCP tool - #6016
Conversation
… MCP tool Add loopover_get_config_recommendation, mirroring the existing loopover_get_registration_readiness tool: read-only, requireRepoAccess-gated, advisory only (never writes config). Wire it into the repo-owner-intake agent profile's recommended tools.
|
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 #6016 +/- ##
=======================================
Coverage 95.16% 95.16%
=======================================
Files 591 591
Lines 46934 46942 +8
Branches 15000 15001 +1
=======================================
+ Hits 44664 44672 +8
Misses 1512 1512
Partials 758 758
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-15 07:12:54 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 4 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 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 LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
loopover_get_config_recommendationtosrc/mcp/server.ts, wrapping the existingbuildGittensorConfigRecommendationResponse(src/api/routes.ts) exactly like the siblingloopover_get_registration_readiness/loopover_get_label_audittools, so MCP clients can fetch.loopover.ymlrecommendations without direct REST access.repo-owner-intakeMCP client profile'srecommendedToolslist (packages/loopover-mcp/bin/loopover-mcp.js), since that profile's stated purpose already names config recommendations but had no tool for it.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.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=moderateSafety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails.Notes
buildGittensorConfigRecommendationResponsehandler unmodified (aside from exporting it) — no changes to the underlying recommendation logic, per the issue's explicit instruction not to reimplementbuildGittensorConfigRecommendation.requireRepoAccess, matching the real REST route's auth tier (no additional gate) and the precedent set by the already-shippedloopover_get_registration_readinesstool, which exposes adjacent economics-adjacent data at the same tier.report.warnings.length(notreasons.length, which is always non-empty by construction) so both the "no outstanding warnings" and "warning(s) to review" branches are genuinely reachable and are each covered by a dedicated test.