@noleemits/vision-builder-control-mcp 4.45.0 → 4.45.1
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/index.js +8 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -109,7 +109,7 @@ process.on('SIGINT', () => {
|
|
|
109
109
|
// CONFIG
|
|
110
110
|
// ================================================================
|
|
111
111
|
|
|
112
|
-
const VERSION = '4.45.
|
|
112
|
+
const VERSION = '4.45.1';
|
|
113
113
|
const MIN_PLUGIN_VERSION = '4.13.0'; // Minimum WP plugin version required by this MCP server
|
|
114
114
|
|
|
115
115
|
// ================================================================
|
|
@@ -3450,7 +3450,7 @@ function getToolDefinitions() {
|
|
|
3450
3450
|
},
|
|
3451
3451
|
{
|
|
3452
3452
|
name: 'delete_acf_field',
|
|
3453
|
-
description: 'Remove a field from an ACF field group by field key. Use list_acf_field_groups first to find the key. Permanently deletes the field definition
|
|
3453
|
+
description: 'Remove a field from an ACF field group by field key. Use list_acf_field_groups first to find the key. Permanently deletes the field definition AND strips it from any acf-json/<group_key>.json sync file (v4.45.1+) so ACF Local JSON does not re-register it on the next request. Existing values in post meta are NOT removed.',
|
|
3454
3454
|
inputSchema: {
|
|
3455
3455
|
type: 'object',
|
|
3456
3456
|
properties: {
|
|
@@ -6153,7 +6153,12 @@ async function handleToolCall(name, args) {
|
|
|
6153
6153
|
case 'delete_acf_field': {
|
|
6154
6154
|
const r = await apiCall(`/acf-field?field_key=${encodeURIComponent(args.field_key)}`, 'DELETE');
|
|
6155
6155
|
if (r.code || r.error) return ok(`Failed: ${r.message || r.error}`);
|
|
6156
|
-
|
|
6156
|
+
let msg = `Deleted ACF field: "${r.label}" (${r.name}) [${r.field_key}] from group "${r.group_title}"`;
|
|
6157
|
+
if (Array.isArray(r.json_files_updated) && r.json_files_updated.length) {
|
|
6158
|
+
msg += `\nAlso stripped from ${r.json_files_updated.length} acf-json file(s):`;
|
|
6159
|
+
for (const p of r.json_files_updated) msg += `\n - ${p}`;
|
|
6160
|
+
}
|
|
6161
|
+
return ok(msg);
|
|
6157
6162
|
}
|
|
6158
6163
|
|
|
6159
6164
|
case 'audit_orphan_pages': {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noleemits/vision-builder-control-mcp",
|
|
3
|
-
"version": "4.45.
|
|
3
|
+
"version": "4.45.1",
|
|
4
4
|
"description": "Vision Builder Control MCP server - design token-driven page builder tools for WordPress/Elementor websites",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|