1: <?php
2:
3: declare(strict_types=1);
4:
5: /**
6: * This file is part of the Nexus MCP SDK package.
7: *
8: * (c) 2026 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\Extension\Apps;
15:
16: /**
17: * Protocol vocabulary of the MCP Apps extension (`io.modelcontextprotocol/ui`, SEP-1865).
18: *
19: * @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx
20: */
21: final readonly class Apps
22: {
23: public const string IDENTIFIER = 'io.modelcontextprotocol/ui';
24: public const string MIME_TYPE = 'text/html;profile=mcp-app';
25: public const string URI_PREFIX = 'ui://';
26: public const string META_KEY = 'ui';
27:
28: /**
29: * Deprecated flat form of `_meta.ui.resourceUri`, read as a fallback and never emitted.
30: */
31: public const string DEPRECATED_RESOURCE_URI_KEY = 'ui/resourceUri';
32: }
33: