Starts the Mishka Chelekom MCP Server.
The server provides an MCP (Model Context Protocol) interface for AI tools like Claude Code, Cursor, and Claude Desktop to interact with the Mishka Chelekom component library.
Usage
# HTTP transport (default) — long-running server on port 4003
mix mishka.mcp.server
# Stdio transport — MCP client spawns this process and talks over stdin/stdout
mix mishka.mcp.server --transport stdioOptions
--transportor-t- Transport to use:http(default) orstdio--portor-p- HTTP port to listen on (default: 4003, http transport only)
Transports
HTTP (default)
Starts a Bandit HTTP listener that AI tools connect to over the network. Suitable for running as a background service.
mix mishka.mcp.server
mix mishka.mcp.server --port 5000Stdio
Speaks the MCP stdio protocol over stdin/stdout. The MCP client (e.g.
Claude Code) spawns this command itself — no separate server needed.
This is the zero-setup option for project-local .mcp.json files
shared via version control.
mix mishka.mcp.server --transport stdioStdio mode prints nothing to stdout (stdout is the protocol channel). All logs are redirected to stderr by the transport.
Connecting AI Tools
Claude Code (HTTP)
claude mcp add --transport http mishka-chelekom http://localhost:4003/mcpClaude Code (Stdio)
claude mcp add --transport stdio mishka-chelekom \
--env MIX_QUIET=1 -- mix mishka.mcp.server --transport stdioCursor / VSCode (HTTP) — create .mcp.json in project root:
{
"mcpServers": {
"mishka-chelekom": {
"type": "http",
"url": "http://localhost:4003/mcp"
}
}
}Cursor / VSCode (Stdio) — create .mcp.json in project root:
{
"mcpServers": {
"mishka-chelekom": {
"type": "stdio",
"command": "mix",
"args": ["mishka.mcp.server", "--transport", "stdio"],
"env": {"MIX_QUIET": "1"}
}
}
}
MIX_QUIET=1keeps Mix'sCompiling …messages off stdout when a rebuild happens, so the MCP handshake stays clean on first run.
Available Tools (11)
generate_component- Generate mix command for a single componentgenerate_components- Generate mix command for multiple componentsget_component_info- Get component configuration options (variants, colors, sizes)get_example- Get HEEx code examples with usage patternsget_js_hook_info- Get JavaScript hook documentationget_mix_task_info- Get mix task documentationsearch_components- Search components by name or functionalityuninstall_component- Generate uninstall commandupdate_config- Update project configuration settingsvalidate_config- Validate configuration file for errorsget_docs- Fetch documentation from mishka.tools
Available Resources (9)
list_components- List all available components with categorieslist_colors- List color variants with CSS variableslist_variants- List style variants (default, outline, shadow, etc.)list_sizes- List size options (small, medium, large, etc.)list_spaces- List spacing optionslist_scripts- List JavaScript hooks (Carousel, Clipboard, etc.)list_dependencies- List component dependencieslist_css_variables- List all CSS custom propertiesget_config- Get current project configuration
Summary
Functions
Parses task argv into a transport selection.