API Reference NexusMCP v#0.3.0

Copy Markdown View Source

Modules

MCP (Model Context Protocol) server library for Elixir.

JSON-RPC 2.0 encode/decode utilities.

SSE (Server-Sent Events) connection handler.

Behaviour for defining an MCP server.

Provides the defprompt macro for declaring MCP prompts alongside their handlers.

Provides defresource and defresource_template macros for declaring MCP resources alongside their read handlers.

Converts param type DSL definitions to JSON Schema.

Provides the deftool macro for declaring MCP tools alongside their handlers.

GenServer representing a single MCP client session.

Behaviour for session registry implementations.

Default session registry using Elixir's built-in Registry.

Supervision tree for NexusMCP.

Plug-based HTTP transport for the MCP Streamable HTTP spec (2025-11-25).