Repository navigation
Remove the wp_cli MCP tool (5.47.0) - #292
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the
wp_cliMCP tool. Plainwpthroughsshortrellis vm shellreplaces it.wp_cliwas 398 of 557 MCP calls, mostly reads and single meta writes on production, used because project docs said to. Plainwpran about as often and does more (pipes, chains, SQL or PHP from a file).mcp-server/src/tools/wpCli.ts, becausepublish_post,verify_post,db_pullandurl_audituse them.ssh_commandkeeps its 15,000-character output cap (truncateOutput).wpcommand that writes or reads credentials; reads and--dry-runpreviews need no approval. Recorded inCLAUDE.mdand the ADR.wp-opsGo CLI never had awp_clicommand, so nothing changes there.Users should remove
mcp__wp-ops__wp_clifrom their~/.claude/settings.jsonpermissions.Testing
tsc --noEmitclean,npm testinmcp-serverpasses (14 tests),go test ./...passes.Closes #291