PluginProbe ʕ •ᴥ•ʔ
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor / 4.0.1
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor v4.0.1
4.0.2 4.0.1 4.0.0 3.10.02 3.10.01 3.9.10 3.9.9 3.9.8 3.9.7 3.9.5 3.9.6 3.9.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.1 2.3.1.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4.0 2.5.0 2.5.1 2.5.10 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.2 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.6.0 3.6.1 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.8.1 3.8.2 3.9.0 3.9.1 3.9.2 trunk 1.2.6 1.2.7 1.2.9 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.0.9.1 2.0.9.2 2.0.9.3
elementskit-lite / mcp / server.php
elementskit-lite / mcp Last commit date
assets 3 weeks ago abilities.php 3 weeks ago manager.php 3 weeks ago rest-proxy.php 3 weeks ago server.php 3 weeks ago service.php 3 weeks ago
server.php
51 lines
1 <?php
2 namespace ElementsKit_Lite\Mcp;
3
4 defined( 'ABSPATH' ) || exit;
5
6 /**
7 * Registers the ElementsKit MCP server with the WordPress MCP adapter.
8 *
9 * This exposes the ElementsKit abilities as MCP tools at /wp-json/elementskit/mcp
10 * for external MCP clients. It is entirely optional: when the MCP adapter library
11 * (WP\MCP\Core\McpAdapter) is not installed the hook simply never fires and the
12 * abilities + REST proxy continue to work on their own.
13 *
14 * @since 3.10.x
15 */
16 class Server {
17
18 public function hooks() {
19 add_action( 'mcp_adapter_init', [ $this, 'register_server' ] );
20 }
21
22 /**
23 * @param mixed $adapter The MCP adapter instance passed by mcp_adapter_init.
24 */
25 public function register_server( $adapter ) {
26 if ( ! class_exists( '\WP\MCP\Core\McpAdapter' ) || ! $adapter instanceof \WP\MCP\Core\McpAdapter ) {
27 return;
28 }
29
30 $result = $adapter->create_server(
31 'elementskit-mcp-server',
32 'elementskit',
33 'mcp',
34 'ElementsKit MCP',
35 __( 'Read and modify ElementsKit widgets and templates for Elementor.', 'elementskit-lite' ),
36 'v1.0.0',
37 [ \WP\MCP\Transport\HttpTransport::class ],
38 \WP\MCP\Infrastructure\ErrorHandling\ErrorLogMcpErrorHandler::class,
39 \WP\MCP\Infrastructure\Observability\NullMcpObservabilityHandler::class,
40 Abilities::ability_ids(),
41 [],
42 []
43 );
44
45 if ( is_wp_error( $result ) ) {
46 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
47 error_log( sprintf( '[ElementsKit MCP] Server registration failed: %s', $result->get_error_message() ) );
48 }
49 }
50 }
51