Introduce schema component
This commit is contained in:
parent
ee0dffe369
commit
6025f890f9
1 changed files with 5419 additions and 0 deletions
39
src/Server/Configuration.php
Normal file
39
src/Server/Configuration.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?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\Server;
|
||||
|
||||
use Mcp\Schema\Implementation;
|
||||
use Mcp\Schema\ServerCapabilities;
|
||||
|
||||
/**
|
||||
* Value Object holding core configuration and shared dependencies for the MCP Server instance.
|
||||
*
|
||||
* This object is typically assembled by the ServerBuilder and passed to the Server constructor.
|
||||
*
|
||||
* @author Kyrian Obikwelu <koshnawaza@gmail.com>
|
||||
*/
|
||||
class Configuration
|
||||
{
|
||||
/**
|
||||
* @param Implementation $serverInfo info about this MCP server application
|
||||
* @param ServerCapabilities $capabilities capabilities of this MCP server application
|
||||
* @param int $paginationLimit maximum number of items to return for list methods
|
||||
* @param string|null $instructions instructions describing how to use the server and its features
|
||||
*/
|
||||
public function __construct(
|
||||
public readonly Implementation $serverInfo,
|
||||
public readonly ServerCapabilities $capabilities,
|
||||
public readonly int $paginationLimit = 50,
|
||||
public readonly ?string $instructions = null,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue