# give/4.16.9/src/MCP/ServiceProvider.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 35 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/MCP/ServiceProvider.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/MCP/ServiceProvider.php
- Modified: 2025-09-17T16:52:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/MCP/ServiceProvider.php#L10-L20`.

```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);
    }
}

```
