PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
← All changes | vendor/wp-media/mcp-oauth/inc/Transport/Server.php +18 -1 2.3.2 → trunk View file →
@@ -4,11 +4,28 @@
4 4 namespace WPMedia\MCP\OAuth\Transport;
5 5
6 6 use WP\MCP\Core\McpAdapter;
7 7 use WP\MCP\Infrastructure\ErrorHandling\ErrorLogMcpErrorHandler;
8 +use WPMedia\MCP\OAuth\Context;
8 9
9 10 class Server {
10 11 /**
12 + * OAuth server context.
13 + *
14 + * @var Context
15 + */
16 + private $context;
17 +
18 + /**
19 + * Constructor.
20 + *
21 + * @param Context $context OAuth server context.
22 + */
23 + public function __construct( Context $context ) {
24 + $this->context = $context;
25 + }
26 +
27 + /**
11 28 * Register the MCP server with the adapter.
12 29 *
13 30 * Creates an isolated server at /wp-json/mcp/mcp-oauth-server using the custom
14 31 * OAuthHttpTransport for JWT Bearer authentication.
@@ -30,9 +47,9 @@
30 47 'MCP Server with OAuth 2.1 authentication',
31 48 'v1.0.0',
32 49 [ OAuthHttpTransport::class ],
33 50 ErrorLogMcpErrorHandler::class,
34 - McpObservabilityHandler::class,
51 + $this->context->observability_handler(),
35 52 [
36 53 'mcp-adapter/discover-abilities',
37 54 'mcp-adapter/get-ability-info',
38 55 'mcp-adapter/execute-ability',