Corex MCP
Dev/test only. Package: {:corex_mcp, "~> 0.2", only: [:dev, :test]}.
After Plug.Static in endpoint:
if Mix.env() in [:dev, :test] do
plug Corex.MCP
end
Cursor / Claude / other HTTP MCP clients: Phoenix http://localhost:4000/corex/mcp, Tableau http://localhost:4004/corex/mcp. Project scaffolds write a single .cursor/mcp.json; user-level configs that use both hosts should register both servers (corex + corex-tableau). Prefer --no-mcp for locked-down scaffolds.
Claude Desktop: wrap each URL in { "transport": { "type": "http", "url": "…" } }.
Call order: list_components → get_component (kebab or snake ids; structured hook/events/api); search_docs / navigation_guide as needed; list_modifiers / get_component_style for ui-*; list_themes / design_guide for theming. Prompts: corex_form, corex_controlled, corex_style. Stale metadata → restart server.
Full checklist: sub-rule corex:mcp.