Manages MCP connections with JSON-RPC 2.0 communication.
Summary
Functions
Calls a tool using JSON-RPC.
Calls a tool with streaming support.
Returns a specification to start this module under a supervisor.
Closes the connection.
Gets the last used timestamp.
Sends a JSON-RPC notification.
Sends a JSON-RPC request.
Starts a new MCP connection.
Updates the last used timestamp.
Functions
@spec call_tool(pid(), String.t(), map(), keyword()) :: ExUtcp.Types.call_result()
Calls a tool using JSON-RPC.
@spec call_tool_stream(pid(), String.t(), map(), keyword()) :: ExUtcp.Types.call_result()
Calls a tool with streaming support.
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec close(pid()) :: :ok
Closes the connection.
Gets the last used timestamp.
Sends a JSON-RPC notification.
@spec send_request(pid(), String.t(), map(), keyword()) :: ExUtcp.Types.call_result()
Sends a JSON-RPC request.
@spec start_link( ExUtcp.Types.mcp_provider(), keyword() ) :: GenServer.on_start()
Starts a new MCP connection.
@spec update_last_used(pid()) :: :ok
Updates the last used timestamp.