AgentSea.MCP.Client (agentsea_mcp v0.1.0)

Copy Markdown

An MCP client: performs the initialize handshake over a transport, caches the server's tool list, and calls tools. Transport-agnostic (see AgentSea.MCP.Transport).

Summary

Functions

Call a tool by name with arguments; returns the textual result.

Returns a specification to start this module under a supervisor.

The server's advertised tools (raw MCP tool maps).

Server info from the handshake (nil until initialized).

Start a client. Options

Functions

call_tool(client, name, args)

Call a tool by name with arguments; returns the textual result.

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

list_tools(client)

The server's advertised tools (raw MCP tool maps).

server_info(client)

Server info from the handshake (nil until initialized).

start_link(opts)

Start a client. Options:

  • :transport{transport_module, ref} (required)
  • :name — optional process name