1: <?php
2:
3: declare(strict_types=1);
4:
5: /**
6: * This file is part of the Nexus MCP SDK package.
7: *
8: * (c) 2025 John Paul E. Balandan, CPA <paulbalandan@gmail.com>
9: *
10: * For the full copyright and license information, please view
11: * the LICENSE file that was distributed with this source code.
12: */
13:
14: namespace Nexus\Mcp\Client\Message\Notification;
15:
16: use Nexus\Mcp\Message\Notification;
17:
18: /**
19: * This notification is sent from the client to the server after initialization has finished.
20: */
21: final readonly class InitializedNotification extends Notification implements ClientNotification
22: {
23: /**
24: * @param non-empty-string $jsonrpc JSON-RPC version. Must be 2.0.
25: * @param null|array<string, mixed> $meta Reserved by MCP to allow clients and servers to attach
26: * additional metadata to their interactions.
27: */
28: public function __construct(
29: string $jsonrpc,
30: public ?array $meta = null,
31: ) {
32: $params = null === $meta ? null : ['_meta' => $meta];
33:
34: parent::__construct($jsonrpc, 'notifications/initialized', $params);
35: }
36: }
37: