Skip to content

AI清单

AI清单 提供了 MCP 接口,您可以在 Codex 中接入后直接访问相关能力。

安装要求

请先在微服的内测组中安装 AI清单,并确认版本为 0.5.0+

接入方式

  1. ssh 登录微服。
  2. 执行下面的命令生成对应用户的 token:
bash
hc api_auth_token gen --uid <uid>
  1. 将生成的 token 写入 Codex 配置文件,并添加下面的 MCP 配置:
toml
[mcp_servers.lzc-todolist]
url = "https://todolist.<微服名称>.heiyu.space/api/mcp"

[mcp_servers.lzc-todolist.http_headers]
Lzc-Api-Auth-Token = "<token>"

参数说明

  • <uid>:需要访问 AI清单 的用户 ID。
  • <微服名称>:当前微服的名称。
  • <token>:通过 hc api_auth_token gen 命令生成的访问令牌。