We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3818173 commit 2c96922Copy full SHA for 2c96922
examples/client-communication/server.php
@@ -16,7 +16,7 @@
16
use Mcp\Schema\Enum\LoggingLevel;
17
use Mcp\Schema\ServerCapabilities;
18
use Mcp\Server;
19
-use Mcp\Server\ClientGateway;
+use Mcp\Server\RequestContext;
20
use Mcp\Server\Session\FileSessionStore;
21
22
$server = Server::builder()
@@ -27,7 +27,8 @@
27
->setCapabilities(new ServerCapabilities(logging: true, tools: true))
28
->setDiscovery(__DIR__)
29
->addTool(
30
- function (string $dataset, ClientGateway $client): array {
+ function (RequestContext $context, string $dataset): array {
31
+ $client = $context->getClientGateway();
32
$client->log(LoggingLevel::Info, sprintf('Running quality checks on dataset "%s"', $dataset));
33
34
$tasks = [
0 commit comments