rfw_gen_mcp 0.5.2
rfw_gen_mcp: ^0.5.2 copied to clipboard
MCP server exposing rfw_gen widget registry, code conversion, and rfwtxt validation.
rfw_gen_mcp #
An MCP (Model Context Protocol) server that exposes rfw_gen's widget registry, code conversion, and rfwtxt validation as tools for AI agents and IDE integrations.
Tools #
| Tool | Description |
|---|---|
list_widgets |
List supported RFW widgets with optional category filter |
get_widget_info |
Get detailed widget info (params, children, handlers) |
convert_to_rfwtxt |
Convert Dart source with @RfwWidget to rfwtxt |
validate_rfwtxt |
Validate rfwtxt syntax |
Installation #
dart pub global activate rfw_gen_mcp
Usage #
Claude Code #
Add to your settings.json:
{
"mcpServers": {
"rfw_gen": {
"command": "rfw_gen_mcp"
}
}
}
Cursor #
Add to .cursor/mcp.json:
{
"mcpServers": {
"rfw_gen": {
"command": "rfw_gen_mcp"
}
}
}
Standalone #
rfw_gen_mcp
The server communicates over stdio using the MCP JSON-RPC protocol.
Related Packages #
- rfw_gen - Annotations and runtime helpers
- rfw_gen_builder - build_runner code generator
- rfw - Remote Flutter Widgets