API Reference MCPEx v0.1.0

Modules

MCPEx is an Elixir client library for the Model Context Protocol (MCP).

An implementation of the MCP client for Elixir.

Handles protocol capabilities and version negotiation.

Defines and handles MCP protocol errors.

JSON-RPC 2.0 protocol implementation for MCP client.

Manages the MCP protocol lifecycle.

JSON Schema validation for MCP protocol messages.

Type definitions for MCP protocol messages.

Represents an initialize request

Represents an initialize response

Represents an initialized notification

Represents a resources/read request

Represents content types that can be sent in resources or other messages. This includes text, images, audio, or embedded resources.

Defines the behavior for MCP transport implementations.

Implementation of the MCP transport over HTTP with Server-Sent Events (SSE).

Implementation of the MCP transport over standard I/O.

Test implementation of the MCP transport for integration testing.

Test server implementation to pair with MCPEx.Transport.Test.

Utility functions for finding executables and executing commands through the shell. Used by various parts of the library that need to interact with the system shell.