dart_mcp 0.3.3
dart_mcp: ^0.3.3 copied to clipboard
A package for making MCP servers and clients.
Client and Server examples #
For each client or server feature, there is a corresponding example here with the {feature}_client.dart and {feature}_server.dart file names. Sometimes multiple features are demonstrated together where appropriate, in which case the file name will indicate this.
To run the examples, run the client file directly, so for instance
dart run example/tools_client.dart
with run the example client which invokes
tools, connected to the example server that provides tools
(at example/tools_server.dart
).
Full Featured Examples #
See https://github.com/dart-lang/ai/tree/main/mcp_examples for some more full featured examples using gemini to automatically invoke tools.
The example client there is also useful for testing your own server.