$ 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"
^ & body.result.protocolVersion ~= /.+/
^ & body.result.serverInfo.name ~= /.+/
---
List tools
protocol = mcp
session = app
call = tools/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"}
^ & json(body.result.content[0].text).[0] == 49