Switch to set* and add* on ServerBuilder instead of with* (#71)
This commit is contained in:
parent
99bf56eef8
commit
b1e54f1f86
1 changed files with 83 additions and 107 deletions
|
|
@ -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());
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue