From b9e35f3b795765b03c14e7f9cfc66e0f15702a40 Mon Sep 17 00:00:00 2001 From: Brett Morgan Date: Thu, 26 Jun 2025 14:51:35 +1000 Subject: [PATCH] Update `simple_client.dart` for updated `hello_world` tool name See https://github.com/dart-lang/ai/pull/187 for details --- pkgs/dart_mcp/example/simple_client.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/dart_mcp/example/simple_client.dart b/pkgs/dart_mcp/example/simple_client.dart index 2b2d51a2..bec522a9 100644 --- a/pkgs/dart_mcp/example/simple_client.dart +++ b/pkgs/dart_mcp/example/simple_client.dart @@ -45,10 +45,10 @@ void main() async { final toolsResult = await server.listTools(ListToolsRequest()); for (final tool in toolsResult.tools) { print('Found Tool: ${tool.name}'); - if (tool.name == 'hello world') { - print('Calling `hello world` tool'); + if (tool.name == 'hello_world') { + print('Calling `hello_world` tool'); final result = await server.callTool( - CallToolRequest(name: 'hello world'), + CallToolRequest(name: 'hello_world'), ); if (result.isError == true) { throw StateError('Tool call failed: ${result.content}');