Repository navigation
Serve all API traffic from api.sandbase.ai - #64
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Collapse all CLI API calls onto the
api.sandbase.aihost. The main-site (www.sandbase.ai) and bare (sandbase.ai) hosts are no longer used as API entry points.connect/login):sandbase.ai→api.sandbase.ai(6 call sites incommands.ts)endpointCandidates(bothsrc/agent/client.tsandassets/mcp-bridge.mjs); the API is served only fromapi.sandbase.aiserver.json):sandbase.ai/v1/mcp→api.sandbase.ai/v1/mcp; the post-publish check accepts both during rolloutBackwards compatibility
a1-adapters.ts) recognizeapi.sandbase.ai,sandbase.ai, andwww.sandbase.ai, so configs written by older CLI versions are not rejected as foreign on upgrade.SANDBASE_MCP_FALLBACK_URLS.Not changed
www.sandbase.ai— those are product pages, not API endpoints.Verification
npm run lintpassesnpm test— 172 pass, 1 skip, 0 fail/api/cli/authorizationsonapi.sandbase.aireturns a 400 business error (route reachable), so movingconnectto the API host is safe.