From b59e825fe469c12873694de2b7ff47d04bed3986 Mon Sep 17 00:00:00 2001 From: Sergey Shevchenko Date: Wed, 15 Apr 2026 14:36:29 +1200 Subject: [PATCH] Add optional instructions parameter to withServerInfo --- src/ServerBuilder.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ServerBuilder.php b/src/ServerBuilder.php index dacfda3..c8931a0 100644 --- a/src/ServerBuilder.php +++ b/src/ServerBuilder.php @@ -98,9 +98,13 @@ public function __construct() {} /** * Sets the server's identity. Required. */ - public function withServerInfo(string $name, string $version): self + public function withServerInfo(string $name, string $version, ?string $instructions = null): self { - $this->serverInfo = Implementation::make(name: trim($name), version: trim($version)); + $this->serverInfo = Implementation::make( + name: trim($name), + version: trim($version), + instructions: $instructions ? trim($instructions) : null + ); return $this; }