feat(mcp): add gittensory_get_repo_onboarding_pack tool - #4243
Conversation
Expose the repo onboarding-pack preview via hosted MCP so the stdio prompt has a real data source, with repo-access guard and tests for authorized, unauthorized, and unregistered-repo branches. Closes JSONbored#2223 Co-authored-by: Cursor <cursoragent@cursor.com>
|
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 #4243 +/- ##
=======================================
Coverage 93.78% 93.78%
=======================================
Files 394 394
Lines 36619 36628 +9
Branches 13402 13403 +1
=======================================
+ Hits 34342 34351 +9
Misses 1622 1622
Partials 655 655
🚀 New features to boost your workflow:
|
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-08 18:24:59 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 5 non-blocking
Linked issue satisfactionAddressed 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.
|
Summary
gittensory_get_repo_onboarding_packon the hosted MCP server withownerRepoShapeinput and a zod output schema for the onboarding-pack preview shape.buildRepoOnboardingPackPreviewForRepobehindrequireRepoAccess, returningrepo_not_acceptedwhen the repository is not registered.Closes #2223
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 typecheck(passed before rebase onto latestmain; upstream addedaws4fetchfor selfhost S3 — CI installs full deps)npm run test:coveragelocally on focused MCP onboarding-pack tests; branch arms ingetRepoOnboardingPackcovered (success,repo_not_accepted, forbidden session)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=moderateIf any required check was skipped, explain why:
npm run validate/test:cinot run end-to-end here (large suite + local env variance); focused MCP tests,build:mcp, andnpm auditwere run. CIvalidateis the authoritative gate.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — MCP server change only; no visible UI.
Notes
gittensory_get_maintainer_lane,gittensory_get_label_audit) for access control and structured output.