setServerInfo('integration-server', '1.0.0') ->addTool( static function (RequestContext $context): string { $gateway = $context->getClientGateway(); if (!$gateway->supportsRoots()) { return 'unsupported'; } $described = []; foreach ($gateway->listRoots()->roots as $root) { $described[] = sprintf('%s (%s)', $root->uri, $root->name ?? '-'); } return implode(', ', $described); }, name: 'inspect_roots', description: 'Reports the workspace roots the client exposes.', ) ->build() ->run(new StdioTransport());