@fabiocv/component-code-mcp 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +5 -2
  2. package/dist/stdio.js +11 -11
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -53,8 +53,11 @@ https://mcp-ui-tools.fabio.cv/component-code/mcp
53
53
  | `controls` | How a prop is changed: a list of options, `{ min, max, step }` for a number, or `false`. |
54
54
 
55
55
  The exports of `source` are what `code` can name, and a default export goes in
56
- under its function's name. A component keeps any state inside itself, so `code`
57
- stays plain JSX.
56
+ under its function's name. `code` stays plain JSX. For each value `code` sets,
57
+ such as `checked={true}`, the component gets a handler such as
58
+ `onCheckedChange`, and the tool asks the agent to call it, so switching the
59
+ component in the preview shows in the code the agent gets. State of its own is
60
+ only for when that handler is missing.
58
61
 
59
62
  `show_html_in_component_code`, titled Show HTML in Component Code, takes:
60
63