feat(api): mirror plan-idea-claims over REST and the local MCP#6790
feat(api): mirror plan-idea-claims over REST and the local MCP#6790bitfathers94 wants to merge 1 commit into
Conversation
The loopover_plan_idea_claims MCP tool was remote-only: no REST route and no
local CLI/stdio surface, so idea-claim planning was unreachable outside the
hosted MCP server. Add POST /v1/loop/plan-idea-claims and a loopover_plan_idea_claims
stdio tool, both delegating to a shared pure buildIdeaClaimPlanResult in
@loopover/engine so the MCP, REST, and local surfaces can never disagree for
identical input. The remote tool is refactored onto the same builder.
Follows the POST /v1/lint/slop-risk mirror pattern: loose input schema (the
engine's validateIdeaSubmission owns the semantic checks), a malformed/empty
submission returns a 200 { ok:false, errors } domain result rather than a
transport error, and the route is allowlisted for session identities like the
other agent-native self-checks. The stdio tool computes in-process with no API
round-trip. Tests cover every changed line and branch plus output parity across
the mirrored surfaces.
Closes JSONbored#6756
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-17 06:53:26 UTC
Review summary Nits — 4 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
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://loopover.ai/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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6790 +/- ##
==========================================
- Coverage 93.63% 89.26% -4.38%
==========================================
Files 683 683
Lines 68148 68159 +11
Branches 18703 18706 +3
==========================================
- Hits 63812 60842 -2970
- Misses 3350 5559 +2209
- Partials 986 1758 +772
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (validate, validate-tests (3))). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
feat(api): mirror plan-idea-claims over REST and the local MCP
The loopover_plan_idea_claims MCP tool was remote-only: no REST route and no
local CLI/stdio surface, so idea-claim planning was unreachable outside the
hosted MCP server. Add POST /v1/loop/plan-idea-claims and a loopover_plan_idea_claims
stdio tool, both delegating to a shared pure buildIdeaClaimPlanResult in
@loopover/engine so the MCP, REST, and local surfaces can never disagree for
identical input. The remote tool is refactored onto the same builder.
Follows the POST /v1/lint/slop-risk mirror pattern: loose input schema (the
engine's validateIdeaSubmission owns the semantic checks), a malformed/empty
submission returns a 200 { ok:false, errors } domain result rather than a
transport error, and the route is allowlisted for session identities like the
other agent-native self-checks. The stdio tool computes in-process with no API
round-trip. Tests cover every changed line and branch plus output parity across
the mirrored surfaces.
Closes #6756