FastestMCP.Transport.HTTPApp (fastest_mcp v0.1.2)

Copy Markdown View Source

Embeddable Plug app for FastestMCP's HTTP transport.

It wraps the existing StreamableHTTP transport with optional HTTP middleware and additional routes so the server can be mounted inside a broader Plug application without forking the transport implementation.

Summary

Functions

Runs the main entrypoint for this module.

Builds a child specification for supervising this module.

Initializes the state used by this module before it starts processing work.

Types

middleware()

@type middleware() :: (Plug.Conn.t(), (Plug.Conn.t() -> Plug.Conn.t()) ->
                   Plug.Conn.t())

route()

@type route() ::
  {atom() | String.t(), String.t(), (Plug.Conn.t() -> Plug.Conn.t())}
  | {atom() | String.t(), String.t(), {module(), keyword() | map()}}

Functions

call(conn, opts)

Runs the main entrypoint for this module.

child_spec(opts)

Builds a child specification for supervising this module.

init(opts)

Initializes the state used by this module before it starts processing work.