mix mithril_ui.mcp (Mithril UI v0.1.2)
View SourceStarts the Mithril UI MCP server for AI assistant integration.
$ mix mithril_ui.mcp
The MCP server provides AI assistants (like Claude Code) with access to:
- Component discovery and documentation
- Natural language component suggestions
- Usage examples and code snippets
- Theme information
- Accessibility guidelines
Claude Code Configuration
Add to your project's .mcp.json or Claude Code settings:
{
"mcpServers": {
"mithril-ui": {
"command": "mix",
"args": ["mithril_ui.mcp"],
"cwd": "/path/to/your/project"
}
}
}Available Tools
Once connected, AI assistants can use these tools:
list_components- List all components or filter by categoryget_component- Get detailed schema for a componentsuggest_components- Natural language searchget_examples- Get usage exampleslist_categories- List component categorieslist_themes- List available themesget_related- Get related components and alternatives