// ARC before_checkout through @langchain/mcp-adapters. No model, no key. // npm i @langchain/mcp-adapters @langchain/core // node example.mjs import { MCPAdapter } from "@langchain/mcp-adapters"; const ARC = process.env.ARC_MCP_URL ?? "https://www.arcreport.ai/api/ask"; const arc = new MCPAdapter({ servers: { arc: { url: ARC } } }); try { const tools = await arc.listTools(); // Version 2 prefixes each tool with the server key: arc_before_checkout. const beforeCheckout = tools.find((t) => t.name === "arc_before_checkout"); // Call before_checkout before you send the user to checkout. const record = await beforeCheckout.invoke({ url: "https://allbirds.com" }); console.log(typeof record === "string" ? record : JSON.stringify(record)); } finally { await arc.close(); }