Skip to content

Remove the wp_cli MCP tool (5.47.0) - #292

Merged
jasperf merged 2 commits into
mainfrom
remove/wp-cli-mcp-tool
Nov 15, 2026
Merged

jasperf merged 2 commits into
mainfrom
remove/wp-cli-mcp-tool

Conversation

@jasperf

@jasperf jasperf commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Removes the wp_cli MCP tool. Plain wp through ssh or trellis vm shell replaces it.

  • Counted over two months of sessions, wp_cli was 398 of 557 MCP calls, mostly reads and single meta writes on production, used because project docs said to. Plain wp ran about as often and does more (pipes, chains, SQL or PHP from a file).
  • Its read-only check refused reads (wp_cli MCP tool: read-only check refuses common reads #291).
  • The run helpers stay in mcp-server/src/tools/wpCli.ts, because publish_post, verify_post, db_pull and url_audit use them. ssh_command keeps its 15,000-character output cap (truncateOutput).
  • The approval rule carries over: ask before any wp command that writes or reads credentials; reads and --dry-run previews need no approval. Recorded in CLAUDE.md and the ADR.
  • The wp-ops Go CLI never had a wp_cli command, so nothing changes there.

Users should remove mcp__wp-ops__wp_cli from their ~/.claude/settings.json permissions.

Testing

  • tsc --noEmit clean, npm test in mcp-server passes (14 tests), go test ./... passes.

Closes #291

Counted over two months of sessions, wp_cli was mostly a shortcut for reads
and single meta writes on production, used because project docs said to.
Plain wp through ssh or trellis vm shell does more, and the tool's
read-only check refused reads (#291). The run helpers stay in wpCli.ts for
publish_post, verify_post, db_pull and url_audit, and ssh_command keeps its
output cap. The README shows the plain wp forms and the same approval rule
for writes and credential reads. Release as 5.47.0.
@jasperf
jasperf merged commit b565a45 into main Nov 15, 2026
2 checks passed
@jasperf
jasperf deleted the remove/wp-cli-mcp-tool branch November 15, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wp_cli MCP tool: read-only check refuses common reads

1 participant