D黑奴背锅 文档中心

MCP 服务

使用 Streamable HTTP 与 Bearer Token 连接 Dibin MCP 工具服务。

Dibin MCP 服务允许支持 Model Context Protocol 的客户端调用平台工具能力。接入前需要取得平台发放的 MCP Token。

服务信息

项目
服务地址https://api.dibinos.cn/mcp
健康检查https://api.dibinos.cn/mcp/health
传输方式Streamable HTTP
鉴权方式Authorization: Bearer sk-dibin-xxx

客户端配置

{
  "mcpServers": {
    "dibin-mcp": {
      "url": "https://api.dibinos.cn/mcp",
      "headers": {
        "Authorization": "Bearer sk-dibin-xxx"
      }
    }
  }
}

查询工具列表

curl -X POST https://api.dibinos.cn/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-dibin-xxx" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list",
    "params": {}
  }'

调用具体工具时使用 tools/call,并按 tools/list 返回的输入 schema 传递参数。

主要工具

工具说明主要参数
generate_uuid生成 UUID v4 或 v7。
search_erp_field根据中文描述搜索 ERP 字段参数名。query
get_douyin_trending获取抖音热搜榜单。
get_weibo_trending获取微博热搜榜单。
get_star_luck获取十二星座今日运势。sign
get_daily_almanac获取黄历信息。
get_bazi根据出生时间计算八字四柱。birth_time, gender
get_dayun根据出生时间计算大运流年。birth_time, gender
draw_lot随机抽取观音灵签。
get_nine_star获取年、月、日九星飞宫信息。

安全要求

  • MCP Token 不得写入公开仓库或前端代码。
  • 调用前先执行 tools/list,确认当前账号可用工具和参数 schema。
  • Token 失效或停用时服务返回 401,应停止请求并更换有效 Token。

On this page