Raxol MCP

MCP (Model Context Protocol) server and client for Elixir. JSON-RPC 2.0 protocol, tool/resource registry, stdio and SSE transports. Auto-derives agent tools from your widget tree.

Install

{:raxol_mcp, "~> 2.8"}

Features

Quick start

# Register a tool with the default registry
Raxol.MCP.Registry.register_tools([
  %{
    name: "my_tool",
    description: "Does a thing",
    inputSchema: %{type: "object", properties: %{}},
    callback: fn _args -> {:ok, [%{type: "text", text: "done"}]} end
  }
])

# Start MCP server on stdio
mix mcp.server

Architecture

See main docs for full examples.