adk_mcp_client (erlang_adk v0.2.5)

View Source

adk_mcp_client - Client for connecting to Model Context Protocol servers.

Summary

Functions

close(Client)

-spec close(Client :: pid()) -> ok.

Close the connection.

code_change(OldVsn, State, Extra)

connect(Transport, Target)

-spec connect(Transport :: binary(), Target :: binary()) -> {ok, pid()} | {error, term()}.

Connect to an MCP server.

execute_tool(Client, ToolName, Args)

-spec execute_tool(Client :: pid(), ToolName :: binary(), Args :: map()) ->
                      {ok, term()} | {error, term()}.

Execute a tool on the remote server.

handle_call(_, From, State)

handle_cast(Msg, State)

handle_info(Info, State)

init(_)

list_tools(Client)

-spec list_tools(Client :: pid()) -> {ok, [map()]} | {error, term()}.

List tools available on the connected server.

terminate(Reason, State)