HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/globfdxw/www/wp-content/plugins/give/src/MCP/ServiceProvider.php
<?php declare(strict_types=1);

namespace Give\MCP;

use Give\Helpers\Hooks;
use Give\MCP\Actions\RegisterMCPServer;
use Give\ServiceProviders\ServiceProvider as ServiceProviderInterface;

/**
 * Register Give/Elementor's Angie MCP Server related functionality.
 *
 * @link https://modelcontextprotocol.io/docs/getting-started/intro
 *
 * @since 4.9.0
 */
class ServiceProvider implements ServiceProviderInterface
{

    /**
     * @inheritdoc
     */
    public function register(): void {
        give()->singleton(RegisterMCPServer::class);
    }

    /**
     * @inheritdoc
     */
    public function boot(): void
    {
        Hooks::addAction('wp_enqueue_scripts', RegisterMCPServer::class);
        Hooks::addAction('admin_enqueue_scripts', RegisterMCPServer::class);
    }
}