diff --git a/README.md b/README.md index 753faad..f64f0b6 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ These now describe the current request-scoped site only. - `find_content_by_url` - `get_content_by_slug` -Content read tools support `fields: ["acf"]` and `acf_format` for focused ACF reads. Content create/update tools support a nested `acf` object for ACF/ACF Pro writes. +Content read tools support `fields: ["acf"]` and `acf_format` for focused ACF reads. Content create/update tools support a nested `acf` object for ACF/ACF Pro writes. `create_content` defaults `content` to an empty string, so ACF-driven posts can be created with `title` plus `acf` without inventing a classic editor body. ### Taxonomies diff --git a/package.json b/package.json index 890213c..acabca4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@missionsquad/mcp-wordpress", - "version": "0.2.5", + "version": "0.2.6", "description": "A Model Context Protocol server for interacting with WordPress.", "type": "module", "main": "./build/server.js", diff --git a/src/tools/unified-content.ts b/src/tools/unified-content.ts index e3e11c3..842768a 100644 --- a/src/tools/unified-content.ts +++ b/src/tools/unified-content.ts @@ -113,7 +113,7 @@ const getContentSchema = z.object({ const createContentSchema = z.object({ content_type: z.string().describe("The content type slug"), title: z.string().describe("Content title"), - content: z.string().describe("Content body"), + content: z.string().optional().default('').describe("Content body. Optional for ACF-driven content; defaults to an empty string."), status: z.string().optional().default('draft').describe("Content status"), excerpt: z.string().optional().describe("Content excerpt"), slug: z.string().optional().describe("Content slug"), @@ -201,7 +201,7 @@ export const unifiedContentTools: Tool[] = [ }, { name: "create_content", - description: "Creates new content of any type. To set ACF/ACF Pro fields, pass them under the nested acf object after verifying unknown fields with get_acf_schema.", + description: "Creates new content of any type. The content body is optional and defaults to an empty string, which is useful for ACF-driven posts. To set ACF/ACF Pro fields, pass them under the nested acf object after verifying unknown fields with get_acf_schema.", inputSchema: { type: "object", properties: createContentSchema.shape } }, {