# `PhiaUiDesign.Mcp.Server`
[🔗](https://github.com/charlenopires/PhiaUI/blob/v0.1.17/lib/phiaui_design/mcp/server.ex#L1)

MCP (Model Context Protocol) server for Claude Code integration.

Implements a JSON-RPC 2.0 server over stdio transport. Claude Code
connects to this server to manipulate PhiaUI designs programmatically.

## Protocol

The server supports:

- `initialize` — handshake with protocol version and capabilities
- `notifications/initialized` — client confirmation
- `tools/list` — enumerate all available design tools
- `tools/call` — execute a tool by name with arguments

## Usage

Started via `mix phia.design.mcp`. Configure in `.mcp.json`:

    {
      "mcpServers": {
        "phiaui-design": {
          "command": "mix",
          "args": ["phia.design.mcp"],
          "env": {"MIX_ENV": "dev"}
        }
      }
    }

# `run`

Run the MCP server. Blocks indefinitely reading from stdin.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
