// ARC before_checkout through the AI SDK MCP client. No model, no key. // npm i ai @ai-sdk/mcp // node example.mjs import { createMCPClient } from "@ai-sdk/mcp"; const ARC = process.env.ARC_MCP_URL ?? "https://www.arcreport.ai/api/ask"; const arc = await createMCPClient({ transport: { type: "http", url: ARC } }); try { const tools = await arc.tools(); // Call before_checkout before you send the user to checkout. const record = await tools.before_checkout.execute({ url: "https://allbirds.com" }, { toolCallId: "1", messages: [] }); console.log(record.content[0].text); } finally { await arc.close(); }