The Open Framework for Building Agents
Update Agentcard connection template (#2396)
Casey Gowrie1702cdb6b148
diff --git a/apps/docs/lib/integrations/connection-setup.test.ts b/apps/docs/lib/integrations/connection-setup.test.tsindex 2376a02d1..c83c8261f 100644--- a/apps/docs/lib/integrations/connection-setup.test.ts+++ b/apps/docs/lib/integrations/connection-setup.test.ts@@ -34,7 +34,7 @@ describe("Agentcard connection setup", () => {const setup = buildConnectionSetup(integration);const quickStart = setup.variants["mcp:user"];- expect(quickStart).toContain('description: "Agentcard tools and data"');+ expect(quickStart).toContain("Agentcard: the agent's wallet.");expect(quickStart).toContain('auth: connect("agentcard")');expect(setup.configureVariants["mcp:user"]).toContain("vercel connect create agentcard");expect(setup.configureVariants["mcp:user"]).not.toContain("--name");diff --git a/apps/docs/registry.json b/apps/docs/registry.jsonindex 784adb880..9bd080207 100644--- a/apps/docs/registry.json+++ b/apps/docs/registry.json@@ -340,7 +340,7 @@"name": "connection/agentcard","type": "registry:item","title": "Agentcard",- "description": "Shop at real merchants with consent-gated single-use virtual cards.",+ "description": "let agents buy online","meta": {"eve": {"setup": {diff --git a/apps/docs/registry/connections/agentcard.ts b/apps/docs/registry/connections/agentcard.tsindex 077bb439c..5af92e50d 100644--- a/apps/docs/registry/connections/agentcard.ts+++ b/apps/docs/registry/connections/agentcard.ts@@ -1,8 +1,53 @@-import { defineMcpClientConnection } from "eve/connections";import { connect } from "@vercel/connect/eve";+import { defineMcpClientConnection } from "eve/connections";++const APPROVAL_GATED = ["create_card", "get_card_details", "remove_added_card"];export default defineMcpClientConnection({url: "https://mcp.agentcard.sh/mcp",- description: "Agentcard tools and data",- auth: connect("agentcard"),+ description:+ "Agentcard: the agent's wallet. Shop and check out at real merchants (DoorDash, Good Eggs, flights) with the conversational `buy` tool (thread conversation_id on follow-ups), issue a single-use virtual card to pay at any checkout, let the user add their own card, and manage the cash that funds it: balance, top-ups, transactions, KYC, human support.",+ auth: connect(process.env.AGENTCARD_CONNECTOR ?? "agentcard"),+ tools: {+ allow: [+ // Shopping+ "buy",+ "get_instructions",+ "buy_list_merchants",+ "buy_connect",+ "buy_connect_status",+ "buy_unlink_merchant",+ "manage_subscription",+ // Cash+ "get_balance",+ "add_funds",+ "list_transactions",+ // Issued cards: pay at any checkout+ "create_card",+ "get_card_details",+ "get_card_balance",+ "list_cards",+ "close_card",+ // The user's own card, no prefunding or KYC+ "add_card",+ "list_added_cards",+ "remove_added_card",+ "get_wallet_link",+ // Account+ "whoami",+ "start_kyc",+ "get_kyc_status",+ "submit_kyc_document",+ "check_kyc_document",+ "submit_kyc_fields",+ // Human support+ "start_support_chat",+ "send_support_message",+ "read_support_chat",+ ],+ },+ approval: ({ toolName }) =>+ APPROVAL_GATED.includes(toolName.split("__").pop() ?? toolName)+ ? "user-approval"+ : "not-applicable",});diff --git a/packages/eve-catalog/src/index.test.ts b/packages/eve-catalog/src/index.test.tsindex cda84cdc5..27a482465 100644--- a/packages/eve-catalog/src/index.test.ts+++ b/packages/eve-catalog/src/index.test.ts@@ -76,9 +76,10 @@ describe("integration catalog", () => {});it("uses Agentcard's streamable HTTP MCP endpoint", () => {- expect(getIntegrationEntry("agentcard")!.connection!.mcp!.url).toBe(- "https://mcp.agentcard.sh/mcp",- );+ const agentcard = getIntegrationEntry("agentcard")!;++ expect(agentcard.tagline).toBe("let agents buy online");+ expect(agentcard.connection!.mcp!.url).toBe("https://mcp.agentcard.sh/mcp");});it("uses Linear's streamable HTTP MCP endpoint", () => {diff --git a/packages/eve-catalog/src/index.ts b/packages/eve-catalog/src/index.tsindex 1efd0447f..5ff1dfb4d 100644--- a/packages/eve-catalog/src/index.ts+++ b/packages/eve-catalog/src/index.ts@@ -404,10 +404,11 @@ export const INTEGRATIONS: readonly IntegrationEntry[] = [slug: "agentcard",name: "Agentcard",kind: "connection",- tagline: "Shop at real merchants with consent-gated single-use virtual cards.",+ tagline: "let agents buy online",surfaces: { scaffoldable: false, registry: true, gallery: true },connection: {- description: "Agentcard tools and data",+ description:+ "Agentcard: the agent's wallet. Shop and check out at real merchants (DoorDash, Good Eggs, flights) with the conversational `buy` tool (thread conversation_id on follow-ups), issue a single-use virtual card to pay at any checkout, let the user add their own card, and manage the cash that funds it: balance, top-ups, transactions, KYC, human support.",mcp: { url: "https://mcp.agentcard.sh/mcp" },},},