Fix missing instructions from builder to handler (#90)

This commit is contained in:
Christopher Hertel 2025-10-07 23:32:51 +02:00 • committed by GitHub
commit cbd1b298e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,7 @@ logger()->info('Starting MCP Stdio Calculator Server...');
$server = Server::builder()
->setServerInfo('Stdio Calculator', '1.1.0', 'Basic Calculator over STDIO transport.')
->setInstructions('This server supports basic arithmetic operations: add, subtract, multiply, and divide. Send JSON-RPC requests to perform calculations.')
->setContainer(container())
->setLogger(logger())
->setDiscovery(__DIR__, ['.'])