API Reference HTTP MCP Server v#0.8.0

View Source

Modules

Defines the behaviour for implementing Model Context Protocol (MCP) servers in Elixir.

Represents completion suggestions for prompt arguments or resource URI template variables.

Protocol defining the MCP connection interface.

Helper functions for declaring data in controllers.

HTTP Plug implementation for Model Context Protocol (MCP) servers.

Provides inline JavaScript helpers for MCP Apps.

The JSONRpc module handles JSON-RPC communication for the McpServer.

Represents a JSON-RPC 2.0 error object.

Represents a JSON-RPC 2.0 request object.

Represents a JSON-RPC 2.0 response object.

Represents a prompt template definition.

Represents an argument definition for a prompt.

Represents a single message in a prompt response.

Represents the content of a prompt message.

Represents a static resource definition.

Represents a single content item from a resource.

Metadata container for resource UI configuration.

UI metadata for resource definitions.

Content Security Policy configuration for UI resources.

Sandbox permissions requested by a UI resource.

Represents the response from reading a resource.

Represents a templated resource with URI variables.

A Domain-Specific Language (DSL) for defining Model Context Protocol (MCP) servers.

Represents a JSON Schema object for validating tool parameters.

Telemetry events for MCP Server.

Test utilities for MCP Server routers.

Represents a complete tool definition with metadata and schema.

Represents behavioral hints and metadata for tools.

Extended tool call result supporting structured content for UI rendering.

Structs and helper functions for representing tool result content items.

Represents image content in a tool result.

Represents an embedded resource in a tool result.

Represents text content in a tool result.

Metadata container for tool UI configuration.

UI metadata for tool definitions.

Utility for simple URI templates.