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
|
|
@ -50,9 +50,9 @@ use Mcp\Server\Transport\StdioTransport;
|
|||
logger()->info('Starting MCP Stdio Environment Variable Example Server...');
|
||||
|
||||
Server::make()
|
||||
->withServerInfo('Env Var Server', '1.0.0')
|
||||
->withLogger(logger())
|
||||
->withDiscovery(__DIR__, ['.'])
|
||||
->setServerInfo('Env Var Server', '1.0.0')
|
||||
->setLogger(logger())
|
||||
->setDiscovery(__DIR__, ['.'])
|
||||
->build()
|
||||
->connect(new StdioTransport(logger: logger()));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue