@caelo-cms/mcp-server 0.11.10 → 0.11.12
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/dist/http.d.ts.map +1 -1
- package/dist/http.js +22 -0
- package/dist/http.js.map +1 -1
- package/dist/tool-definitions.js +1 -1
- package/dist/tool-definitions.js.map +1 -1
- package/package.json +1 -1
- package/power-catalogue.json +17 -8
package/dist/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAK1D;AAED,wBAAsB,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAK1D;AAED,wBAAsB,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,CAAC,CAAC,CAiClE"}
|
package/dist/http.js
CHANGED
|
@@ -34,6 +34,8 @@ export async function postAdmin(opts) {
|
|
|
34
34
|
body: JSON.stringify(opts.body),
|
|
35
35
|
signal: controller.signal,
|
|
36
36
|
});
|
|
37
|
+
if (res.status === 429)
|
|
38
|
+
throw new Error(await busyMessage(res));
|
|
37
39
|
if (!res.ok) {
|
|
38
40
|
const body = await safeText(res);
|
|
39
41
|
throw new Error(describeIapRejection(res, body) ?? `HTTP ${res.status}: ${body || res.statusText}`);
|
|
@@ -50,6 +52,26 @@ export async function postAdmin(opts) {
|
|
|
50
52
|
clearTimeout(timer);
|
|
51
53
|
}
|
|
52
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* #1375 — the admin is at capacity and did not run the call. Its body says
|
|
57
|
+
* so for the agent (wait, then send the same call again unchanged); the
|
|
58
|
+
* `Retry-After` header carries the wait when the body is not ours (a proxy
|
|
59
|
+
* in front of the admin answered).
|
|
60
|
+
*/
|
|
61
|
+
async function busyMessage(res) {
|
|
62
|
+
const retryAfter = res.headers.get("retry-after");
|
|
63
|
+
const text = await safeText(res);
|
|
64
|
+
try {
|
|
65
|
+
const parsed = JSON.parse(text);
|
|
66
|
+
if (typeof parsed.message === "string" && parsed.message.length > 0)
|
|
67
|
+
return parsed.message;
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
// Not the admin's JSON body: fall through to the header.
|
|
71
|
+
}
|
|
72
|
+
const wait = retryAfter && /^\d+$/.test(retryAfter) ? `${retryAfter} s` : "a few seconds";
|
|
73
|
+
return `Caelo is at capacity right now (HTTP 429), so this call was not run. Wait ${wait}, then send the same call again unchanged.`;
|
|
74
|
+
}
|
|
53
75
|
async function safeText(res) {
|
|
54
76
|
try {
|
|
55
77
|
return (await res.text()).slice(0, 500);
|
package/dist/http.js.map
CHANGED
|
@@ -1 +1 @@
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,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAC1C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
package/dist/tool-definitions.js
CHANGED
|
@@ -31,7 +31,7 @@ export const CHAT_MCP_INSTRUCTIONS = [
|
|
|
31
31
|
export const ADMIN_MCP_INSTRUCTIONS = [
|
|
32
32
|
"This server edits a Caelo CMS site. Before any other caelo tool:",
|
|
33
33
|
"1. Call caelo_open_session once. It opens your own work session — a chat of yours in the Caelo admin, where the operator can follow, undo and stop your work (pass chatSessionId only to continue a session you opened earlier). Every write lands in the site's shared draft (or the session's own experiment branch); stage with stage_changes when the operator asks for it (otherwise offer it when a change is done), but nothing reaches the live site until the operator clicks Publish live in the Caelo admin.",
|
|
34
|
-
"When several agents work in parallel over this connection (sub-agents), each one calls caelo_open_session itself and passes the workSessionId it got on every caelo call, so each works in its own session. Parallel agents never block each other; two calls that edit the same page or entity at once get a conflict that says to re-read and redo the edit.",
|
|
34
|
+
"When several agents work in parallel over this connection (sub-agents), each one calls caelo_open_session itself and passes the workSessionId it got on every caelo call, so each works in its own session. Parallel agents never block each other; two calls that edit the same page or entity at once get a conflict that says to re-read and redo the edit. When the admin is at capacity a call is not run and says it is at capacity (HTTP 429): wait the seconds it names, then send the same call again unchanged.",
|
|
35
35
|
"2. Call caelo_get_context once and follow it: it carries the site model, tool playbook, staging rules, site memory (brand voice, glossary) and the skills index.",
|
|
36
36
|
"3. Load every skill the context marks ALWAYS APPLIES with load_skill before the work it covers (e.g. before writing any visitor-facing copy).",
|
|
37
37
|
"Every tool in this list works over MCP, including approval-gated ones (marked APPROVAL-GATED — deploys, users/roles, languages/locales, plugin settings, bulk deletes …). Call them yourself: Caelo shows the operator an approval card in the Caelo admin (their Live Edit chat and the pending-approvals page), the call waits for Approve/Reject and returns the decision; if the wait times out, call caelo_await_approval with the proposalId. Tell the operator what you requested and that they approve the card in Caelo. Never ask the operator to paste a prompt into the Caelo admin chat or to do a step there that a tool here can do, and never re-propose a pending proposal.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-definitions.js","sourceRoot":"","sources":["../src/tool-definitions.ts"],"names":[],"mappings":"AAAA,mCAAmC;AAEnC;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,2EAA2E;AAE3E;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,+IAA+I;IAC/I,yGAAyG;IACzG,uLAAuL;IACvL,uPAAuP;CACxP,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,kEAAkE;IAClE,yfAAyf;IACzf,
|
|
1
|
+
{"version":3,"file":"tool-definitions.js","sourceRoot":"","sources":["../src/tool-definitions.ts"],"names":[],"mappings":"AAAA,mCAAmC;AAEnC;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,2EAA2E;AAE3E;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,+IAA+I;IAC/I,yGAAyG;IACzG,uLAAuL;IACvL,uPAAuP;CACxP,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,kEAAkE;IAClE,yfAAyf;IACzf,2fAA2f;IAC3f,kKAAkK;IAClK,+IAA+I;IAC/I,8pBAA8pB;IAC9pB,ubAAub;IACvb,oFAAoF;CACrF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,2EAA2E;AAE3E,oEAAoE;AACpE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAE/C,wFAAwF;AACxF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC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;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,kBAAkB;IAClB,iBAAiB;IACjB,gBAAgB;IAChB,yBAAyB;CACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caelo-cms/mcp-server",
|
|
3
3
|
"mcpName": "io.github.caelo-cms/caelo",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.12",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MPL-2.0",
|
|
7
7
|
"description": "MCP servers for Caelo CMS: `caelo_chat` (talk to Caelo's own AI) and the admin-scoped Power-MCP (the full chat-runner tool catalogue, driven by your own agent). Lets Claude Code (or any MCP-aware client) drive a Caelo install from outside the browser.",
|
package/power-catalogue.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.11.
|
|
2
|
+
"version": "0.11.12",
|
|
3
3
|
"tools": [
|
|
4
4
|
{
|
|
5
5
|
"name": "read_content",
|
|
@@ -1947,7 +1947,7 @@
|
|
|
1947
1947
|
},
|
|
1948
1948
|
{
|
|
1949
1949
|
"name": "retry_tool_call",
|
|
1950
|
-
"description": "Fix a failed write call with a small patch instead of resending it — only for a call whose result names `retry_tool_call`. Paths are segment arrays exactly as the error names them (`[\"page\",\"pageType\"]`, `[\"modules\",3,\"html\"]`). `set` writes a value, `remove` drops a key or array entry, `replace` swaps one exact text inside one string (must match once). The call stays kept while you make the calls its error asks for first (create the page type, then patch). The patched call runs as a new call (permissions, validation, approval re-checked); if it fails again, patch the same toolCallId again.",
|
|
1950
|
+
"description": "Fix a failed write call with a small patch instead of resending it — only for a call whose result names `retry_tool_call`. Paths are segment arrays exactly as the error names them (`[\"page\",\"pageType\"]`, `[\"modules\",3,\"html\"]`). `set` writes a value, `remove` drops a key or array entry, `replace` swaps one exact text inside one string (must match once). `remove` takes a list of paths: `remove: [[\"page\",\"terms\"]]`. The call stays kept while you make the calls its error asks for first (create the page type, then patch). The patched call runs as a new call (permissions, validation, approval re-checked); if it fails again, patch the same toolCallId again.",
|
|
1951
1951
|
"inputSchema": {
|
|
1952
1952
|
"type": "object",
|
|
1953
1953
|
"additionalProperties": false,
|
|
@@ -1961,6 +1961,7 @@
|
|
|
1961
1961
|
},
|
|
1962
1962
|
"set": {
|
|
1963
1963
|
"type": "array",
|
|
1964
|
+
"description": "List of {path, value}, e.g. [{\"path\":[\"page\",\"pageType\"],\"value\":\"post\"}].",
|
|
1964
1965
|
"items": {
|
|
1965
1966
|
"type": "object",
|
|
1966
1967
|
"additionalProperties": false,
|
|
@@ -1996,10 +1997,12 @@
|
|
|
1996
1997
|
]
|
|
1997
1998
|
},
|
|
1998
1999
|
"description": "Segment array as the error names it, e.g. [\"modules\",3,\"html\"]."
|
|
1999
|
-
}
|
|
2000
|
+
},
|
|
2001
|
+
"description": "List of paths, e.g. [[\"page\",\"terms\"]]."
|
|
2000
2002
|
},
|
|
2001
2003
|
"replace": {
|
|
2002
2004
|
"type": "array",
|
|
2005
|
+
"description": "List of {path, old, new}.",
|
|
2003
2006
|
"items": {
|
|
2004
2007
|
"type": "object",
|
|
2005
2008
|
"additionalProperties": false,
|
|
@@ -3834,7 +3837,7 @@
|
|
|
3834
3837
|
},
|
|
3835
3838
|
{
|
|
3836
3839
|
"name": "get_quality_audit",
|
|
3837
|
-
"description": "Read the staged site's quality check: plugin page checks (when an active plugin adds any, e.g. SEO) reading EVERY page on every Stage, plus a mobile Lighthouse audit (Performance, Accessibility, Best Practices, SEO) when the Stage changed how pages render. No args = newest audit of THIS chat's Stages.\nReturns per page: scores; Performance metrics (FCP, LCP, TBT, CLS, Speed Index:
|
|
3840
|
+
"description": "Read the staged site's quality check: plugin page checks (when an active plugin adds any, e.g. SEO) reading EVERY page on every Stage, plus a mobile Lighthouse audit (Performance, Accessibility, Best Practices, SEO) when the Stage changed how pages render. No args = newest audit of THIS chat's Stages.\nReturns per page: scores; Performance metrics (FCP, LCP, TBT, CLS, Speed Index: scoring run + Lighthouse rating; LCP element + breakdown; shifted elements + causes); each problem's Lighthouse audit id (e.g. `image-alt`, `color-contrast`, `render-blocking-insight`) + flagged elements (selector, HTML snippet, why, e.g. measured contrast); each page-check problem's rule id `<check>/<rule>` (contains a slash, e.g. `seo-check/title-missing`) + fix hint naming the tool. Plus site-wide findings, non-blocking warnings/hints, infrastructure errors.\nUSE FOR: after a Stage, what to fix. Already accepted -> `list_quality_acceptances`. Never run Lighthouse yourself: the audit runs on the real staged build (no other URL serves it).\nCORE RULES:\n- TARGET 100 IN EVERY CATEGORY + ZERO FINDINGS: every category <100, every scored Lighthouse audit below perfect, every page-check error BLOCKS Publish live. 90 is NOT acceptable — fix until 100 wherever achievable. ACCEPTED problems don't block (a worse value than accepted blocks again). Warnings/hints never block.\n- Speed: fix the worst metric in the module rendering the named element, Stage again, re-read — repeat until Performance 100.\n- Only the truly unfixable goes to the operator: one decision per group (`accept_quality_findings` with `groups`) + the reason.\n- CAELO PLATFORM findings (back/forward cache, caching of Caelo's own files, server response, compression, redirects) come from Caelo's hosting/build: report via `bug_report`, never edit the site for them; they block until Caelo fixes it or the operator accepts.\n- Without an open operator chat (Power-MCP) a call on a queued/running audit waits up to ~50 s; call again if still running.",
|
|
3838
3841
|
"inputSchema": {
|
|
3839
3842
|
"type": "object",
|
|
3840
3843
|
"properties": {
|
|
@@ -3982,10 +3985,16 @@
|
|
|
3982
3985
|
},
|
|
3983
3986
|
{
|
|
3984
3987
|
"name": "retry_quality_audit",
|
|
3985
|
-
"description": "
|
|
3988
|
+
"description": "Run the staged build's quality check when it FAILED (browser, timeout, staging unreachable) or has none (`get_quality_audit` / `get_publish_gate` say so); changes nothing. Not for re-checking fixes — those need a new Stage, which audits itself.",
|
|
3986
3989
|
"inputSchema": {
|
|
3987
3990
|
"type": "object",
|
|
3988
|
-
"properties": {
|
|
3991
|
+
"properties": {
|
|
3992
|
+
"deployRunId": {
|
|
3993
|
+
"description": "The Stage's build run (from `stage_changes` / `get_quality_audit`). Omit = the build staging serves now.",
|
|
3994
|
+
"type": "string",
|
|
3995
|
+
"format": "uuid"
|
|
3996
|
+
}
|
|
3997
|
+
},
|
|
3989
3998
|
"additionalProperties": false
|
|
3990
3999
|
}
|
|
3991
4000
|
},
|
|
@@ -7246,7 +7255,7 @@
|
|
|
7246
7255
|
},
|
|
7247
7256
|
{
|
|
7248
7257
|
"name": "get_plugin",
|
|
7249
|
-
"description": "Read one plugin in detail: version, tier, status, signature, health (loaded on the running servers? why not), recent errors, validator findings, declared tools/skills/capabilities, required plugins + active plugins requiring it, what it asks visitors to consent to (purpose, category, cookies), AI spend last 24h vs its cap. Never returns source.\nUSE FOR: when `list_plugins`' summary isn't enough: why it fails or a submission was rejected, what an inactive plugin adds before `activate_plugin`, whether it nears its AI cap.\nErrors: `core` = Caelo's fault; its line says whether the bug report was only recorded on this site or sent to the Caelo team -> repeat exactly, never say the team knows unless it says sent | `plugin` = the plugin's own code | `transient` = retried. Errors never switch a plugin off.",
|
|
7258
|
+
"description": "Read one plugin in detail: version, tier, status, signature, health (loaded on the running servers? why not), recent errors, change-consumer backoff, time of its broker calls (core ops + own storage), validator findings, declared tools/skills/capabilities, required plugins + active plugins requiring it, what it asks visitors to consent to (purpose, category, cookies), AI spend last 24h vs its cap. Never returns source.\nUSE FOR: when `list_plugins`' summary isn't enough: why it fails or a submission was rejected, what an inactive plugin adds before `activate_plugin`, whether it nears its AI cap.\nErrors: `core` = Caelo's fault; its line says whether the bug report was only recorded on this site or sent to the Caelo team -> repeat exactly, never say the team knows unless it says sent | `plugin` = the plugin's own code | `transient` = retried. Errors never switch a plugin off.",
|
|
7250
7259
|
"inputSchema": {
|
|
7251
7260
|
"type": "object",
|
|
7252
7261
|
"properties": {
|
|
@@ -8121,7 +8130,7 @@
|
|
|
8121
8130
|
},
|
|
8122
8131
|
{
|
|
8123
8132
|
"name": "promote_local_list",
|
|
8124
|
-
"description": "Turn a module's LOCAL list into a SHARED list and bind the field to it, in one call — when
|
|
8133
|
+
"description": "Turn a module's LOCAL list into a SHARED list and bind the field to it, in one call — when another module needs the same entries ('the sidebar shows these links too', 'editors maintain these links without opening the module'). Never for a mobile copy: one <nav> serves every width. `field` = the module's `list` field. Refused when placements show different entries (names them) -> pick the entries to keep, use `upsert_lists_many` + `update_modules_many`. Returns list id + ref `caelo:list/<id>` for binding other modules.",
|
|
8125
8134
|
"inputSchema": {
|
|
8126
8135
|
"type": "object",
|
|
8127
8136
|
"properties": {
|