Skip to content

Serve all API traffic from api.sandbase.ai - #64

Merged
liyangbing merged 1 commit into
mainfrom
migrate-api-host-to-api-subdomain
Oct 11, 2026
Merged

liyangbing merged 1 commit into
mainfrom
migrate-api-host-to-api-subdomain

Conversation

@liyangbing

Copy link
Copy Markdown
Contributor

What

Collapse all CLI API calls onto the api.sandbase.ai host. The main-site (www.sandbase.ai) and bare (sandbase.ai) hosts are no longer used as API entry points.

  • Authorization API default (connect/login): sandbase.ai → api.sandbase.ai (6 call sites in commands.ts)
  • MCP endpoint: removed the implicit cross-host fallback in endpointCandidates (both src/agent/client.ts and assets/mcp-bridge.mjs); the API is served only from api.sandbase.ai
  • Published MCP registry remote (server.json): sandbase.ai/v1/mcp → api.sandbase.ai/v1/mcp; the post-publish check accepts both during rollout

Backwards compatibility

  • Ownership checks (a1-adapters.ts) recognize api.sandbase.ai, sandbase.ai, and www.sandbase.ai, so configs written by older CLI versions are not rejected as foreign on upgrade.
  • Users can still opt into extra mirror hosts explicitly via SANDBASE_MCP_FALLBACK_URLS.

Not changed

  • Web links (console, docs, billing, privacy) stay on www.sandbase.ai — those are product pages, not API endpoints.

Verification

  • npm run lint passes
  • npm test — 172 pass, 1 skip, 0 fail
  • Confirmed /api/cli/authorizations on api.sandbase.ai returns a 400 business error (route reachable), so moving connect to the API host is safe.

Point the authorization API, MCP bridge default, and published MCP
registry remote at api.sandbase.ai, and drop the implicit cross-host
fallback so the main-site and bare hosts are no longer API entry points.
Ownership checks still recognize the legacy sandbase.ai and www hosts so
configs written by older CLI versions keep working after upgrade. Users
can still opt into extra mirrors via SANDBASE_MCP_FALLBACK_URLS.

Web links (console, docs, billing) stay on www.sandbase.ai.
@liyangbing
liyangbing merged commit 3eb618c into main Oct 11, 2026
1 check passed
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