API Reference fastest_mcp v#0.1.2

Copy Markdown View Source

Modules

The high-level API.

Declarative auth wrapper and authenticator contract.

Handle returned for submitted background tasks.

Connected MCP client.

Runtime-owned mutable component store.

Explicit request context passed to handlers.

Normalized error used by the operation pipeline and transports.

Friendly interaction helpers built on top of FastestMCP.Context.

Small server lifespan helper for startup and shutdown state.

Built-in middleware constructors.

Runtime operation struct passed through middleware and transforms.

Prompt message helper with content normalization.

Canonical prompt result helper.

Central protocol version and capability helpers. Keep the active MCP protocol baseline in one place so server responses, client handshakes, and tests do not drift.

Shared wrapper for provider-backed component sources.

Immutable snapshot of request metadata exposed through FastestMCP.Context.

Convenience builder for binary resource content.

Resource content helper with MIME and metadata support.

Helper for serving directory listings as JSON resources.

Helper for serving file-backed resources.

Helper for serving HTTP-backed resources.

Canonical resource result helper.

Convenience builder for text resource content.

Elixir-native helpers for MCP sampling.

Immutable server definition.

Module-based API for application-owned MCP servers.

Behaviour for session-scoped state backends.

In-memory session-state backend.

Canonical tool result helper.

Embeddable Plug app for FastestMCP's HTTP transport.

JSON-line stdio transport backed by the shared transport engine.

Minimal HTTP transport slice backed by the shared transport engine.