mix mishka.mcp.setup (Mishka Chelekom v0.0.9-alpha.20)

Copy Markdown View Source

Sets up the Mishka Chelekom MCP Server in your Phoenix application.

This task adds the necessary configuration to your Phoenix router to serve the MCP (Model Context Protocol) endpoint, allowing AI tools like Claude Code, Cursor, and Claude Desktop to interact with your Mishka Chelekom components.

Usage

mix mishka.mcp.setup

Options

  • --path or -p - Custom MCP endpoint path (default: "/mcp")
  • --dev-only - Only enable MCP in development (default: true)
  • --yes - Skip confirmation prompts

What This Task Does

  1. Adds the MCP route to your Phoenix router
  2. Configures the route to use Anubis.Server.Transport.StreamableHTTP.Plug
  3. Wraps it in a dev_routes condition (unless --dev-only=false)

After Setup

Start your Phoenix server and connect your AI tools:

Claude Code

claude mcp add --transport http mishka-chelekom http://localhost:4000/mcp

Cursor / VSCode

Create .mcp.json in your project root:

{
  "mcpServers": {
    "mishka-chelekom": {
      "type": "http",
      "url": "http://localhost:4000/mcp"
    }
  }
}

Summary

Functions

igniter(igniter)

Callback implementation for Igniter.Mix.Task.igniter/1.