API Reference anubis_mcp v#1.0.0

Copy Markdown

Modules

MCP (Model Context Protocol) client for connecting to MCP servers.

Represents an operation to be performed by the MCP client.

Fluent API for building MCP protocol errors.

Handles parsing and validation of MCP (Model Context Protocol) messages using the Peri library.

Represents successful responses in the MCP protocol.

MCP protocol version management.

Behaviour that each MCP protocol version module must implement.

Registry for MCP protocol version modules.

Protocol implementation for MCP specification version 2024-11-05.

Protocol implementation for MCP specification version 2025-03-26.

Protocol implementation for MCP specification version 2025-06-18.

Build MCP servers that extend language model capabilities.

Defines the behaviour for MCP prompts.

Defines the behaviour for MCP resources.

Defines the behaviour for MCP tools.

Raised when required MCP server configuration is missing or invalid.

Read-only session and request context, set by the SDK before each callback.

The Anubis Frame — pure user state + read-only context.

Behaviour for pluggable session registries and deterministic naming utilities.

ETS-based session registry for HTTP transports.

No-op registry for STDIO transport.

Fluent interface for building MCP component responses.

Per-client MCP session process.

Behaviour for session persistence adapters.

Redis-based session store implementation.

SSE (Server-Sent Events) transport implementation for MCP servers.

A Plug implementation for the SSE (Server-Sent Events) transport.

STDIO transport implementation for MCP servers.

StreamableHTTP transport implementation for MCP servers.

A Plug implementation for the Streamable HTTP transport.

Functional behaviour for MCP transport implementations.

Defines the behavior that all transport implementations must follow.

A transport implementation that uses Server-Sent Events (SSE) for receiving messages and HTTP POST requests for sending messages back to the server.

A transport implementation that uses standard input/output.

A transport implementation that uses Streamable HTTP as specified in MCP 2025-03-26.

A transport implementation that uses WebSockets for bidirectional communication with the MCP server.

Mix Tasks

Mix task to test the SSE transport implementation, interactively sending commands.

Mix task to test the STDIO transport implementation, interactively sending commands.

Mix task to test the Streamable HTTP transport implementation, interactively sending commands.

Mix task to test the WebSocket transport implementation, interactively sending commands.