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

A package for making MCP servers and clients.

example/README.md

Simple Client and Server #

See bin/simple_client.dart and bin/simple_server.dart for a basic example of how to use the MCPClient and MCPServer classes. These don't use any LLM to invoke tools.

Full Features 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.

42
likes
150
points
3.31k
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