bricks-mcp-server 0.6.0 → 0.7.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.
- package/dist/index.js +22 -1
- 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.
|
|
36
|
+
const server = new Server({ name: "bricks-mcp-server", version: "0.7.0" }, { capabilities: { tools: {} } });
|
|
37
37
|
const tools = [
|
|
38
38
|
{
|
|
39
39
|
name: "bricks_ping",
|
|
@@ -125,6 +125,21 @@ 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
|
+
},
|
|
128
143
|
content: { type: "array", description: "Bricks elements array" },
|
|
129
144
|
header: { type: "array" },
|
|
130
145
|
footer: { type: "array" },
|
|
@@ -137,6 +152,12 @@ const tools = [
|
|
|
137
152
|
id: z.number().int().positive(),
|
|
138
153
|
expected_modified: z.string().optional(),
|
|
139
154
|
title: z.string().optional(),
|
|
155
|
+
status: z.string().optional(),
|
|
156
|
+
post_content: z.string().optional(),
|
|
157
|
+
excerpt: z.string().optional(),
|
|
158
|
+
date: z.string().optional(),
|
|
159
|
+
featured_media: z.number().int().nonnegative().optional(),
|
|
160
|
+
terms: z.record(z.any()).optional(),
|
|
140
161
|
content: z.array(z.any()).optional(),
|
|
141
162
|
header: z.array(z.any()).optional(),
|
|
142
163
|
footer: z.array(z.any()).optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bricks-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.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": {
|