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.
simple_client.dart
hello_world
1 parent d0b89cf commit a74efc3Copy full SHA for a74efc3
pkgs/dart_mcp/example/simple_client.dart
@@ -45,10 +45,10 @@ void main() async {
45
final toolsResult = await server.listTools(ListToolsRequest());
46
for (final tool in toolsResult.tools) {
47
print('Found Tool: ${tool.name}');
48
- if (tool.name == 'hello world') {
49
- print('Calling `hello world` tool');
+ if (tool.name == 'hello_world') {
+ print('Calling `hello_world` tool');
50
final result = await server.callTool(
51
- CallToolRequest(name: 'hello world'),
+ CallToolRequest(name: 'hello_world'),
52
);
53
if (result.isError == true) {
54
throw StateError('Tool call failed: ${result.content}');
0 commit comments