@cloudgrid-io/mcp 0.20.34 → 0.20.35
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 +1 -1
- package/src/tools/register.js +9 -51
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudgrid-io/mcp",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.35",
|
|
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": {
|
package/src/tools/register.js
CHANGED
|
@@ -77,35 +77,20 @@ export function registerTools(server, ctx) {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
// Every
|
|
81
|
-
//
|
|
82
|
-
//
|
|
83
|
-
|
|
80
|
+
// Every tool registers under its canonical grid_* name ONLY. Deprecated
|
|
81
|
+
// aliases were removed entirely (founder directive, 2026-07-22): each alias
|
|
82
|
+
// doubled the ListTools surface for pure clutter, clients enumerate tools
|
|
83
|
+
// dynamically, and the renames' old names (grid_deploy, grid_set_sharing,
|
|
84
|
+
// grid_copy_app, grid_claim_anonymous_deploy, grid_download_source,
|
|
85
|
+
// grid_fetch, grid_logs) are gone rather than advertised as redirects.
|
|
84
86
|
const reg = (name, config, handler) => {
|
|
85
|
-
registered[name] = { kind: "reg", config, handler };
|
|
86
87
|
server.registerTool(name, config, withCapture(name, handler));
|
|
87
88
|
};
|
|
88
89
|
|
|
89
90
|
const regTool = (name, description, schema, annotations, handler) => {
|
|
90
|
-
registered[name] = { kind: "tool", description, schema, annotations, handler };
|
|
91
91
|
server.tool(name, description, schema, annotations, withCapture(name, handler));
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
-
// Register OLD tool names as deprecated aliases of their new (clearer) names.
|
|
95
|
-
// Same handler/schema; description is redirect-only so it never wins selection.
|
|
96
|
-
// Skips silently if the primary isn't registered in this edition (e.g. a
|
|
97
|
-
// CLI-only tool on the web edition).
|
|
98
|
-
const registerAlias = (oldName, newName) => {
|
|
99
|
-
const r = registered[newName];
|
|
100
|
-
if (!r) return;
|
|
101
|
-
const redirect = `Deprecated alias of ${newName}. Always call ${newName} instead; this name is kept for backward compatibility.`;
|
|
102
|
-
if (r.kind === "reg") {
|
|
103
|
-
server.registerTool(oldName, { ...r.config, description: redirect }, withCapture(oldName, r.handler));
|
|
104
|
-
} else {
|
|
105
|
-
server.tool(oldName, redirect, r.schema, r.annotations, withCapture(oldName, r.handler));
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
|
|
109
94
|
// ── Widget resources (web edition, ChatGPT Apps SDK) ──────────────────────
|
|
110
95
|
if (ctx.edition === "web") {
|
|
111
96
|
server.registerResource("cloudgrid-live-result", LIVE_RESULT_URI, {
|
|
@@ -430,11 +415,9 @@ export function registerTools(server, ctx) {
|
|
|
430
415
|
}
|
|
431
416
|
};
|
|
432
417
|
reg("grid_plug", plugConfig, plugHandler);
|
|
433
|
-
// `grid_deploy`
|
|
434
|
-
//
|
|
435
|
-
//
|
|
436
|
-
// grid_plug's own description, so deploy-intent routing lands on grid_plug.
|
|
437
|
-
registerAlias("grid_deploy", "grid_plug");
|
|
418
|
+
// NOTE: no `grid_deploy` alias — the tool is grid_plug only. "deploy"/
|
|
419
|
+
// "publish"/"ship"/"make live" live in grid_plug's description, so
|
|
420
|
+
// deploy-intent routing lands there without a second listed name.
|
|
438
421
|
|
|
439
422
|
// ── grid_fork / grid_remix / grid_download — direct-API copy/source verbs ──────
|
|
440
423
|
// fork = same-grid byte-carrying copy; remix = cross-grid copy with secrets
|
|
@@ -972,26 +955,6 @@ export function registerTools(server, ctx) {
|
|
|
972
955
|
},
|
|
973
956
|
);
|
|
974
957
|
|
|
975
|
-
// ── Kept alias (both editions): grid_fetch has real muscle memory in saved
|
|
976
|
-
// prompts and older docs. Every other legacy alias was dropped in 0.20.8 -
|
|
977
|
-
// 16 alias schemas were pure ListTools context weight on every session.
|
|
978
|
-
registerAlias("grid_fetch", "grid_get_template");
|
|
979
|
-
// grid_set_sharing → grid_visibility (2026-07-20, founder rename). Same handler
|
|
980
|
-
// and schema; old name kept as a redirect-only deprecated alias so any client
|
|
981
|
-
// still calling it works while the model prefers the new. MUST live here, above
|
|
982
|
-
// the local cutoff: grid_visibility is a both-editions tool, so the alias has
|
|
983
|
-
// to register on the web edition too (hosted callers keep back-compat).
|
|
984
|
-
registerAlias("grid_set_sharing", "grid_visibility");
|
|
985
|
-
// Copy/adopt verbs renamed to match the CLI (fork / remix / pickup / download).
|
|
986
|
-
// Old names kept as redirect-only deprecated aliases; all both-editions tools,
|
|
987
|
-
// so they must register above the local cutoff for hosted back-compat.
|
|
988
|
-
// grid_claim_anonymous_deploy → grid_pickup drops the "claim" naming; claiming
|
|
989
|
-
// an anonymous drop is now grid_pickup with a claim_token (mirrors the CLI's
|
|
990
|
-
// `grid pickup --claim-token`).
|
|
991
|
-
registerAlias("grid_copy_app", "grid_fork");
|
|
992
|
-
registerAlias("grid_claim_anonymous_deploy", "grid_pickup");
|
|
993
|
-
registerAlias("grid_download_source", "grid_download");
|
|
994
|
-
|
|
995
958
|
if (ctx.edition !== "local") return; // web edition stops here — no CLI tools
|
|
996
959
|
|
|
997
960
|
// ── CLI-wrapping tools (local edition only) ───────────────────────────────
|
|
@@ -1310,9 +1273,4 @@ export function registerTools(server, ctx) {
|
|
|
1310
1273
|
}),
|
|
1311
1274
|
);
|
|
1312
1275
|
|
|
1313
|
-
// ── Deprecated aliases (tool-name cleanup): OLD CLI-tool names kept callable
|
|
1314
|
-
// (local edition) as redirect-only aliases of their new, clearer names.
|
|
1315
|
-
// Kept alias (local): grid_logs - muscle memory. The other legacy CLI-tool
|
|
1316
|
-
// aliases were dropped in 0.20.8 (see CHANGELOG).
|
|
1317
|
-
registerAlias("grid_logs", "grid_view_logs");
|
|
1318
1276
|
}
|