VibeCart

io.github.runjohnray2-lgtm由 GitHub 账号 runjohnray2-lgtm 发布v0.3.0更新于 Oct 24, 2026

Agent-native commerce with trusted catalog, durable carts, and Stripe Checkout via MCP and UCP.

已验证Streamable HTTP可网页运行金融商业与电商

概览

AI 生成的概览

VibeCart 是一个远程电商 MCP 服务器,让助手浏览商户可信商品目录并生成 Stripe 托管结账链接。

可以做什么
  • 列出并查询商品,价格由服务器端从配置的商户目录解析
  • 为一个或多个目录商品创建 Stripe 托管结账链接,价格由服务器端确定
  • 获取安装 VibeCart 的 Next.js App Router 集成说明
  • 在独立端点上提供持久化购物车与 UCP 目录、购物车能力
适用场景
适用于 AI 构建的应用或智能体需要展示商户商品并引导顾客进入 Stripe 结账、又不想自建电商层的场景。适合保留自有 Stripe 账户和商品目录的商户。
运行要求
远程 streamable HTTP 端点,无需安装包。商户侧需配置 HTTPS JSON 商品目录(VIBECART_CATALOG_URL,私有目录可选 VIBECART_CATALOG_BEARER_TOKEN),实时收款还需 Stripe 密钥;未配置时使用演示数据和演示模式结账。
安装前请注意
配置实时密钥后 create_checkout 会联系 Stripe 并创建真实结账会话,但本身不会扣款,需顾客完成支付。未配置目录时服务器提供虚构的演示商品和价格,把商品视为真实前应先确认目录。UCP 端点需要能力协商,普通 MCP 客户端不应使用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 VibeCart,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.runjohnray2-lgtm%2Fvibecart/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "vibecart": {
      "type": "http",
      "url": "https://vibecart.vercel.app/mcp"
    }
  }
}

README

VibeCart

Commerce infrastructure for AI-built apps and AI agents.

VibeCart lets a merchant keep their existing app and Stripe account while adding a small, inspectable commerce layer that AI agents can discover and use. Payments settle directly to the merchant's Stripe account; VibeCart does not need to become merchant of record.

The architecture is protocol-first: one trusted commerce backend, then thin MCP/UCP/client adapters around it.

Live production surface

Generic MCP

Endpoint: https://vibecart.vercel.app/mcp

Tools:

  • vibecart.list_products
  • vibecart.get_product
  • vibecart.get_integration_instructions
  • vibecart.create_checkout

vibecart.create_checkout supports both the legacy single-product input and a trusted multi-item items[] input. Product prices are resolved on the server; callers do not supply real transaction prices.

Generic MCP clients should use /mcp.

Durable cart

VibeCart's Neon-backed cart is live in production:

  • POST /api/cart
  • GET /api/cart/:id
  • PATCH /api/cart/:id
  • DELETE /api/cart/:id
  • POST /api/cart/:id/checkout

The cart uses trusted server-side repricing, idempotent creation, optimistic version checks, expiration, multi-item state, and cart-to-Stripe Checkout handoff.

UCP

  • Discovery: https://vibecart.vercel.app/.well-known/ucp
  • UCP-aware MCP transport: https://vibecart.vercel.app/ucp/mcp
  • Released protocol target: UCP 2026-04-08

Production advertises released catalog and cart capabilities. Current cart tools are:

  • create_cart
  • get_cart
  • update_cart
  • cancel_cart

UCP calls require meta.ucp-agent.profile and capability negotiation. Do not point an ordinary MCP client at /ucp/mcp.

The order pipeline and released-schema get_order adapter also exist, but get_order remains hidden until its VibeCart Cloud lookup and real merchant permalink dependencies are configured. VibeCart does not advertise optional capabilities before their runtime dependencies are ready.

Stripe checkout and orders

  • Trusted multi-line Stripe Checkout creation is supported.
  • Stripe webhook signatures are verified before paid events enter the post-payment pipeline.
  • Delayed-payment completion is handled separately so orders are not created prematurely.
  • Paid Checkout line items are normalized into durable order records when VibeCart Cloud forwarding is configured.
  • Trusted merchant product IDs survive Checkout through Stripe Product metadata.

He Said Nothing physical-store pilot

/he-said-nothing is the controlled physical-product pilot for the $39, $59, and $89 mystery gift boxes. The storefront can remain public while ordering fails closed. When the full launch gate is configured it:

  • saves the relationship quiz, sizing clues, packaging choice, gift message, and fulfillment note in a durable cart
  • opens a cart-bound, idempotent Stripe Checkout Session
  • collects email, phone, shipping address, a separately disclosed shipping charge, and optional Stripe automatic tax
  • stores the verified paid order, line items, delivery details, gift clues, and event history in Neon
  • exposes paid orders only through the HMAC-signed merchant session at /he-said-nothing/admin
  • supports the fulfillment states New, Packing, Shipped, Cancelled, and Refunded-in-Stripe

The checkout gate requires every dependency in .env.example; HSN_CHECKOUT_ENABLED=true alone is insufficient. Test and live Stripe keys must match HSN_CHECKOUT_MODE, and live mode additionally requires customer-support, return-policy, and processing-time text.

Merchant catalog source

The built-in lib/products.ts catalog is demo/reference data only. A real merchant can keep SKUs and prices outside VibeCart and point Core at a merchant-controlled HTTPS JSON feed:

bash
VIBECART_CATALOG_URL=https://merchant.example/vibecart/catalog.jsonVIBECART_MERCHANT_NAME="Example Merchant"# Optional when the feed is private:VIBECART_CATALOG_BEARER_TOKEN=server-side-secret

Accepted response shape:

json
{  "products": [    {      "id": "sku-123",      "name": "Example product",      "description": "Merchant-controlled product data",      "priceCents": 4900,      "image": "https://merchant.example/products/sku-123.jpg",      "variant": "Optional variant"    }  ]}

An array of products at the document root is also accepted. id, name, and a non-negative integer priceCents are required; image URLs, when present, must use HTTPS.

The configured source is shared by generic MCP catalog/checkout, UCP catalog, and durable cart repricing. VibeCart validates the document, rejects duplicate IDs, caps response/product counts, blocks redirects/private-network targets, applies a short timeout, and caches healthy catalog data for 30 seconds. If VIBECART_CATALOG_URL is configured and the source is unhealthy or invalid, commerce operations fail closed; VibeCart does not silently fall back to demo products.

Normal SKU and price changes therefore do not require editing VibeCart TypeScript or redeploying Core.

Agent-client distribution

VibeCart does not build a different commerce engine for every model. OpenAI/Codex/ChatGPT, Claude, Gemini, VS Code, Cursor, and other MCP clients connect to the same backend.

See:

Provider adapters are CI-checked to keep Stripe/database/catalog secrets and duplicated commerce logic out of client configuration.

VibeCart Cloud

VibeCart Core is free to self-host. VibeCart Cloud is the optional $29/month managed layer for merchants that want VibeCart to operate the recurring plumbing.

Current Cloud capabilities include:

  • durable verified commerce events
  • durable normalized paid-order records and order history
  • server-to-server order lookup
  • signed merchant fulfillment webhooks
  • delivery history and bounded retries
  • monitoring/alerts and support workflows

Cloud workspace: https://vibecart-cloud-uupzkh.v2.appdeploy.ai/

Merchant checkout revenue still settles directly to the merchant's Stripe account. VibeCart takes no percentage of merchant sales.

Quick start

bash
npm installnpm run dev

Without VIBECART_CATALOG_URL, Core uses the fictional reference catalog for development. Configure a merchant catalog URL before treating products/prices as a real store catalog.

Without a Stripe secret, Checkout runs in clearly labeled demo mode. For live payments, configure STRIPE_SECRET_KEY in the hosting provider's secret/environment settings. Never commit secret values.

Useful public endpoints:

  • /start — merchant/client quickstart
  • /mcp — generic MCP transport/discovery
  • /api/cart — durable cart creation
  • /.well-known/ucp — UCP business discovery
  • /ucp/mcp — UCP-aware MCP transport
  • /mcp-clients.json — machine-readable client compatibility manifest
  • /llms.txt — concise machine-readable integration notes
  • /agents.md — agent-facing guide
  • /api/health — boolean readiness state without secret values
  • /cloud — managed Cloud offer

Security model

  • Merchant owns the Stripe account and receives merchant funds directly.
  • Trusted prices come from the configured server-side merchant catalog provider.
  • A configured remote merchant catalog fails closed rather than falling back to demo prices.
  • Client-supplied pricing is disabled by default and is prototype-only when explicitly enabled server-side.
  • Stripe webhook signatures are verified before post-payment processing.
  • Cart state is durable and versioned rather than trusted from the browser/agent.
  • Catalog, Stripe, database, and Cloud integration credentials remain server-side.
  • Public health/discovery endpoints expose readiness booleans/capabilities, not credential values.
  • Optional UCP capabilities are advertised only when their runtime dependencies are valid.

Protocol conformance

CI pins the released UCP v2026-04-08 source and executes VibeCart's real mappers through the official ucp-schema validator. Cart success/error payloads, catalog responses, discovery, and the private order mapper have release-pinned conformance gates.

Current reference limits

  • The remote catalog connector is intentionally a simple trusted JSON-provider contract, not yet a multi-merchant catalog control plane with merchant UI, inventory sync, or per-merchant credentials stored by VibeCart Cloud.
  • Inventory, automated tax calculation, shipping-rate calculation, returns/refunds, and a complete fulfillment lifecycle are not finished platform services.
  • Public UCP order lookup remains activation-gated until its Cloud/permalink runtime dependencies are configured.
  • Next.js App Router is the reference implementation; other frameworks should use adapters around the same Core protocol surface rather than fork commerce logic.

North star

VibeCart: commerce infrastructure for every AI agent. Build once. Sell everywhere AI can act.

License

MIT — free to use, modify, distribute, sublicense, and sell under the license terms.

来源:README.md,提交 a17dfc4

工具

4

vibecart.list_products

List trusted catalog products

Lists products from the configured trusted merchant catalog. Use the returned stable IDs for product lookup or checkout.

无需输入参数。

vibecart.get_product

Get one trusted catalog product

Looks up one product and its trusted USD-cent price from the configured merchant catalog. Does not access Stripe or create a checkout.

输入参数productId必填

vibecart.get_integration_instructions

Get secure integration instructions

Returns concise Next.js App Router guidance for installing VibeCart with trusted catalog pricing, multi-item checkout, and the shared MCP endpoint.

无需输入参数。

vibecart.create_checkout

Create a hosted Stripe Checkout session

Creates a hosted checkout URL for one or more trusted merchant-catalog products. Legacy productId + quantity input remains supported; new integrations should use items[]. VibeCart resolves all prices server-side. This can contact Stripe but never charges by itself; the customer must complete Stripe Checkout.

输入参数itemsquantityproductId

版本历史

1
  1. v0.3.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分