MingaClaudeBridge.MCP.CallRequest (minga_claude_bridge v0.1.0)

Copy Markdown View Source

A validated MCP tools/call request that Minga must run.

  • jsonrpc_id - the JSON-RPC request id. The reply to the call must carry it.
  • tool_use_id - the id of the tool_use block in the assistant message, read from params._meta["claudecode/toolUseId"]. Minga uses it as the tool-call id, and MingaClaudeBridge.ToolCalls uses it to pair the result with the held control request.
  • name - a tool name offered for the current turn.
  • arguments - the call arguments as a string-keyed JSON object. They passed the minimal check in MingaClaudeBridge.MCP; Minga validates them fully.

The arguments are conversation content. Do not log them.

Summary

Types

t()

@type t() :: %MingaClaudeBridge.MCP.CallRequest{
  arguments: %{optional(String.t()) => term()},
  jsonrpc_id: MingaClaudeBridge.Wire.jsonrpc_id(),
  name: String.t(),
  tool_use_id: String.t()
}