openui_mcp 0.0.1-dev.2
openui_mcp: ^0.0.1-dev.2 copied to clipboard
MCP `ToolProvider` for OpenUI Flutter. Wraps `mcp_dart`'s `McpClient` with the JS-reference-compatible `extractToolResult` envelope unwrap.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add openui_mcpWith Flutter:
$ flutter pub add openui_mcpThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
openui_mcp: ^0.0.1-dev.2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:openui_mcp/openui_mcp.dart';