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\Schema\Enum;
15:
16: /**
17: * Who can access a UI-linked tool.
18: *
19: * @see https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx
20: */
21: enum ToolVisibility: string
22: {
23: /**
24: * The tool is visible to and callable by the model.
25: */
26: case Model = 'model';
27:
28: /**
29: * The tool is callable by the embedded app from the same server.
30: */
31: case App = 'app';
32: }
33: