petal-components-mcp

v0.1.0
io.github.petalframework/petal-components-mcp Checked 1 hour ago Published 6 months ago

Phoenix LiveView component schemas from petal_components, exposed to AI coding assistants.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_components

List every component available in petal_components (the Shadcn-style Phoenix LiveView component library). Use this first to see what's available before composing HEEx markup.

get_component

Get the full schema for a single petal_components component — attrs, slots, defaults, allowed values, and a HEEx usage example. Call this any time you're about to write a Phoenix LiveView component reference like <.pc_button> or <.input>, to ensure the attrs and slots match the real library.

ParameterTypeDescription
name *stringComponent function name (e.g. 'button', 'modal', 'input'). Get the full list via list_components.