Introduce schema component

This commit is contained in:
Christopher Hertel 2025-08-01 16:41:16 +02:00
commit 6025f890f9
No known key found for this signature in database
GPG key ID: 111F6BFF7B6B5AA3
2 changed files with 5419 additions and 0 deletions

View file

@ -0,0 +1,32 @@
<?php
/*
* This file is part of the official PHP MCP SDK.
*
* A collaboration between Symfony and the PHP Foundation.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mcp\Schema\Enum;
/**
* The severity of a log message.
*
* These map to syslog message severities, as specified in RFC-5424:
* https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
*
* @author Kyrian Obikwelu <koshnawaza@gmail.com>
*/
enum LoggingLevel: string
{
case Debug = 'debug';
case Info = 'info';
case Notice = 'notice';
case Warning = 'warning';
case Error = 'error';
case Critical = 'critical';
case Alert = 'alert';
case Emergency = 'emergency';
}

23
src/Schema/Enum/Role.php Normal file
View file

@ -0,0 +1,23 @@
<?php
/*
* This file is part of the official PHP MCP SDK.
*
* A collaboration between Symfony and the PHP Foundation.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mcp\Schema\Enum;
/**
* The sender or recipient of messages and data in a conversation.
*
* @author Kyrian Obikwelu <koshnawaza@gmail.com>
*/
enum Role: string
{
case User = 'user';
case Assistant = 'assistant';
}