Packages

AI agent framework for Elixir built on OTP. TEA-based agents with crash isolation, inter-agent messaging, team supervision, and real SSE streaming to Anthropic, OpenAI, Ollama, and more.

Current section

Files

Jump to
raxol_agent lib raxol agent mcp_client message.ex
Raw

lib/raxol/agent/mcp_client/message.ex

defmodule Raxol.Agent.McpClient.Message do
@moduledoc """
JSON-RPC 2.0 message encoding/decoding for MCP.
This module delegates to `Raxol.MCP.Protocol`. Use `Raxol.MCP.Protocol`
directly for new code.
"""
@compile {:no_warn_undefined, Raxol.MCP.Protocol}
defdelegate request(id, method, params \\ %{}), to: Raxol.MCP.Protocol
defdelegate notification(method, params \\ %{}), to: Raxol.MCP.Protocol
defdelegate encode(message), to: Raxol.MCP.Protocol
defdelegate decode(json), to: Raxol.MCP.Protocol
defdelegate response?(msg), to: Raxol.MCP.Protocol
defdelegate error?(msg), to: Raxol.MCP.Protocol
defdelegate notification?(msg), to: Raxol.MCP.Protocol
end