feat(mcp): expose outcome calibration via gittensory_get_outcome_calibration - #1171
feat(mcp): expose outcome calibration via gittensory_get_outcome_calibration#1171jason020818 wants to merge 1 commit into
Conversation
…bration Wire the slop-band and recommendation outcome calibration service into MCP so maintainers can inspect predictive accuracy without a separate HTTP call. Includes structured output schema validation tests. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1171 +/- ##
==========================================
- Coverage 94.85% 94.84% -0.02%
==========================================
Files 156 156
Lines 18909 18921 +12
Branches 6848 6851 +3
==========================================
+ Hits 17937 17946 +9
Misses 387 387
- Partials 585 588 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review — closed
🛑 Closed — An AI reviewer flagged a likely blocking defect — Resolve the flagged defect and open a new pull request, or override if the reviewers are mistaken. Review summary Blockers
Nits (5)
Why this is blocked
Nits — 1 non-blocking
Review context
Contributor next steps
Signal definitions
Review detailsGenerated from public PR metadata and the diff. Advisory only; deterministic signals remain authoritative. The change adds a new MCP tool `gittensory_get_outcome_calibration` that wraps the outcome-calibration service, introduces input and output Zod schemas, registers the tool, and implements a private handler that fetches the calibration report and returns a summary. The implementation correctly validates repo access, forwards the optional windowDays filter, and formats the response. Unit and integration tests are added to verify schema compliance and tool registration. Blockers
Nits (5)
🟩 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.
|
ghost
left a comment
There was a problem hiding this comment.
Gittensory approves — the gate is satisfied and CI is green.
|
Gittensory is closing this pull request on the maintainer's behalf (AI reviewers agree on a likely critical defect: src/mcp/server.ts: getOutcomeCalibration accesses `slop` properties without checking for undefined, which will throw a TypeError if the calibration report lacks a slop object.). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs are re-reviewed automatically, so an inaccurate close may be reopened, but that does not guarantee it can merge (e.g. if conflicts or failing CI remain). |
|
Gittensory is closing this pull request on the maintainer's behalf (An AI reviewer flagged a likely blocking defect). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs are re-reviewed automatically, so an inaccurate close may be reopened, but that does not guarantee it can merge (e.g. if conflicts or failing CI remain). |
2 similar comments
|
Gittensory is closing this pull request on the maintainer's behalf (An AI reviewer flagged a likely blocking defect). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs are re-reviewed automatically, so an inaccurate close may be reopened, but that does not guarantee it can merge (e.g. if conflicts or failing CI remain). |
|
Gittensory is closing this pull request on the maintainer's behalf (An AI reviewer flagged a likely blocking defect). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs are re-reviewed automatically, so an inaccurate close may be reopened, but that does not guarantee it can merge (e.g. if conflicts or failing CI remain). |
Summary
gittensory_get_outcome_calibrationMCP tool wrapping the existing outcome-calibration servicewindowDaysfilter; structured output schema + integration test coverageTest plan
npx vitest run test/unit/mcp-output-schemas.test.ts test/unit/outcome-calibration.test.ts