Jido.MCP.Config (Jido MCP v1.0.0)

Copy Markdown View Source

Loads and validates application MCP endpoint configuration.

Summary

Types

endpoint_id_error()

@type endpoint_id_error() ::
  :endpoint_required | :invalid_endpoint_id | :unknown_endpoint

endpoints()

@type endpoints() :: %{required(atom()) => Jido.MCP.Endpoint.t()}

Functions

endpoint_ids()

@spec endpoint_ids() :: [atom()]

endpoints()

@spec endpoints() :: endpoints()

fetch_endpoint(endpoint_id)

@spec fetch_endpoint(atom()) ::
  {:ok, Jido.MCP.Endpoint.t()} | {:error, :unknown_endpoint}

normalize_endpoints(endpoints)

@spec normalize_endpoints(map() | keyword()) :: endpoints()

resolve_endpoint_id(endpoint_id, endpoints \\ endpoints())

@spec resolve_endpoint_id(term(), endpoints()) ::
  {:ok, atom()} | {:error, endpoint_id_error()}