内容
# OpenAI Agent Kit <> Vincent MCP
本仓库展示了如何将 Vincent MCP 与 OpenAI Agent Kit 集成。
## 设置
1. 将 `.env.example` 复制为 `.env`
2. 完成你的 OpenAI API 密钥
3. 填写你将使用的服务器类型的 MCP 值,可以是 STDIO 或 HTTP
4. 运行 `python run_stdio.py` 或 `python run_http.py`,选择你之前设置的 MCP 服务器类型
### 本地 Vincent MCP 设置
请查看 [Vincent repo](https://github.com/LIT-Protocol/Vincent) 及其 [mcp package](https://github.com/LIT-Protocol/Vincent/tree/main/packages/mcp) 获取设置说明。
# 运行
完成设置后,你可以根据想要的 MCP 服务器类型运行 `python run_stdio.py` 或 `python run_http.py`。
脚本的输出将类似于以下内容,考虑到 LLMs 的变动性:
```shell
View trace: https://platform.openai.com/traces/trace?trace_id=<trace_123...>
Running: Check who my delegators are and then check the native balance in base blockchain of the first one.
Your first delegator is:
- **Token ID**: 0x25cde13de35b4ae0bdde4f1a3c910eae236201e8776a182ca0092fcf9495004e
- **ETH Address**: 0x2b0e8EBA44FE6Fdc87dE6ADfa3367417D97Fd22f
- **Public Key**: 0x0490f9499c818c3ca1bc7b04fcaa8ceea9f1e3861e7bdddcbbd968a7eb2b74450f98434c0f71a18b2b28fdd2b79b9452bb9cd00281874d0e757599e2a7ea9a21c0
The native balance on the Base blockchain for this delegator is **0.00249632539384409** ETH.
```
在 OpenAI 链接中检查追踪应该输出所有代理如何协调并执行每一步,类似于以下截图。

你可以看到第一个代理如何委托给第二个代理,第二个代理拥有必要的工具,并在达到最终结果之前执行了所需的操作。