Skip to content

Commit a74efc3

Browse files
Update simple_client.dart for updated hello_world tool name (#194)
1 parent d0b89cf commit a74efc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkgs/dart_mcp/example/simple_client.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ void main() async {
4545
final toolsResult = await server.listTools(ListToolsRequest());
4646
for (final tool in toolsResult.tools) {
4747
print('Found Tool: ${tool.name}');
48-
if (tool.name == 'hello world') {
49-
print('Calling `hello world` tool');
48+
if (tool.name == 'hello_world') {
49+
print('Calling `hello_world` tool');
5050
final result = await server.callTool(
51-
CallToolRequest(name: 'hello world'),
51+
CallToolRequest(name: 'hello_world'),
5252
);
5353
if (result.isError == true) {
5454
throw StateError('Tool call failed: ${result.content}');

0 commit comments

Comments
 (0)