@algosuite/vo-mcp 0.2.0-beta.14 → 0.2.0-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2129,7 +2129,7 @@ async function resolveBearer(env2) {
2129
2129
  return cachedFirebaseToken;
2130
2130
  }
2131
2131
  function createControlPlaneClient({
2132
- baseUrl = process.env.VO_CONTROL_PLANE_URL || "",
2132
+ baseUrl,
2133
2133
  env: env2 = process.env,
2134
2134
  fetchImpl = fetch,
2135
2135
  heartbeatTimeoutMs = Math.min(
@@ -2137,10 +2137,11 @@ function createControlPlaneClient({
2137
2137
  6e4
2138
2138
  )
2139
2139
  } = {}) {
2140
- if (!baseUrl) {
2140
+ const resolvedBaseUrl = baseUrl ?? env2.VO_CONTROL_PLANE_URL ?? "";
2141
+ if (!resolvedBaseUrl) {
2141
2142
  throw new Error("VO_CONTROL_PLANE_URL is required for the code-runner daemon");
2142
2143
  }
2143
- const root = baseUrl.replace(/\/+$/, "");
2144
+ const root = resolvedBaseUrl.replace(/\/+$/, "");
2144
2145
  async function req(method, path17, body, { timeoutMs } = {}) {
2145
2146
  const bearer = await resolveBearer(env2);
2146
2147
  const controller = timeoutMs ? new AbortController() : null;