Repository navigation
docs: fix errors, remove duplication and improve examples - #204
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Documentation cleanup and refresh across the repository, removing redundant/outdated content and updating MCP specification references.
Changes:
- Updated MCP specification references from
2025-06-18to2025-11-25in README and guides. - Restructured README, getting-started, and docs to remove duplicated content and link to canonical sources (architecture overview, common issues, etc.).
- Minor code-example improvements (WP Coding Standards compliance:
array()syntax,in_arraystrict mode, added input validation, observability handler param).
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/troubleshooting/common-issues.md | Added strict mode to in_array example. |
| docs/guides/default-server.md | Removed Customization section about mcp_adapter_default_server_config filter. |
| docs/guides/custom-transports.md | Updated spec version; sanitize API key header; use array(). |
| docs/getting-started/installation.md | Added missing observability handler argument in create_server example. |
| docs/getting-started/basic-examples.md | Added title validation, switched to array() syntax and strict in_array. |
| docs/getting-started/README.md | Added observability handler arg; trimmed redundant sections; link to common-issues. |
| docs/architecture/overview.md | Added detailed directory-structure section. |
| docs/README.md | Removed Quick navigation section; condensed footer. |
| README.md | Major restructuring; updated spec version; clarified install paths; new plugins_loaded example. |
| README-INITIAL.md | Deleted obsolete placeholder README. |
| CONTRIBUTING.md | Corrected stale text (Performance Lab → MCP Adapter), fixed SECURITY.md link, removed TODOs. |
Comments suppressed due to low confidence (1)
docs/getting-started/README.md:1
- Same clarification as in installation.md: the
(null = default)comment is ambiguous. Please describe the actual fallback behavior so readers know whether observability is silently disabled or enabled with a default handler.
# Getting Started with MCP Adapter
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #204 +/- ##
=========================================
Coverage 87.85% 87.85%
Complexity 1243 1243
=========================================
Files 53 53
Lines 4035 4035
=========================================
Hits 3545 3545
Misses 490 490
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
justlevine
left a comment
There was a problem hiding this comment.
Did a little technical cleanup in ef0500e . Otherwise this LGTM - thanks @itsgajendraSingh b🙇
Merging so we can iterate in followup PRs.
## Summary Some docs still read like you need a separate Abilities API install. README.md was mostly updated in #165 and #204, but readme.txt and the getting-started guides were still Composer-first and pretty quiet about core. This PR lines those up: says plainly that Abilities API ships with WordPress 6.9+, matches install docs to README (plugin first, Composer for plugin devs), and tightens the admin notice when core is too old. Closes #150 ## What changed - README.md: one line in Dependencies - readme.txt: plugin-first install wording - docs/getting-started/README.md and installation.md: same story, flipped order - common-issues.md + Plugin.php: clearer "you need WP 6.9+" messaging ## Test plan - [x] Read-through for stale abilities-api / composer require references - [ ] Maintainer eyeball on install doc ordering
Summary
Documentation cleanup across the repository focused on accuracy,
removing duplication, and improving code examples to follow WordPress
coding standards.
Removed
Deleted
README-INITIAL.md— stale pre-project placeholder fully superseded byREADME.mdRemoved duplicate and redundant content:
README.mdmcp_adapter_default_server_configfilter example fromdocs/guides/default-server.mddocs/README.mddocs/getting-started/README.mddocs/getting-started/README.md(replaced with a link)README.md(moved todocs/architecture/overview.md)Fixed
CONTRIBUTING.md: wrong plugin name ("Performance Lab plugin" → "MCP Adapter"),{@todo}placeholder, truncated sentence, brokenSECURITY.mdlinkREADME.md: incorrectcomposer require wordpress/abilities-api(it is a plugin, not a Composer package), PHP version (>= 7.4→^7.4 || ^8.0), MCP spec version2025-06-18→2025-11-25,McpAdapter::instance()example now wrapped inplugins_loadedhook with correct timing contextdocs/getting-started/README.mdanddocs/getting-started/installation.md: missingobservability_handlerargument increate_server()examples — tools array was being passed as the wrong positional argumentdocs/guides/custom-transports.md: MCP spec version2025-06-18→2025-11-25docs/troubleshooting/common-issues.md: missing strict comparison (true) inin_array()callImproved
Plugin installation is now the primary recommended method
Added
sanitize_text_field()to API key example indocs/guides/custom-transports.mdAdded input validation (
WP_Error) beforewp_insert_post()indocs/getting-started/basic-examples.mdSwitched
[]toarray()in code examples for WordPress coding standards consistencyAdded strict
truetoin_array()calls in examplesAdded verified directory structure to
docs/architecture/overview.mdincluding 4 files missing from the old mapTest plan
README.mdand verify installation instructions are accuratecreate_server()examples pass the correct number of arguments in all filesdocs/architecture/overview.mddirectory structure matchesincludes/cc @justlevine