API calls for all endpoints tagged Infrastructure.
Summary
Functions
Prometheus metrics Returns Prometheus-formatted metrics for monitoring.
MCP protocol message Receives a JSON-RPC 2.0 message for the MCP protocol server. Returns a JSON-RPC 2.0 response, or null for notifications.
MCP protocol SSE stream
Opens a Server-Sent Events stream for the MCP protocol server. Returns Content-Type: text/event-stream.
WebSocket connection Upgrades to a WebSocket connection for real-time updates. Server pushes log events, MCP log events, and store update notifications. Heartbeat pings are sent every 30 seconds.
Functions
@spec get_metrics( Tesla.Env.client(), keyword() ) :: {:ok, String.t()} | {:error, Tesla.Env.t()}
Prometheus metrics Returns Prometheus-formatted metrics for monitoring.
Parameters
connection(ExBifrost.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, String.t}on success{:error, Tesla.Env.t}on failure
@spec mcp_server_message( Tesla.Env.client(), ExBifrost.Model.McpServerMessageRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.McpServerMessage200Response.t()} | {:error, Tesla.Env.t()}
MCP protocol message Receives a JSON-RPC 2.0 message for the MCP protocol server. Returns a JSON-RPC 2.0 response, or null for notifications.
Parameters
connection(ExBifrost.Connection): Connection to servermcp_server_message_request(McpServerMessageRequest):opts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.McpServerMessage200Response.t}on success{:error, Tesla.Env.t}on failure
@spec mcp_server_sse( Tesla.Env.client(), keyword() ) :: {:ok, String.t()} | {:error, Tesla.Env.t()}
MCP protocol SSE stream
Opens a Server-Sent Events stream for the MCP protocol server. Returns Content-Type: text/event-stream.
Parameters
connection(ExBifrost.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, String.t}on success{:error, Tesla.Env.t}on failure
@spec websocket_connect( Tesla.Env.client(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
WebSocket connection Upgrades to a WebSocket connection for real-time updates. Server pushes log events, MCP log events, and store update notifications. Heartbeat pings are sent every 30 seconds.
Parameters
connection(ExBifrost.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure