Codex.MCP.Client (Codex SDK v0.3.0)
View SourceMinimal MCP client responsible for performing the handshake with external servers and providing lightweight tool discovery/invocation helpers with caching and retries.
Summary
Functions
Calls a tool with optional retry/backoff and approval callbacks.
Returns capabilities advertised by the MCP server.
Performs a handshake against the given transport.
Lists available tools, applying allow/block filters and caching results unless cache?: false
is supplied.
Types
@type t() :: %Codex.MCP.Client{ capabilities: capabilities(), tool_cache: map(), transport: transport_ref() }
Functions
Calls a tool with optional retry/backoff and approval callbacks.
@spec capabilities(t()) :: capabilities()
Returns capabilities advertised by the MCP server.
@spec handshake( transport_ref(), keyword() ) :: {:ok, t()} | {:error, term()}
Performs a handshake against the given transport.
Lists available tools, applying allow/block filters and caching results unless cache?: false
is supplied.