@noleemits/vision-builder-control-mcp 4.16.0 ā 4.16.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 +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -104,7 +104,7 @@ process.on('SIGINT', () => {
|
|
|
104
104
|
// CONFIG
|
|
105
105
|
// ================================================================
|
|
106
106
|
|
|
107
|
-
const VERSION = '4.16.
|
|
107
|
+
const VERSION = '4.16.1';
|
|
108
108
|
const MIN_PLUGIN_VERSION = '4.13.0'; // Minimum WP plugin version required by this MCP server
|
|
109
109
|
|
|
110
110
|
// ================================================================
|
|
@@ -2168,7 +2168,8 @@ function getToolDefinitions() {
|
|
|
2168
2168
|
parent: { type: 'number', description: 'Parent post/page ID (for hierarchical types like pages). Changes URL structure.' },
|
|
2169
2169
|
taxonomies: { type: 'object', description: '{"category": [1,2]}' },
|
|
2170
2170
|
featured_image_id: { type: 'number', description: 'Attachment ID (omit to keep, pass null to remove)' },
|
|
2171
|
-
seo: { type: 'object', description: 'RankMath SEO fields to update' }
|
|
2171
|
+
seo: { type: 'object', description: 'RankMath SEO fields to update' },
|
|
2172
|
+
preserve_modified_date: { type: 'boolean', description: 'If true, keep the original last-modified date instead of updating it to now. Useful for content fixes that should not change the published "updated" date.' }
|
|
2172
2173
|
},
|
|
2173
2174
|
required: ['post_id']
|
|
2174
2175
|
}
|
|
@@ -3774,7 +3775,9 @@ async function handleToolCall(name, args) {
|
|
|
3774
3775
|
const { post_id, ...fields } = args;
|
|
3775
3776
|
const r = await apiCall(`/posts/${post_id}`, 'PUT', fields);
|
|
3776
3777
|
if (!r.success) return ok(`Failed: ${r.message || 'Unknown error'}`);
|
|
3777
|
-
|
|
3778
|
+
let out = `Post updated!\nID: ${r.id} | Status: ${r.status}\nTitle: ${r.title}\nUpdated: ${r.updated_fields.join(', ')}\nURL: ${r.url}`;
|
|
3779
|
+
if (r.modified_date_preserved) out += `\nš Modified date preserved: ${r.post_modified}`;
|
|
3780
|
+
return ok(out);
|
|
3778
3781
|
}
|
|
3779
3782
|
|
|
3780
3783
|
case 'delete_post': {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noleemits/vision-builder-control-mcp",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.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",
|