@diviops/mcp-server 0.2.13 → 0.2.14
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/wp-cli.js +17 -0
- package/package.json +1 -1
package/dist/wp-cli.js
CHANGED
|
@@ -53,6 +53,23 @@ const DEFAULT_COMMANDS = [
|
|
|
53
53
|
'theme list',
|
|
54
54
|
'menu list',
|
|
55
55
|
'site url',
|
|
56
|
+
// Core (read-only only — destructive core commands stay out)
|
|
57
|
+
// `core language list` is listed explicitly; the prefix matcher does exact-prefix equality +
|
|
58
|
+
// space-terminated startsWith, so this does NOT accidentally authorize `core language install`
|
|
59
|
+
// or any other mutating `core language` subcommand.
|
|
60
|
+
'core version',
|
|
61
|
+
'core check-update',
|
|
62
|
+
'core is-installed',
|
|
63
|
+
'core verify-checksums',
|
|
64
|
+
'core language list',
|
|
65
|
+
// DB (read-only introspection only — `db query` stays out; it's arbitrary SQL with no scoping
|
|
66
|
+
// and belongs in a higher-risk tier, tracked separately). See dev-repo #361 Chunk B for the
|
|
67
|
+
// opt-in design discussion.
|
|
68
|
+
'db columns',
|
|
69
|
+
'db size',
|
|
70
|
+
'db tables',
|
|
71
|
+
'db check',
|
|
72
|
+
'db search',
|
|
56
73
|
];
|
|
57
74
|
/**
|
|
58
75
|
* Extended commands that require explicit opt-in via DIVIOPS_WP_CLI_ALLOW env var.
|