Repository navigation
feat(mcp): serve WordPress tools over HTTPS - #6
Merged
Merged
Conversation
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_b1cf6b49-615d-43d6-8c46-7ec1579db3cf) |
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
wpgoCLI and its existing SSH behavior, and prevent WP-CLI flag injection through tool arguments.Verification
make cion Go 1.25.1: formatting, lint with zero issues, and race-enabled unit tests passed.make buildandgit diff --checkpassed.mainidentified two blockers; commit5f25e8bresolves both. A focused review of that commit found no new defects.https://mcp-google.builtbyrobben.com/wpssh/mcp: MCP discovery and seven read tools succeeded;core_versionreturned7.1.1forcomoexteriors; a WP-CLI flag-shaped argument was rejected; unauthenticated requests returned401. A foreign Origin returned403in a separate live check. The existing Google MCP route still returned its expected401.Rollout
The read-only server is running on the Linode. Write tools remain disabled and were not exercised against a live WordPress site. The bearer token is stored on the VPS at
/home/jdjb78/deploy/wpssh-mcp/secrets/token.🤖 Authored by GPT-6 Sol for Jeremy
Note
High Risk
Adds an internet-facing authenticated API that executes remote WP-CLI over SSH, with optional write tools; mistakes in token handling, TLS/proxy settings, or tool args could affect production WordPress sites.
Overview
Introduces
wpssh-mcp, a stateless Streamable HTTP MCP server on/mcpwith bearer auth (env or secret file), TLS/proxy safeguards, and a fixed WordPress tool catalog (seven read tools by default; four write tools behindWPSMCP_ALLOW_WRITES). Tool calls run fresh WP-CLI over SSH via a newinternal/mcpserverlayer, with argument checks to block WP-CLI flag injection.Build and packaging now default to
wpssh-mcp(make build);wpgostays as the legacy CLI (make build-cli). Releases, Homebrew tests, and docs are updated accordingly, plusDockerfile.mcp,.dockerignore, anddeploy/linode-compose.yamlfor a hardened Traefik-backed deployment.SSH pooling gains
NewVerifiedPool(pinnedknown_hostsfor MCP only—the CLI still usesNewPool), identity-aware cache keys, rate-limiter slots held until connection release, and safer idle reuse/cancellation behavior.Reviewed by Cursor Bugbot for commit 5f25e8b. Bugbot is set up for automated code reviews on this repo. Configure here.