Jidoka.Operation.Source.MCP (Jidoka v0.9.0)

Copy Markdown View Source

Operation source backed by jido_mcp.

MCP tools are normalized into ordinary Jidoka operations. At runtime the operation source routes the local operation name back to the remote MCP tool name and calls the configured endpoint through Jido.MCP.

Summary

Functions

Builds an MCP operation source from endpoint and tool settings.

Builds an MCP operation source and raises if the settings are invalid.

Types

t()

@type t() :: %Jidoka.Operation.Source.MCP{
  capabilities: map(),
  client: module(),
  client_info: map(),
  description: nil | binary(),
  endpoint: atom() | binary(),
  idempotency: (((:pure | :idempotent) | :dedupe) | :reconcile) | :unsafe_once,
  metadata: map(),
  prefix: nil | binary(),
  protocol_version: nil | binary(),
  required: boolean(),
  timeout: pos_integer(),
  timeouts: map(),
  tools: [tool_spec()],
  transport: nil | any()
}

tool_spec()

@type tool_spec() :: %{
  name: String.t(),
  description: String.t() | nil,
  input_schema: map() | nil
}

Functions

new(attrs)

@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}

Builds an MCP operation source from endpoint and tool settings.

new!(attrs)

@spec new!(keyword() | map()) :: t()

Builds an MCP operation source and raises if the settings are invalid.