Skip to content

Commit f219861

Browse files
Update simple_server.dart (#187)
Make the example `simple_server.dart` work with Claude Desktop <img width="549" alt="Screenshot 2025-06-25 at 6 54 11 pm" src="https://github.com/user-attachments/assets/dc796e1e-d0a5-44cf-b7cb-8fdaca257bfe" />
1 parent 8e3365f commit f219861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/dart_mcp/example/simple_server.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ base class DartMCPServer extends MCPServer with ToolsSupport {
3939
@override
4040
FutureOr<InitializeResult> initialize(InitializeRequest request) {
4141
registerTool(
42-
Tool(name: 'hello world', inputSchema: ObjectSchema()),
42+
Tool(name: 'hello_world', inputSchema: ObjectSchema()),
4343
(_) => CallToolResult(content: [TextContent(text: 'hello world!')]),
4444
);
4545
return super.initialize(request);

0 commit comments

Comments
 (0)