PhiaUiDesign.Mcp.Server (phia_ui v0.1.17)

Copy Markdown View Source

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"}
    }
  }
}

Summary

Functions

Run the MCP server. Blocks indefinitely reading from stdin.

Functions

run(opts \\ [])

Run the MCP server. Blocks indefinitely reading from stdin.