bricks-mcp-server 0.2.0 → 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.
- package/dist/index.js +17 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ if (subcommand === "doctor" || subcommand === "diagnose") {
|
|
|
18
18
|
console.log(formatDiagnosis(d));
|
|
19
19
|
process.exit(d.problem ? 1 : 0);
|
|
20
20
|
}
|
|
21
|
-
const server = new Server({ name: "bricks-mcp-server", version: "0.
|
|
21
|
+
const server = new Server({ name: "bricks-mcp-server", version: "0.3.0" }, { capabilities: { tools: {} } });
|
|
22
22
|
const tools = [
|
|
23
23
|
{
|
|
24
24
|
name: "bricks_ping",
|
|
@@ -27,6 +27,22 @@ const tools = [
|
|
|
27
27
|
schema: z.object({}),
|
|
28
28
|
handler: async () => wpRequest("/ping"),
|
|
29
29
|
},
|
|
30
|
+
{
|
|
31
|
+
name: "bricks_get_schema",
|
|
32
|
+
description: "Get the Bricks element schema: valid element names + the canonical element object shape (id/name/parent/children/settings). Pass an element name to also get its settings/controls. Call this before generating Bricks JSON so the structure persists without breaking the editor.",
|
|
33
|
+
inputSchema: {
|
|
34
|
+
type: "object",
|
|
35
|
+
properties: {
|
|
36
|
+
element: {
|
|
37
|
+
type: "string",
|
|
38
|
+
description: "Optional element name (e.g. heading, button) to fetch its controls.",
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
additionalProperties: false,
|
|
42
|
+
},
|
|
43
|
+
schema: z.object({ element: z.string().optional() }),
|
|
44
|
+
handler: async (args) => wpRequest("/schema", { query: args }),
|
|
45
|
+
},
|
|
30
46
|
{
|
|
31
47
|
name: "bricks_list_pages",
|
|
32
48
|
description: "List pages/posts/templates with Bricks content. Supports search, post_type filter, per_page.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bricks-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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": {
|