hen 0.19.0

Run protocol-aware API request collections from the command line or through MCP.
Documentation
$ MCP_ORIGIN = https://lorem-api.com/api/mcp

---

Connect MCP

protocol = mcp
session = app
POST {{ MCP_ORIGIN }}
call = initialize

& body.result -> $INIT_RESULT

! echo "MCP Initialized: $INIT_RESULT"

# Negotiates a protocol version
^ & body.result.protocolVersion ~= /.+/

# Returns server info
^ & body.result.serverInfo.name ~= /.+/

---

List tools

protocol = mcp
session = app

call = tools/list

# Returns a tool list
^ & body.result.tools != null

---

Call tool

protocol = mcp
session = app
call = tools/call
tool = generateNumbers
arguments = {"seed":"0", "min": 0, "max": 100, "type": "int"}

# Returns the seeded first number
^ & json(body.result.content[0].text).[0] == 49