Skip to content

Commit 2c0c5a1

Browse files
committed
Add missing ConfigurationException
1 parent 4fef07d commit 2c0c5a1

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the official PHP MCP SDK.
5+
*
6+
* A collaboration between Symfony and the PHP Foundation.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Mcp\Exception;
13+
14+
/**
15+
* @author Oskar Stark <[email protected]>
16+
*/
17+
class ConfigurationException extends InvalidArgumentException
18+
{
19+
}

src/Server/ServerBuilder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Mcp\Capability\Registry;
2222
use Mcp\Capability\Registry\Container;
2323
use Mcp\Capability\Registry\ReferenceHandler;
24+
use Mcp\Exception\ConfigurationException;
2425
use Mcp\JsonRpc\Handler;
2526
use Mcp\Schema\Annotations;
2627
use Mcp\Schema\Implementation;
@@ -84,13 +85,16 @@ final class ServerBuilder
8485
* annotations: Annotations|null}
8586
* > */
8687
private array $manualResourceTemplates = [];
88+
8789
/** @var array<
8890
* array{handler: array|string|Closure,
8991
* name: string|null,
9092
* description: string|null}
9193
* > */
9294
private array $manualPrompts = [];
95+
9396
private ?string $discoveryBasePath = null;
97+
9498
/**
9599
* @var array|string[]
96100
*/

0 commit comments

Comments
 (0)