Repository navigation
MCP Adapter 0.7.2
This maintenance release fixes HTTP 400 errors for clients that do not send the MCP-Protocol-Version header after initialize. It also prepares and validates ability input before the adapter runs an ability's permission callback.
What’s Changed
- Clients that omit
MCP-Protocol-Versioncan connect again. Afterinitialize, the adapter uses the negotiated version when a request has no header. Since 0.7.0 such a request received HTTP 400 unless the session used2024-11-05. A header that is sent must still match the negotiated version, and2026-07-28requests still require it. (#411, #416) - Ability input is prepared before permission checks. Permission callbacks of ability-backed tools and prompts now receive normalized and validated input, as they do when WordPress runs the ability directly. A call with invalid input is rejected before the permission callback runs. (#438, #444)
- Correct WP-CLI help examples.
wp help mcp-adapter serveshows the registered command name,wp mcp-adapter serve. (#423) - Clearer 404 troubleshooting for site owners. The site-owner guide separates a 404 that returns a web page from a
rest_no_routeJSON error and gives the checks for each. The WordPress.org FAQ on connecting a client links to the guide. (#379, #415) - Jetpack Autoloader 6.0.3. The bundled autoloader is updated from 6.0.1. (#422, #450)
- Repository maintenance. A
CODEOWNERSfile makes the maintainers team the default owner (#407), and the development dependencies and GitHub Actions are updated.
Developer Notes
- A tool or prompt call with missing or invalid input is now rejected before
mcp_adapter_pre_tool_callandmcp_adapter_pre_prompt_getrun. A filter that supplies a required value or repairs invalid input must do that earlier. On WordPress 7.1 and later, use thewp_ability_normalize_inputfilter. On WordPress 6.9 and 7.0, clients must send valid input, or the ability must supply defaults in its own input normalization. Read the compatibility notes. - Both filters still run for valid, authorized requests, and their order is unchanged.
Contributors
Thank you to @zaguiini for reporting #438 and to @WebUppAdmin for reporting #411.
Thank you to everyone who contributed code, documentation, reviews, and bug reports to this release:
@bacoords, @euvoor, @galatanovidiu, @gziolo, @jeffpaul, @justlevine, @softglazee, @superherono, @WebUppAdmin, and @zaguiini.
Welcome to the contributors whose first pull requests are in this release: @bacoords (#379), @softglazee (#415), @superherono (#423), and @euvoor (#444).
Dependency updates were provided by @dependabot[bot].
Full changelog: v0.7.1…v0.7.2