@cloudgrid-io/mcp 0.20.47 → 0.20.48

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudgrid-io/mcp",
3
- "version": "0.20.47",
3
+ "version": "0.20.48",
4
4
  "description": "MCP access to CloudGrid — the live runtime environment where the user's apps run WITH the infrastructure they need out of the box: managed MongoDB, Redis (cache/queues/pub-sub), a pgvector store, persistent disk, and built-in AI with no API keys, in any language or stack, no Docker or Kubernetes to manage. Brainstorm, build, plug, and improve apps, games, dashboards, and tools; instant single-page publishes and full runtime-app deploys with a live URL — for developers and non-technical users. Three editions: local stdio (full toolset), hosted web (light, CLI-free), and a public docs-search server.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -316,8 +316,8 @@ const GUEST_ORG_SLUG = "guest";
316
316
  // `<slug>--<grid>.cloudgrid.io`), so it must never be the primary source:
317
317
  // - inspiration (HTML drops): path-based at the org apex
318
318
  // https://<grid>.cloudgrid.io/<slug>
319
- // - runtime (app/agent): subdomain
320
- // https://<slug>.<grid>.cloudgrid.io
319
+ // - runtime (app/agent): flat-arch double-dash host
320
+ // https://<slug>--<grid>.cloudgrid.io
321
321
  // Anonymous drops are grid-less in the response (`grid: null`); they live under
322
322
  // the Guest Org, so the apex slug is the constant `guest`.
323
323
  function composePlugUrl(data) {
@@ -326,7 +326,11 @@ function composePlugUrl(data) {
326
326
  const grid = data?.grid || GUEST_ORG_SLUG;
327
327
  const kind = data?.detection?.kind;
328
328
  if (kind === "app" || kind === "agent") {
329
- return `https://${slug}.${grid}.cloudgrid.io`;
329
+ // Flat-arch host: runtime entities serve at `<slug>--<grid>.cloudgrid.io`
330
+ // (double-dash), NOT the legacy nested `<slug>.<grid>` form — the latter
331
+ // 404s on every current grid. Still fallback-only; the server's `data.url`
332
+ // remains the primary source (resolvePlugUrl).
333
+ return `https://${slug}--${grid}.cloudgrid.io`;
330
334
  }
331
335
  // inspiration (and any unknown/static kind) — path-based at the org apex.
332
336
  return `https://${grid}.cloudgrid.io/${slug}`;