Skip to content

fix(mcp,contract): no default API URL or Orb broker now that api.loopover.ai is retired - #10380

Merged
JSONbored merged 2 commits into
mainfrom
fix/mcp-no-retired-api-default
Dec 2, 2026
Merged

JSONbored merged 2 commits into
mainfrom
fix/mcp-no-retired-api-default

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

LoopOver's hosted API and Orb broker (https://api.loopover.ai) were retired on 2026-11-30, but @loopover/mcp and @loopover/contract still fell back to them. An unconfigured install would call a host that has no DNS and fail with a network error that doesn't name the cause.

What changes

  • @loopover/contract
    • resolveLoopoverApiUrl returns null when nothing is configured. Callers report MISSING_LOOPOVER_API_URL_MESSAGE, which names LOOPOVER_API_URL and the placeholder.
    • A saved apiUrl that names the retired host is ignored, the same way older defaults already were.
    • orbBrokerBaseUrl throws MISSING_ORB_BROKER_URL_MESSAGE when ORB_BROKER_URL is unset.
    • The generated client config (the MCP setup page and the package READMEs) uses the self-hosted placeholder https://reviews.example.com.
  • @loopover/mcp
    • There is no default API URL any more.
    • apiFetch refuses with the message (code missing_api_url) before making any request.
    • The gateway returns that message as its advisory without fetching.
    • config reports the source as unset, and status/doctor print (not set).
    • loopover-verify requires --base-url.
  • Follow-on changes
    • The miner's token resolution makes no session call without a URL.
    • The self-host preflight reports brokered mode without ORB_BROKER_URL at boot, instead of failing on every token mint.
  • Docs
    • .env.example, docker-compose.yml, the root, mcp and contract READMEs and the MCP setup page say what to set.
    • The READMEs and the setup page say that the next release carries this, and that the version on npm today still falls back to the retired host. Nothing is published here.
    • The validator interface doc drops a claim that the verifier runs against production nightly; that workflow no longer runs.

Tests

  • Unset-URL cases for the contract resolver, the broker, the gateway, the verifier, the preflight, the miner's token resolution, and the hosted webhook and tenant secret exchanges.
  • Fixtures that relied on the old default now name a broker or API explicitly; createTestEnv gains an ORB_BROKER_URL fixture.

Not changed

  • The miner's own hard-coded fallbacks (governor-pause-cli, self-review-context, egress-allowlist, orb-export's collector).
  • server.json's registry remote and check-server-manifest.

The former are outside the mcp and contract packages, and the latter is a registry listing for whoever publishes next.

…over.ai is retired

The hosted API and Orb broker at https://api.loopover.ai were retired on 2026-11-30, but the packages
still fell back to them, so an unconfigured install called a host with no DNS and failed with a
network error that named nothing.

- @loopover/contract: resolveLoopoverApiUrl returns null when nothing is configured, with
  MISSING_LOOPOVER_API_URL_MESSAGE for callers to report; the retired host joins the legacy URLs a
  saved config is ignored for. orbBrokerBaseUrl throws MISSING_ORB_BROKER_URL_MESSAGE when
  ORB_BROKER_URL is unset. The generated client config uses the self-hosted placeholder
  https://reviews.example.com.
- @loopover/mcp: no default API URL; apiFetch refuses with the message (code missing_api_url), the
  gateway reports it as its advisory without a request, config reports the source as "unset", and
  loopover-verify requires --base-url.
- The miner's token resolution and the self-host preflight follow: no URL means no session call,
  and brokered mode without ORB_BROKER_URL is a boot problem rather than a failure on every mint.
- Docs: the MCP setup page, READMEs and .env.example say what to set; the READMEs note that the
  next release carries this and the version on npm still falls back to the retired host. The
  validator doc drops the nightly self-verification it no longer runs.
@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.68%. Comparing base (48a4a7b) to head (d3274f1).
⚠️ Report is 4 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
packages/loopover-mcp/bin/loopover-mcp.ts 35.71% 0 Missing and 9 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10380      +/-   ##
==========================================
+ Coverage   92.09%   95.68%   +3.59%     
==========================================
  Files         913      828      -85     
  Lines      111637    63975   -47662     
  Branches    27310    22324    -4986     
==========================================
- Hits       102810    61214   -41596     
+ Misses       7527     1473    -6054     
+ Partials     1300     1288      -12     
Flag Coverage Δ
backend 95.68% <75.00%> (+<0.01%) ⬆️
engine ?
rees ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
packages/loopover-contract/src/cli-config.ts 100.00% <100.00%> (ø)
packages/loopover-contract/src/client-config.ts 100.00% <100.00%> (ø)
packages/loopover-contract/src/discovery.ts 100.00% <ø> (ø)
packages/loopover-contract/src/orb-broker.ts 100.00% <100.00%> (ø)
packages/loopover-mcp/bin/loopover-verify.ts 92.00% <100.00%> (+1.80%) ⬆️
packages/loopover-mcp/lib/gateway.ts 100.00% <100.00%> (ø)
...ages/loopover-miner/lib/github-token-resolution.ts 100.00% <100.00%> (ø)
src/selfhost/preflight.ts 100.00% <100.00%> (ø)
packages/loopover-mcp/bin/loopover-mcp.ts 70.23% <35.71%> (+0.11%) ⬆️

... and 265 files with indirect coverage changes

@codecov

codecov Bot commented Dec 2, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 1.06kB (0.03%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
loopover-ui 3.77MB 1.06kB (0.03%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: loopover-ui

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/tanstack-vendor-DSqTxvCv.js (New) 692.78kB 692.78kB 100.0% 🚀
assets/self-hosting-configuration-BmwUUIyA.js (New) 118.71kB 118.71kB 100.0% 🚀
assets/routes-Cgq9xZOp.js (New) 34.79kB 34.79kB 100.0% 🚀
assets/contributor-relationships-4NpmOIC_.js (New) 28.8kB 28.8kB 100.0% 🚀
assets/fairness-xT2hFmSV.js (New) 21.77kB 21.77kB 100.0% 🚀
assets/self-hosting-docs-audit-CZVSjhQj.js (New) 16.6kB 16.6kB 100.0% 🚀
assets/mcp-clients-CBF7J3JU.js (New) 16.12kB 16.12kB 100.0% 🚀
assets/api._op-D7CrNWZu.js (New) 9.22kB 9.22kB 100.0% 🚀
assets/maintainers-DcpV8fSo.js (New) 8.24kB 8.24kB 100.0% 🚀
assets/miners-1citEFQQ.js (New) 8.04kB 8.04kB 100.0% 🚀
assets/agents-CIdMpHhv.js (New) 7.95kB 7.95kB 100.0% 🚀
assets/maintainer-workflow-BtliNkzk.js (New) 6.52kB 6.52kB 100.0% 🚀
assets/docs-nav-_B82RfYK.js (New) 6.19kB 6.19kB 100.0% 🚀
assets/docs.index-CP3vvDPZ.js (New) 6.04kB 6.04kB 100.0% 🚀
assets/api.index-VNZCO2gG.js (New) 4.73kB 4.73kB 100.0% 🚀
assets/docs-C866MaeS.js (New) 2.96kB 2.96kB 100.0% 🚀
assets/api-DrqzVWeP.js (New) 2.81kB 2.81kB 100.0% 🚀
assets/control-primitives-Ccn4mEQU.js (New) 2.35kB 2.35kB 100.0% 🚀
assets/docs-page-Dc3rQoaC.js (New) 2.14kB 2.14kB 100.0% 🚀
assets/docs._slug-DmgfQ5u2.js (New) 502 bytes 502 bytes 100.0% 🚀
assets/index-CQIsfdWn.js (New) 438 bytes 438 bytes 100.0% 🚀
assets/eye-off-CQ4agn0c.js (New) 429 bytes 429 bytes 100.0% 🚀
assets/bot-CvQ7EXCS.js (New) 327 bytes 327 bytes 100.0% 🚀
assets/wrench-6G-jk7c6.js (New) 302 bytes 302 bytes 100.0% 🚀
assets/compass-CqQ2Wc57.js (New) 250 bytes 250 bytes 100.0% 🚀
assets/lock-DXTK8eDR.js (New) 205 bytes 205 bytes 100.0% 🚀
assets/tanstack-vendor-CBzMGArG.js (Deleted) -692.78kB 0 bytes -100.0% 🗑️
assets/self-hosting-configuration-BuIWLPCv.js (Deleted) -118.69kB 0 bytes -100.0% 🗑️
assets/routes-BlxMOFmh.js (Deleted) -34.79kB 0 bytes -100.0% 🗑️
assets/contributor-relationships-D2uFXVFv.js (Deleted) -28.36kB 0 bytes -100.0% 🗑️
assets/fairness-DlokCttk.js (Deleted) -21.77kB 0 bytes -100.0% 🗑️
assets/self-hosting-docs-audit-CBn14poX.js (Deleted) -16.6kB 0 bytes -100.0% 🗑️
assets/mcp-clients-6zpn9PaA.js (Deleted) -15.52kB 0 bytes -100.0% 🗑️
assets/api._op-CZiRpyu-.js (Deleted) -9.22kB 0 bytes -100.0% 🗑️
assets/maintainers-CtRy8wrK.js (Deleted) -8.24kB 0 bytes -100.0% 🗑️
assets/miners-C8wIEvff.js (Deleted) -8.04kB 0 bytes -100.0% 🗑️
assets/agents-B8vH9XYR.js (Deleted) -7.95kB 0 bytes -100.0% 🗑️
assets/maintainer-workflow-wSo5mJF4.js (Deleted) -6.52kB 0 bytes -100.0% 🗑️
assets/docs-nav-BNvOcAA7.js (Deleted) -6.19kB 0 bytes -100.0% 🗑️
assets/docs.index-Bb6FKvX9.js (Deleted) -6.04kB 0 bytes -100.0% 🗑️
assets/api.index-Dxgnpq83.js (Deleted) -4.73kB 0 bytes -100.0% 🗑️
assets/docs-mK3eZpVB.js (Deleted) -2.96kB 0 bytes -100.0% 🗑️
assets/api-BNUUVTEE.js (Deleted) -2.81kB 0 bytes -100.0% 🗑️
assets/control-primitives-DgkNg_1U.js (Deleted) -2.35kB 0 bytes -100.0% 🗑️
assets/docs-page-D334HF6Q.js (Deleted) -2.14kB 0 bytes -100.0% 🗑️
assets/docs._slug-BCRqGwlw.js (Deleted) -502 bytes 0 bytes -100.0% 🗑️
assets/index-CC0i7GVq.js (Deleted) -438 bytes 0 bytes -100.0% 🗑️
assets/eye-off-Ch_nB5d9.js (Deleted) -429 bytes 0 bytes -100.0% 🗑️
assets/bot-DpvOGaOJ.js (Deleted) -327 bytes 0 bytes -100.0% 🗑️
assets/wrench-ChueR2uY.js (Deleted) -302 bytes 0 bytes -100.0% 🗑️
assets/compass-C4HsDf14.js (Deleted) -250 bytes 0 bytes -100.0% 🗑️
assets/lock-DH_TGpnT.js (Deleted) -205 bytes 0 bytes -100.0% 🗑️

@JSONbored
JSONbored merged commit 65669b4 into main Dec 2, 2026
8 checks passed
@JSONbored
JSONbored deleted the fix/mcp-no-retired-api-default branch December 2, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant