Skip to content

feat(mcp): add gittensory_validate_config tool for .gittensory.yml#4049

Merged
gittensory-orb[bot] merged 2 commits into
JSONbored:mainfrom
RealDiligent:feat/mcp-validate-config
Jul 7, 2026
Merged

feat(mcp): add gittensory_validate_config tool for .gittensory.yml#4049
gittensory-orb[bot] merged 2 commits into
JSONbored:mainfrom
RealDiligent:feat/mcp-validate-config

Conversation

@RealDiligent

Copy link
Copy Markdown
Contributor

Summary

Adds gittensory_validate_config so contributors/operators can pre-validate a .gittensory.yml string before pushing. The tool uses parseFocusManifestContent as the single parser source and returns { present, warnings, normalized, status } where status is ok | warn | error.

Surfaces:

  • Hosted Worker MCP (src/mcp/server.ts)
  • stdio MCP package (packages/gittensory-mcp/bin/gittensory-mcp.js)
  • API route POST /v1/validate/focus-manifest
  • CLI gittensory-mcp validate-config --file <path>

Private maintainerNotes are omitted from normalized output.

Closes #2057

Validation

npm test -- test/unit/focus-manifest-validation.test.ts test/unit/mcp-output-schemas.test.ts test/unit/mcp-cli-validate-config.test.ts
npm run build --workspace @jsonbored/gittensory-engine
npm test -- test/unit/mcp-output-schemas.test.ts -t gittensory_validate_config
  • test/unit/focus-manifest-validation.test.ts — ok/warn/error arms, malformed YAML/JSON, oversize input, maintainerNotes redaction
  • test/unit/mcp-output-schemas.test.ts — hosted MCP tool + outputSchema
  • test/unit/mcp-cli-validate-config.test.ts — CLI wrapper
  • test/integration/api.test.ts — API route happy/invalid paths

@RealDiligent RealDiligent requested a review from JSONbored as a code owner July 7, 2026 13:47
@gittensory-orb gittensory-orb Bot added the gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 1.25x multiplier. label Jul 7, 2026
@gittensory-orb

gittensory-orb Bot commented Jul 7, 2026

Copy link
Copy Markdown

Tip

🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

✅ Gittensory review result - approve/merge recommended

Review updated: 2026-07-07 14:48:16 UTC

11 files · no blockers · readiness 100/100 · CI green · clean

✅ Suggested Action - Approve/Merge

  • safe to merge
Signal Result Evidence
Code review ✅ No blockers No AI review summary
Linked issue ✅ Linked #2057
Related work ✅ No active overlap found No same-issue or scoped active PR overlap found.
Change scope ✅ 20/20 Low review scope from cached public metadata (1 linked issue).
Validation posture ✅ 25/25 PR body includes validation/test evidence.
Contributor workload ✅ 10/10 Author activity: 248 registered-repo PR(s), 73 merged, 0 issue(s).
Contributor context ✅ Confirmed Gittensor contributor RealDiligent; Gittensor profile; 248 PR(s), 0 issue(s).
Gate result ✅ Passing No configured blocker found.
Review context
  • Author: RealDiligent
  • Role context: outside_contributor
  • Public audience mode: oss maintainer
  • Lane context: Repository is configured for direct PR review.
  • Public profile languages: JavaScript, Ruby, Svelte, TypeScript, Cuda, Markdown
  • Official Gittensor activity: 248 PR(s), 0 issue(s).
  • PR-specific overlap: none found.
Contributor next steps
  • Keep the PR focused and include validation evidence before maintainer review.
Signal definitions
  • Related work = same linked issue, overlapping active PRs, or title/path similarity.
  • Change scope = cached public metadata such as size labels, draft state, and review-burden hints.
  • Validation posture = whether the PR provides enough public validation/test evidence for maintainer review.
  • Contributor workload = public contributor activity and cleanup pressure, not a repo-wide quality failure.
  • Contributor context = public GitHub/Gittensor identity context; non-Gittensor status is not a blocker.

🟩 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.

  • Re-run Gittensory review

@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.58%. Comparing base (1dc6e0a) to head (70e7d98).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4049   +/-   ##
=======================================
  Coverage   93.57%   93.58%           
=======================================
  Files         378      379    +1     
  Lines       35487    35530   +43     
  Branches    13017    13033   +16     
=======================================
+ Hits        33207    33250   +43     
  Misses       1618     1618           
  Partials      662      662           
Files with missing lines Coverage Δ
src/api/routes.ts 93.98% <100.00%> (+0.02%) ⬆️
src/mcp/server.ts 94.91% <100.00%> (+0.04%) ⬆️
src/services/focus-manifest-validation.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

RealDiligent and others added 2 commits July 7, 2026 22:43
Expose manifest pre-validation via hosted MCP, stdio MCP, API route, and CLI using parseFocusManifestContent as the single parser source.

Closes JSONbored#2057

Co-authored-by: Cursor <cursoragent@cursor.com>
Raise patch coverage for focus-manifest-validation.ts to satisfy codecov/patch.

Co-authored-by: Cursor <cursoragent@cursor.com>

@gittensory-orb gittensory-orb Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gittensory approves — the gate is satisfied and CI is green.

@gittensory-orb gittensory-orb Bot merged commit 590d52c into JSONbored:main Jul 7, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 1.25x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(mcp): gittensory_validate_config tool for .gittensory.yml

1 participant