Add MCP ssh_command and scp_file tools - #215
Merged
Merged
Conversation
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.
Version:
5.18.0This release adds SSH command and SCP file passthrough tools to the MCP server, rounding out roadmap item 13 and giving agents direct shell and file-transfer access to remote hosts alongside the existing WP-CLI wrapper. The new
sshPassthrough.tsmodule implements both tools,server.tsregisters them, andwpCli.tsreceives related adjustments to keep the two invocation paths consistent. Documentation across the README and MCP server recommendations doc was updated to describe usage and mark the roadmap item complete, and the changelog now records the v5.18.0 release. In total the change spans six files with 309 insertions and 25 deletions, entirely additive to the MCP tool surface.MCP Server Tools:
ssh_commandandscp_filetools in a newmcp-server/src/tools/sshPassthrough.tsmodule, giving direct SSH command execution and file-copy capability against remote hosts without routing through WP-CLI.mcp-server/src/server.tsso they are discoverable and callable through the MCP tool interface.mcp-server/src/tools/wpCli.tsfor consistency with the new passthrough tools, likely sharing connection or execution logic.Documentation and Release Notes:
ssh_commandandscp_filetools inmcp-server/README.md, covering usage and parameters for the new capabilities.docs/mcp-server-recommendations.md, closing out a previously tracked gap in the server's tool coverage.CHANGELOG.mdrecording the introduction of the ssh_command and scp_file tools.Files Changed:
CHANGELOG.md(Modified)docs/mcp-server-recommendations.md(Modified)mcp-server/README.md(Modified)mcp-server/src/server.ts(Modified)mcp-server/src/tools/wpCli.ts(Modified)mcp-server/src/tools/sshPassthrough.ts(Added)