← 返回
未分类

ucp-gateway-skill

Search products, prepare carts, publish UCP profiles, and create buyer-confirmed merchant checkout through The Agent Times UCP Gateway. UCP Gateway is the Shopping infrastructure layer for UCP-capable commerce platforms, built around the Universal Commerce Protocol.
Search products, prepare carts, publish UCP profiles, and create buyer-confirmed merchant checkout through The Agent Times UCP Gateway. UCP Gateway is the Shopping infrastructure layer for UCP-capable commerce platforms, built around the Universal Commerce Protocol.
yjkj999999
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 13
下载
💾 0
安装
1
版本
#latest

概述

The Agent Times UCP Gateway Skill

What this is

Use The Agent Times UCP Gateway when a user wants an agent-safe Shopping flow: publish/load a UCP profile, search products, prepare confirmed carts, and create merchant-hosted checkout handoff links without scraping or payment handling.

Endpoint: https://ucpgateway.theagenttimes.com/mcp

Registry: https://ucpgateway.theagenttimes.com/registry

Use this when

  • Product search, product comparison, variant lookup, cart preparation, or checkout handoff is requested.
  • The agent needs to register or reuse a hosted UCP profile and agent_id.
  • A generic MCP client needs discovery-first instructions from the gateway itself.

Do not use this for

  • Scraping merchant websites or bypassing provider APIs.
  • Collecting card/CVV/bank/wallet/payment credentials, passwords, payment tokens, or one-time payment codes.
  • Claiming an order is paid, placed, complete, or guaranteed.
  • Inventing buyer PII such as names, email, phone, or shipping address.

How to start

  1. GET /mcp for the guide, or POST JSON-RPC initialize.
  2. Call tools/list for current tool names, input schemas, output schemas, and annotations.
  3. Call resources/list, then resources/read ucp://gateway/profile-registration for first-time registration or ucp://gateway/agent-guide for the full guide.
  4. Call prompts/list, then prompts/get ucp-profile-registration, ucp-shopping-flow, or ucp-operator-handoff when you need operator-ready flow instructions.
  5. Register/load agent_id, then use Shopping tools through tools/call.

Protocol notes

  • Primary: JSON-RPC 2.0 HTTP POST to /mcp.
  • SSE: GET /mcp with Accept: text/event-stream returns a stateless endpoint/next_step bootstrap; continue over POST.
  • Streamable HTTP compatibility: /mcp supports GET, POST, OPTIONS, DELETE and mcp-session-id in stateless hosted mode. Do not assume durable server-side sessions.
  • Fallback POST routes may exist at /messages and /mcp/messages.

Core tools

  • register_ucp_profile, get_ucp_profile
  • shopping_product_search, shopping_product_get
  • shopping_cart_create, shopping_cart_get, shopping_cart_update, shopping_cart_cancel
  • shopping_checkout_create, shopping_checkout_get, shopping_checkout_update, shopping_checkout_cancel

Use tools/list for schemas instead of relying on remembered arguments.

Profile registration notes

  • Generate or reuse a local ECDSA P-256 key pair. Keep private_key.jwk local only. Never pass private key material to MCP.
  • Call register_ucp_profile with agent_name, public_key_jwk, optional namespace, optional description, optional public metadata, skill_name: "ucp-gateway-skill".
  • The gateway creates the canonical UCP profile, default Shopping capabilities, payment_handlers: {}, public signing_keys, metadata, agent_id, and profile_url.
  • Save returned agent_id, namespace, profile_url, registry_url, and generated profile_json to ./.ucpgateway/agent.json or equivalent local state.
  • If you intentionally use legacy profile_json, exact capability keys are required: dev.ucp.shopping.catalog.search, dev.ucp.shopping.catalog.lookup, dev.ucp.shopping.catalog, dev.ucp.shopping.cart, dev.ucp.shopping.checkout.

Shopping flow

  1. Register profile or load an existing agent_id.
  2. Search products with shopping_product_search.
  3. Fetch product/variant details with shopping_product_get if needed.
  4. Show provider-returned options/prices/availability to the buyer.
  5. Ask the buyer to choose product/variant and quantity.
  6. Ask confirmation before shopping_cart_create or shopping_cart_update.
  7. Show cart summary/totals/messages.
  8. Collect checkout buyer data only from the buyer: first name, last name, email, shipping street, city, state/region, postal code, ISO-2 country, optional phone.
  9. Ask final confirmation before checkout.
  10. Call shopping_checkout_create with operator_confirmed: true.
  11. Hand off continue_url; payment is merchant-hosted only.

Safety flow

  • Product search/detail is read-only.
  • Ask explicit confirmation before cart create/update/cancel.
  • Show cart totals/messages/warnings and ask final confirmation before checkout.
  • Set operator_confirmed: true only after that final confirmation.
  • Hand off the returned continue_url; the buyer enters payment on the merchant site.

Response handling and next_step

After every tools/call, read result.structuredContent.next_step:

  • summary: short recommended next action.
  • recommended_tools: tool names that may be useful next.
  • actions: non-binding hints; arguments_hint is not authorization.
  • warnings: caveats, safety notes, or handoff instructions.

Common recoveries:

  • AGENT_ID_REQUIRED / AGENT_NOT_REGISTERED: register or load an active agent_id.
  • INVALID_UCP_PROFILE: use the default public_key_jwk path when possible; if using advanced profile_json, replace shorthand capabilities like shopping with exact supported keys.
  • INVALID_PUBLIC_KEY: send only an EC P-256 public_key_jwk; keep ./.ucpgateway/private_key.jwk local.
  • INVALID_TOOL_ARGUMENTS: fix arguments using tools/list schemas.
  • RATE_LIMITED: wait for retry_after_seconds; reuse the same client_action_id only for the same confirmed mutation retry.
  • BUYER_INFO_REQUIRED: collect buyer-provided checkout fields; never invent PII.
  • OPERATOR_CONFIRMATION_REQUIRED: show cart summary and ask for confirmation before retrying with operator_confirmed: true.
  • Payment-data rejection: remove payment fields. Buyer enters payment only on the merchant checkout.

Every gateway response or error includes next_step guidance. For tool calls, read result.structuredContent.next_step and/or result.next_step. Treat argument hints as suggestions only — never as buyer authorization.

版本历史

共 1 个版本

  • v1.0.0 从ClawHub迁移发布 当前
    2026-06-07 11:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Calendar

ndcccccc
日历管理与日程安排。创建事件、管理会议,并实现多日历平台同步。
★ 7 📥 23,293
design-media

agnes-image-gen

user_15292d5a
使用 Agnes AI 的图片生成模型生成图片,支持文生图(agnes-image-2.1-flash)和图生图(agnes-image-2.0-flash)。支持自定义 API Key,用户可使用自己的 Agnes Key。优化重点:降低
★ 1 📥 216
business-ops

Stripe

byungkyu
Stripe API 集成,支持托管 OAuth,实现对客户、订阅、发票、产品、价格和支付的可写金融集成。
★ 27 📥 26,177