ExMCP.ACP.Envelope (ex_mcp v1.0.0-rc.0)
View SourcePure JSON-RPC 2.0 envelope builders for ACP messages.
Method-specific modules should own their payload shapes. This module owns only the repeated JSON-RPC frame so request builders can stay pipe-friendly:
Envelope.request("session/new")
|> Envelope.with_params(params)
|> Envelope.with_id(id)
Summary
Functions
Builds a JSON-RPC error response from an error map.
Builds a JSON-RPC error response from code, message, and optional data.
Builds a JSON-RPC notification envelope.
Builds a JSON-RPC request envelope without params.
Builds a JSON-RPC request envelope with params.
Builds a JSON-RPC request envelope with params and id.
Builds a JSON-RPC success response envelope.
Adds an id to an existing JSON-RPC envelope.
Adds params to an existing JSON-RPC envelope.
Functions
Builds a JSON-RPC error response from an error map.
Builds a JSON-RPC error response from code, message, and optional data.
Builds a JSON-RPC notification envelope.
Builds a JSON-RPC request envelope without params.
Builds a JSON-RPC request envelope with params.
Builds a JSON-RPC request envelope with params and id.
Builds a JSON-RPC success response envelope.
Adds an id to an existing JSON-RPC envelope.
Adds params to an existing JSON-RPC envelope.