> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# 使用 AI 构建

> 借助您的 AI 编程智能体安装并集成 Yuno SDK。

> [!TIP]
>
> **AI 驱动编程**：将 Yuno 文档直接连接到您本地的 AI
> 智能体（Claude Code、Cursor、Windsurf），获得实时协助。此处的每个页面
> 都可以通过 **Copy page** 以 AI 可读的形式获取。

## 使用 AI 安装

最快的集成方式，就是让您的智能体替您完成。将以下内容粘贴到
Claude Code、Cursor 或任何编程智能体中。它会阅读
[快速入门](https://docs.y.uno/zh-hans/docs/yuno-sdk/get-started.md)指南，完成所有设置，并
以一笔测试支付收尾，让您确认集成正常运行：

```text theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
Read https://docs.y.uno/docs/yuno-sdk/get-started and integrate
the Yuno SDK into this project:

1. Load https://sdk-web.y.uno/v2/main.js with a script tag,
   or npm install @yuno-payments/sdk-web@^10 and call
   loadScript({ baseUrl: 'https://sdk-web.y.uno/v2' }).
   Both stay on the latest 2.x release.
   Do not install 9.x or older of that package: those load SDK 1.x
2. Initialize SdkPayments once with the public API key from my env
3. Add a backend endpoint that creates a checkout session
   (workflow: "SDK_SEAMLESS")
4. Start a Transaction with onStatus wired, then run a sandbox
   test payment with card 4507 9900 0000 0002, expiry 11/28,
   CVV 123, cardholder John Doe
```

该卡号是一张测试卡：它仅在 sandbox 中有效，不涉及真实资金
流动。更多信息请参阅[测试卡](https://docs.y.uno/zh-hans/docs/yuno-sdk/get-started.md#test-cards)。

## 连接您的智能体（MCP）

MCP 是将您的 AI 智能体直接连接到 Yuno 的插头。添加后，
您的智能体可以替您创建测试会话、查询支付并试用各种流程，
而无需离开您的编辑器：

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "mcpServers": {
    "yuno": {
      "url": "https://mcp.y.uno/v1"
    }
  }
}
```

> [!NOTE]
>
> MCP 服务器和 Agent Toolkit 的文档位于
> [AI 功能](https://docs.y.uno/zh-hans/docs/ai-capabilities/building-ai-integrations-with-yunos-llms-and-mcp.md)；
> endpoint 和认证详情请参阅该处。

## 现成的技能

技能是预先打包的专业知识：它们向您的智能体传授 Yuno 的工作流，
让您无需亲自解释。*（提议中，正与 AI
功能团队共同定义。）*

| 技能 | 作用 |
| - | - |
| `yuno-sdk-install` | 搭建完整集成：安装、初始化、会话 endpoint、控制器接线。 |
| `yuno-test-payment` | 在各种测试卡场景下运行 sandbox 支付并报告结果。 |
| `yuno-migrate` | 将旧版集成（Full、Lite、Seamless…）映射到统一的 `Transaction` API。 |

## 您的智能体可以阅读的文档（llms.txt）

本文档的每个页面也都以智能体可自行阅读的格式发布，
索引位于 [docs.y.uno/llms.txt](https://docs.y.uno/llms.txt)。
将您的智能体指向该处，它即可在无需您
帮助的情况下浏览文档。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.