Switch to set* and add* on ServerBuilder instead of with* (#71)

This commit is contained in:
Christopher Hertel 2025-09-15 08:30:41 +02:00 • committed by GitHub
commit b1e54f1f86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,8 +98,8 @@ use Mcp\Server;
use Mcp\Server\Transport\StdioTransport;
Server::make()
->withServerInfo('Stdio Calculator', '1.1.0', 'Basic Calculator over STDIO transport.')
->withDiscovery(__DIR__, ['.'])
->setServerInfo('Stdio Calculator', '1.1.0', 'Basic Calculator over STDIO transport.')
->setDiscovery(__DIR__, ['.'])
->build()
->connect(new StdioTransport());
```