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.

Libraries

rfw_gen_mcp
MCP server for rfw_gen — exposes widget registry, code conversion, and rfwtxt validation as tools for AI agents and IDE integrations.