Mcpixir.Client (Mcpixir v0.1.0)

View Source

Client for managing MCP connections and sessions.

Summary

Functions

Creates a new session with the given server URL.

Creates sessions for the specified tools.

Gets a session by its ID.

Gets all available tools.

Creates a new client with the given configuration.

Stops all sessions.

Types

t()

@type t() :: %Mcpixir.Client{config: map(), sessions: term()}

Functions

create_session(client, server_url, opts \\ [])

Creates a new session with the given server URL.

create_sessions_for_tools(client, tools)

Creates sessions for the specified tools.

get_session(client, session_id)

Gets a session by its ID.

get_tools(client)

Gets all available tools.

new(config \\ %{})

Creates a new client with the given configuration.

stop_all_sessions(error)

Stops all sessions.

stop_session(client, session_id)

Stops a session.