Repository navigation
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.
Summary
The historical
serve --usersynopsis collision is already fixed ontrunk. This follow-up corrects the canonicalwp mcp-adapter serveexamples, describes--useras WP-CLI global behavior, and adds a real WordPress/WP-CLI context test to CI.Relates to #325.
Validation
php -l includes/Cli/McpCommand.phpphp -l tests/cli/assert-serve-user-context.phpsh -n tests/cli/test-serve-user-context.shcomposer lint -- includes/Cli/McpCommand.php tests/cli/assert-serve-user-context.phpcomposer phpstangit diff --checkA disposable non-Docker WordPress runtime verified
wp mcp-adapter serve --help, explicit--user=adminresolves user ID 1, no--userresolves an anonymous user ID 0, and an invalid user selector fails before serving. The CI test uses the Docker-backed wp-env runtime. Docker is unavailable locally, sonpm run test:cliand the full Docker-backed PHPUnit suite were not run locally.AI Assistance
OpenAI gpt-5.6-terra via direct OpenCode implementation and verification; OpenAI gpt-6-astra via OpenCode orchestration and review.