-
Notifications
You must be signed in to change notification settings - Fork 40
dev: scaffold WordPress plugin wrapper #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is too big to go through each line of code, but even if there are issues, we can address them later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR transforms the MCP Adapter from a standalone library into a canonical WordPress plugin, adding essential plugin infrastructure and updating the development workflow to use wp-env.
- Scaffolds WordPress plugin wrapper with main plugin file and autoloader
- Removes Jetpack Autoloader dependency in favor of standard Composer autoloading
- Updates development environment to use
wp-envfor local testing and linting
Reviewed Changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| mcp-adapter.php | Main plugin entry point with constants and initialization |
| src/Plugin.php | Plugin wrapper class implementing singleton pattern |
| src/Autoloader.php | Custom PSR-4 autoloader with fallback and admin notices |
| tests/bootstrap.php | Simplified test bootstrap for wp-env integration |
| .wp-env.json | WordPress development environment configuration |
| composer.json | Updated dependencies removing Jetpack Autoloader |
| package.json | Added wp-env scripts and build commands |
| .github/workflows/release.yml | GitHub Actions workflow for plugin release automation |
| phpcs.xml.dist | Added main plugin file to PHPCS scanning |
| README.md | Updated installation and usage documentation |
| CONTRIBUTING.md | Added wp-env development workflow instructions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Synced with Follow up PRs:
|
What
This PR adds the required scaffolding to use MCP Adapter as a WordPress Plugin
Important
This PR is based on #16 which should be merged first.
Relevant diff: d5b9157
What's Included
wp-env.jsonand use it for linting/ PHPUnit testingrelease.ymlto add the built plugin as a GitHub Release artifactREADME.mdandCONTRIBUTING.mdwith new commandsNot Included
src(a wholly separate task)srctoincludes(follow-up PR)To Test
Follow the updated
CONTRIBUTING.md#installationsteps:(Assumedly the failing tests are because the API is not compatible with Abilities API. #13 will lint for that)