From a6dce08c63c54ecc16ce35b97f9048c49160b3cb Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Sat, 22 Nov 2025 20:28:42 +0100 Subject: [PATCH 1/2] Allow users to not specify server info --- src/Server/Builder.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Server/Builder.php b/src/Server/Builder.php index 1d1f8d07..82d1a537 100644 --- a/src/Server/Builder.php +++ b/src/Server/Builder.php @@ -481,7 +481,9 @@ public function build(): Server logging: false, completions: true, ); - $configuration = new Configuration($this->serverInfo, $capabilities, $this->paginationLimit, $this->instructions, $this->protocolVersion); + + $serverInfo = $this->serverInfo ?? new Implementation('MCP SDK for PHP'); + $configuration = new Configuration($serverInfo, $capabilities, $this->paginationLimit, $this->instructions, $this->protocolVersion); $referenceHandler = new ReferenceHandler($container); $requestHandlers = array_merge($this->requestHandlers, [ From dffcd057175c185d0c959d3c2abeaeec44a6ef3e Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Sun, 30 Nov 2025 11:02:36 +0100 Subject: [PATCH 2/2] change to default name --- src/Server/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server/Builder.php b/src/Server/Builder.php index 82d1a537..4142b97a 100644 --- a/src/Server/Builder.php +++ b/src/Server/Builder.php @@ -482,7 +482,7 @@ public function build(): Server completions: true, ); - $serverInfo = $this->serverInfo ?? new Implementation('MCP SDK for PHP'); + $serverInfo = $this->serverInfo ?? new Implementation(); $configuration = new Configuration($serverInfo, $capabilities, $this->paginationLimit, $this->instructions, $this->protocolVersion); $referenceHandler = new ReferenceHandler($container);