Mcpixir.Session (Mcpixir v0.1.0)

View Source

Manages connections to MCP implementations.

Summary

Functions

Gets all available tools for the session.

Starts a new session with the given server URL and configuration.

Stops the session.

Types

t()

@type t() :: %Mcpixir.Session{
  connector: Mcpixir.Connectors.Base.connector(),
  id: String.t(),
  server_url: String.t(),
  tools: [map()]
}

Functions

execute_tool(session, tool_name, args)

Executes a tool call.

get_tools(session)

Gets all available tools for the session.

start(server_url, config, session_id)

Starts a new session with the given server URL and configuration.

stop(session)

Stops the session.