MishkaChelekom.MCP.Tools.GenerateComponent (Mishka Chelekom v0.0.9-alpha.20)

Copy Markdown View Source

Generate a Mishka Chelekom component with specific customization options.

Returns the mix command to run for creating the component in a Phoenix project. The component will be generated in the project's components directory.

Usage

Call this tool with a component name and optional customization parameters. Use the list_components resource to discover available components. Use list_colors, list_variants, and list_sizes resources for valid option values.

Example

Generate a button component with primary color and outline variant:

generate_component(name: "button", color: "primary", variant: "outline")

Returns:

mix mishka.ui.gen.component button --color "primary" --variant outline

Summary

Functions

get_schema(atom)

mcp_schema(data)

mcp_schema!(data)