Skip to content

Commit 45b7fd5

Browse files
[Server] Record the missing symfony/finder failure as a BC break
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 856dd82 commit 45b7fd5

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to `mcp/sdk` will be documented in this file.
44

5+
0.10.0
6+
------
7+
8+
* [BC Break] `Builder::build()` throws a `RuntimeException` when `setDiscovery()` is used without `symfony/finder` and without a custom discoverer, instead of logging a warning and discovering nothing
9+
510
0.9.0
611
-----
712

‎tests/Unit/Server/BuilderTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public function testBuildWithoutCustomReferenceHandler(): void
9797
#[TestDox('build() fails when file-based discovery is configured without Symfony Finder')]
9898
public function testBuildFailsWhenDiscoveryDependencyIsMissing(): void
9999
{
100+
// Load every class the failing path needs before the Composer autoloaders are unregistered.
100101
Server::builder()->setServerInfo(self::TEST_SERVER_NAME, self::TEST_SERVER_VERSION)->build();
101102
Server::builder()
102103
->setServerInfo(self::TEST_SERVER_NAME, self::TEST_SERVER_VERSION)

0 commit comments

Comments
 (0)