php-sdk/src/Server/Configuration.php
Kyrian Obikwelu 3dcd2f717a
refactor: rename ServerBuilder to Builder (#85)
Remove redundant "Server" prefix since class is already in Server namespace.
2025-09-28 17:59:48 +01:00

39 lines
1.3 KiB
PHP

<?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 Builder 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,
) {
}
}