@cloudhal/mcp-server 0.1.1 → 0.3.0

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.
@@ -175,7 +175,7 @@ const updatePageTool = {
175
175
  name: "update_page",
176
176
  title: "Update page",
177
177
  description:
178
- "Replace a page's title, path, sections or seo, or set its own motion level and chrome (RFC-0025: header default|transparent|hidden, footer default|minimal|hidden; null goes back to the site's). Requires the current `rev` (optimistic locking). Status changes are not allowed here. Snapshots afterwards.",
178
+ "Replace a page's title, path, sections or seo, or set its own motion level and chrome (RFC-0025: header default|transparent|hidden, footer default|minimal|hidden; null goes back to the site's). Set `status` (draft, review, published, archived; RFC-0035) to publish or unpublish this one page: a published page goes live with the next site publish, and a machine translation in a review-required collection needs a person's review first. Requires the current `rev` (optimistic locking). Snapshots afterwards.",
179
179
  inputSchema: obj(
180
180
  {
181
181
  siteId: id,
@@ -185,6 +185,11 @@ const updatePageTool = {
185
185
  path: str("New path"),
186
186
  sections: sectionInput,
187
187
  seo: { type: "object" },
188
+ status: {
189
+ type: "string",
190
+ enum: ["draft", "review", "published", "archived"],
191
+ description: "The page's own status (RFC-0035); live after the next site publish",
192
+ },
188
193
  motion: {
189
194
  type: ["string", "null"],
190
195
  enum: ["none", "subtle", "standard", "expressive", null],
@@ -241,6 +246,7 @@ const updatePageTool = {
241
246
  ...(a.path ? { path: a.path } : {}),
242
247
  ...(a.sections ? { sections: a.sections } : {}),
243
248
  ...(a.seo ? { seo: a.seo } : {}),
249
+ ...(a.status ? { status: a.status } : {}),
244
250
  };
245
251
  try {
246
252
  const saved = await ctx.store.updatePage(next, { writer: mcpWriter(ctx) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudhal/mcp-server",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "description": "Cloudhal MCP server: semantic site tools (pages, articles, snapshots, preview, publish) governed by the policy engine",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://cloudhal.dev",
@@ -56,15 +56,15 @@
56
56
  "README.md"
57
57
  ],
58
58
  "dependencies": {
59
- "@cloudhal/analytics": "0.1.1",
60
- "@cloudhal/agent-runtime": "0.1.1",
61
- "@cloudhal/astro-renderer": "0.1.1",
62
- "@cloudhal/comments": "0.1.1",
63
- "@cloudhal/core-contracts": "0.1.1",
64
- "@cloudhal/core-ts": "0.1.1",
65
- "@cloudhal/storage": "0.1.1",
59
+ "@cloudhal/analytics": "0.3.0",
60
+ "@cloudhal/agent-runtime": "0.3.0",
61
+ "@cloudhal/astro-renderer": "0.3.0",
62
+ "@cloudhal/comments": "0.3.0",
63
+ "@cloudhal/core-contracts": "0.3.0",
64
+ "@cloudhal/core-ts": "0.3.0",
65
+ "@cloudhal/storage": "0.3.0",
66
66
  "@modelcontextprotocol/server": "2.3.1",
67
- "@cloudhal/schedules": "0.1.1"
67
+ "@cloudhal/schedules": "0.3.0"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@cloudflare/workers-types": "^5.20261007.1",