ExMCP.Tasks.Server (ex_mcp v1.0.0-rc.8)

Copy Markdown View Source

Server-callback adapters for ExMCP.Tasks.

These helpers convert the public task lifecycle API into the return tuples expected by ExMCP.Server.Handler. use ExMCP.Server.Handler, tasks: :store installs them as the default modern task callbacks.

Summary

Functions

Creates a stored task result suitable for returning from a request handler.

Functions

create(tool_name, arguments, state, opts \\ [])

@spec create(String.t(), map(), term(), keyword()) ::
  {:ok, map(), term()} | {:error, term(), term()}

Creates a stored task result suitable for returning from a request handler.