Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/tools/unified-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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 }
},
{
Expand Down
Loading