bricks-mcp-server 0.6.0 → 0.8.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.
Files changed (2) hide show
  1. package/dist/index.js +42 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ if (subcommand === "doctor" || subcommand === "diagnose") {
33
33
  if (process.env.WP_URL) {
34
34
  console.error(`[bricks-mcp] target WP_URL=${process.env.WP_URL} WP_USER=${process.env.WP_USER ?? "?"}`);
35
35
  }
36
- const server = new Server({ name: "bricks-mcp-server", version: "0.6.0" }, { capabilities: { tools: {} } });
36
+ const server = new Server({ name: "bricks-mcp-server", version: "0.8.0" }, { capabilities: { tools: {} } });
37
37
  const tools = [
38
38
  {
39
39
  name: "bricks_ping",
@@ -125,6 +125,29 @@ const tools = [
125
125
  description: "The `modified` value you got from bricks_get_page. If the page changed since, the update is rejected (409) — re-fetch, merge, retry.",
126
126
  },
127
127
  title: { type: "string" },
128
+ status: {
129
+ type: "string",
130
+ description: "draft | publish | private | pending — e.g. set draft to hide a page.",
131
+ },
132
+ post_content: { type: "string", description: "Post body (WordPress editor content). HTML allowed." },
133
+ excerpt: { type: "string" },
134
+ date: { type: "string", description: "Publish date 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS' (UTC)." },
135
+ featured_media: {
136
+ type: "number",
137
+ description: "Attachment id for the featured image (0 to remove).",
138
+ },
139
+ terms: {
140
+ type: "object",
141
+ description: "Taxonomy terms, e.g. { \"categoria_noticia\": [\"Difusión\"] }.",
142
+ },
143
+ acf: {
144
+ type: "object",
145
+ description: "ACF fields by name, e.g. { \"anio\": \"2024\" }. Uses ACF update_field so {acf_*} dynamic tags render.",
146
+ },
147
+ meta: {
148
+ type: "object",
149
+ description: "Raw post meta by key (for non-ACF custom fields).",
150
+ },
128
151
  content: { type: "array", description: "Bricks elements array" },
129
152
  header: { type: "array" },
130
153
  footer: { type: "array" },
@@ -137,6 +160,14 @@ const tools = [
137
160
  id: z.number().int().positive(),
138
161
  expected_modified: z.string().optional(),
139
162
  title: z.string().optional(),
163
+ status: z.string().optional(),
164
+ post_content: z.string().optional(),
165
+ excerpt: z.string().optional(),
166
+ date: z.string().optional(),
167
+ featured_media: z.number().int().nonnegative().optional(),
168
+ terms: z.record(z.any()).optional(),
169
+ acf: z.record(z.any()).optional(),
170
+ meta: z.record(z.any()).optional(),
140
171
  content: z.array(z.any()).optional(),
141
172
  header: z.array(z.any()).optional(),
142
173
  footer: z.array(z.any()).optional(),
@@ -180,6 +211,14 @@ const tools = [
180
211
  type: "object",
181
212
  description: "Taxonomy terms, e.g. { \"categoria_noticia\": [\"Difusión\"] }.",
182
213
  },
214
+ acf: {
215
+ type: "object",
216
+ description: "ACF fields by name, e.g. { \"anio\": \"2024\", \"autores\": \"Rojas, H.\" }. Uses ACF update_field so {acf_*} dynamic tags render.",
217
+ },
218
+ meta: {
219
+ type: "object",
220
+ description: "Raw post meta by key (for non-ACF custom fields).",
221
+ },
183
222
  content: { type: "array", description: "Bricks elements array (for Bricks-designed pages)" },
184
223
  settings: { type: "object" },
185
224
  },
@@ -196,6 +235,8 @@ const tools = [
196
235
  date: z.string().optional(),
197
236
  featured_media: z.number().int().positive().optional(),
198
237
  terms: z.record(z.any()).optional(),
238
+ acf: z.record(z.any()).optional(),
239
+ meta: z.record(z.any()).optional(),
199
240
  content: z.array(z.any()).optional(),
200
241
  settings: z.record(z.any()).optional(),
201
242
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bricks-mcp-server",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Provider-agnostic MCP server that exposes Bricks Builder pages, templates, global classes and theme styles as tools. Works with any MCP-compatible client (Claude Code, Codex CLI, etc.).",
5
5
  "type": "module",
6
6
  "bin": {