Jidoka.Operation.Source.MCP (Jidoka v0.8.0-beta.1)

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

Types

t()

@type t() :: %Jidoka.Operation.Source.MCP{
  capabilities: map(),
  client: module(),
  client_info: map(),
  description: String.t() | nil,
  endpoint: atom() | String.t(),
  idempotency: Jidoka.Agent.Spec.Operation.idempotency(),
  metadata: map(),
  prefix: String.t() | nil,
  protocol_version: String.t() | nil,
  required: boolean(),
  timeout: pos_integer() | nil,
  timeouts: map(),
  tools: [tool_spec()],
  transport: term()
}

tool_spec()

@type tool_spec() :: %{
  :name => String.t(),
  optional(:description) => String.t(),
  optional(:input_schema) => map()
}

Functions

new(attrs)

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

new!(attrs)

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