dart_mcp 0.3.3 copy "dart_mcp: ^0.3.3" to clipboard
dart_mcp: ^0.3.3 copied to clipboard

A package for making MCP servers and clients.

example/README.md

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.

45
likes
150
points
10.2k
downloads

Publisher

verified publisherlabs.dart.dev

Weekly Downloads

A package for making MCP servers and clients.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

async, collection, json_rpc_2, meta, stream_channel, stream_transform

More

Packages that depend on dart_mcp