Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/Abilities/DiscoverAbilitiesAbility.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* - Only abilities with mcp.public=true metadata will be returned
* - Requires proper WordPress capability checks for secure operation
*
* @see https://github.com/your-repo/mcp-adapter/docs/security.md for detailed security configuration
* @see https://developer.wordpress.org/apis/security/ for detailed security guidance
*/
final class DiscoverAbilitiesAbility {
use McpAbilityHelperTrait;
Expand Down
2 changes: 1 addition & 1 deletion includes/Abilities/ExecuteAbilityAbility.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* - Requires proper WordPress capability checks for secure operation
* - Caller identity verification is enforced through WordPress authentication
*
* @see https://github.com/your-repo/mcp-adapter/docs/security.md for detailed security configuration
* @see https://developer.wordpress.org/apis/security/ for detailed security guidance
*/
final class ExecuteAbilityAbility {
use McpAbilityHelperTrait;
Expand Down
2 changes: 1 addition & 1 deletion includes/Abilities/GetAbilityInfoAbility.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* - Only abilities with mcp.public=true metadata can be queried via default MCP server.
* - Requires proper WordPress capability checks for secure operation
*
* @see https://github.com/your-repo/mcp-adapter/docs/security.md for detailed security configuration
* @see https://developer.wordpress.org/apis/security/ for detailed security guidance
*/
final class GetAbilityInfoAbility {
use McpAbilityHelperTrait;
Expand Down
7 changes: 7 additions & 0 deletions includes/Core/McpServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,13 @@ public function get_observability_handler(): McpObservabilityHandlerInterface {
return $this->observability_handler;
}

/**
* Get the error handler instance.
*
* @since n.e.x.t
*
* @return \WP\MCP\Infrastructure\ErrorHandling\Contracts\McpErrorHandlerInterface
*/
public function get_error_handler(): McpErrorHandlerInterface {
return $this->error_handler;
}
Expand Down
6 changes: 3 additions & 3 deletions includes/Core/McpVersionNegotiator.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* This is a Core layer class — no WordPress function calls.
*
* @since n.e.x.t.
* @since n.e.x.t
*/
final class McpVersionNegotiator {

Expand All @@ -39,7 +39,7 @@ final class McpVersionNegotiator {
* If the client-requested version is in the supported list it is echoed
* back verbatim. Otherwise the latest supported version is returned.
*
* @since n.e.x.t.
* @since n.e.x.t
*
* @param string $client_version The protocol version requested by the client.
*
Expand All @@ -56,7 +56,7 @@ public static function negotiate( string $client_version ): string {
/**
* Check whether a given version string is supported.
*
* @since n.e.x.t.
* @since n.e.x.t
*
* @param string $version The protocol version to check.
*
Expand Down
10 changes: 4 additions & 6 deletions includes/Domain/Resources/RegisterAbilityAsMcpResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,10 @@ private function get_uri() {
/**
* Filters the MCP resource URI derived from an ability.
*
* @param string $uri The validated resource URI.
* @param \WP_Ability $ability The source ability instance.
*
* @since n.e.x.t
*
* @param string $uri The validated resource URI.
* @param \WP_Ability $ability The source ability instance.
*/
$filtered_uri = apply_filters( 'mcp_adapter_resource_uri', $uri, $this->ability );

Expand Down Expand Up @@ -410,11 +409,10 @@ private function resolve_resource_name(): string {
*
* Unlike tools, resource names have no charset restrictions.
*
* @param string $name The resource name.
* @param \WP_Ability $ability The source ability instance.
*
* @since n.e.x.t
*
* @param string $name The resource name.
* @param \WP_Ability $ability The source ability instance.
*/
$filtered_name = apply_filters( 'mcp_adapter_resource_name', $name, $this->ability );

Expand Down
5 changes: 2 additions & 3 deletions includes/Domain/Tools/RegisterAbilityAsMcpTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,10 @@ private function resolve_tool_name() {
/**
* Filters the MCP tool name derived from an ability.
*
* @param string $name The sanitized tool name.
* @param \WP_Ability $ability The source ability instance.
*
* @since n.e.x.t
*
* @param string $name The sanitized tool name.
* @param \WP_Ability $ability The source ability instance.
*/
$filtered_name = apply_filters( 'mcp_adapter_tool_name', $sanitized_name, $this->ability );

Expand Down
2 changes: 1 addition & 1 deletion includes/Handlers/Initialize/InitializeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct( McpServer $mcp ) {
* If the client requests a supported version, that version is used. Otherwise
* the server falls back to the latest supported version.
*
* @since n.e.x.t.
* @since n.e.x.t
*
* @param string $client_protocol_version The protocol version requested by the client.
*
Expand Down
2 changes: 2 additions & 0 deletions includes/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public static function instance(): self {
/**
* Fires after the main plugin class has been initialized.
*
* @since 0.1.0
*
* @param self $instance The main plugin class instance.
*/
do_action( 'wp_mcp_init', self::$instance );
Expand Down
2 changes: 1 addition & 1 deletion includes/Transport/Infrastructure/HttpRequestContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class HttpRequestContext {
/**
* The MCP-Protocol-Version header from the request.
*
* @since n.e.x.t.
* @since n.e.x.t
*
* @var string|null
*/
Expand Down
3 changes: 2 additions & 1 deletion includes/Transport/Infrastructure/HttpRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* Centralizes request routing logic to eliminate duplication and provide
* consistent request handling across transport implementations.
*
* @internal
*/
class HttpRequestHandler {

Expand Down Expand Up @@ -234,7 +235,7 @@ private function get_transport_name(): string {
* version is also accepted. An unsupported version returns a JSON-RPC
* invalid-request error payload.
*
* @since n.e.x.t.
* @since n.e.x.t
*
* @param \WP\MCP\Transport\Infrastructure\HttpRequestContext $context The HTTP request context.
*
Expand Down
Loading