Dashboard · 集成

把章鱼排版接进你的 Agent

两步:创建一枚带 render 权限的 token,然后在 Agent 的 MCP 配置里加一条远程服务器。

1 · 远程 MCP(推荐)

{
  "mcpServers": {
    "zhangyu": {
      "type": "http",
      "url": "https://mcp.zhangyupaiban.com/mcp",
      "headers": {
        "Authorization": "Bearer zyp_your_token_here"
      }
    }
  }
}

详细的客户端安装示例见 MCP 文档。

2 · 直接 REST API

curl https://api.zhangyupaiban.com/v1/projects \\
  -H "Authorization: Bearer zyp_your_token_here" \\
  -H "Content-Type: application/json" \\
  -H "Idempotency-Key: demo-0001" \\
  -d '{"title":"示例","content":"# 标题\n\n正文…"}'

完整端点与错误格式见 API 文档。

安全提示

token 等同于你的排版账户权限:只粘贴进你信任的客户端配置;泄露后立即到「API 密钥」页撤销。最小权限原则:给 Agent 的 token 建议只开 project:write / render:create / render:read。