List MCP Tools
Calls tools/list on the Merchant MCP server.
Save this example as 07-mcp-list-tools.mjs.
import { printJson, readConfig, thyrisRequest } from "./thyris-client.mjs"
const config = readConfig()
const result = await thyrisRequest(config, "/mcp", {
method: "POST",
body: JSON.stringify({
jsonrpc: "2.0",
id: 1,
method: "tools/list",
}),
})
printJson(result)