跳到主要内容

把知命接入你的 Agent

知命的命盘引擎通过 MCP(Model Context Protocol)开放。任何支持 MCP 的宿主都能直接排盘、查黄历、择日、核对典籍,而不必把用户引到一个网页上。

端点与鉴权

协议版本 2026-07-28,传输方式为 Streamable HTTP(POST)。服务端是**无状态**的:没有 initialize 握手,也没有会话 id。

https://fateread.cc/api/mcp

protocolVersion: 2026-07-28

创建访问令牌

匿名可用

不创建令牌也能调用一部分工具:只读、确定性、零积分、不读任何个人数据的那几个。按 IP 每天有次数上限。其余工具需要一个账号,因为它们要读你保存的命盘。

cast_chart, get_almanac, resolve_birthplace, consult_classics · 20/IP/day

工具清单

这张表由服务端的能力注册表**生成**,不是手写的 —— 它和 server-card、以及实际可调用的工具永远一致。工具描述固定为英文:它是给模型读的协议面文案。

工具作用代价权限分组
cast_chartCast a BaZi + Zi Wei chartCast a Chinese astrology chart (BaZi Four Pillars + Zi Wei Dou Shu) from a birth date, time and place.免费chart:read核心
resolve_birthplaceResolve a birthplace name to longitude + IANA time zoneResolve a free-text birthplace to the server's own city dictionary, returning a longitude and an IANA免费chart:read核心
get_daily_fortuneToday's fortune (day pillar, element, solar term)Get the deterministic daily fortune for a Chinese civil date (Asia/Shanghai): the day pillar (干支),免费fortune:read核心
get_almanacChinese almanac (yi/ji, clash, hour luck)Get the traditional Chinese almanac (通書/黃曆). With `date` you get one full day: the 宜/忌 word lists,免费fortune:read核心
find_auspicious_datesFind auspicious dates for an eventScore and rank the days in a window for a specific activity, using the traditional almanac and — when the免费fortune:read核心
consult_classicsConsult the classical BaZi sources on a topicLook up what the core classical texts say about one topic, as structured claims with citations, premises免费classics:read核心
list_chartsList the saved birth charts on this accountList the birth charts saved on the signed-in account, as short summaries, and return the `ref` handle for免费profile:read核心
read_chartAsk a question about one saved chart (LLM reading)Run one reading against one saved chart and return the answer as prose. This is the tool for a question10 积分chat:write进阶
match_chartsCompare two charts (compatibility)Compare two people's charts and return both the deterministic 8-dimension compatibility report and a200 积分compatibility:write进阶
generate_reportGenerate a BaZi book (long-running, two-step)Queue a long-form BaZi book for a saved chart and return a job handle IMMEDIATELY. This is a two-step200 积分 / 150 积分report:write进阶
get_report_statusCheck a long-running report jobPoll the status of a job created by `generate_report`. Returns `queued`, `running`, `done` or `failed`.免费report:write进阶

权限(scope)

令牌默认只有只读权限。要调用会消耗积分的能力,必须在创建令牌时显式勾选;权限不足时服务端返回 insufficient_scope,并告诉你缺哪一个。

接入示例

两家宿主都原生支持静态请求头,所以直接填令牌即可。

OpenClaw

openclaw mcp add fateread \
  --url https://fateread.cc/api/mcp \
  --transport streamable-http \
  --header "Authorization: Bearer fat_xxx" \
  --include 'cast_chart,get_daily_fortune,find_auspicious_dates'

Hermes

# ~/.hermes/config.yaml
# 顶层键是 mcp_servers:,不是 mcp: servers:
mcp_servers:
  fateread:
    url: https://fateread.cc/api/mcp
    headers:
      Authorization: "Bearer fat_xxx"
    tools:
      include: [cast_chart, get_daily_fortune, find_auspicious_dates]

任意 JSON-RPC 客户端

直接用 curl 验证端点是否可达:

curl -s https://fateread.cc/api/mcp \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

机器可读入口

写 agent 的人可以从这几个文件拿到完整清单。

坦白说:发布 llms.txt、MCP server-card 这类文件**不保证**带来引用流量。它确定带来的两件事,是降低已经在抓取本站的 agent 的解析成本,以及让「要不要引用你」这个决策更容易做对。

边界与口径

知命把八字当作一套约两千年的性格类型与节奏框架 —— 一个结构化的自省视角,而不是对未来的预测。它不告诉你「会发生什么」,而是描述格局、顺逆的时段,以及每种组合各自的取舍。流派之间有分歧时,会说明分歧,而不是抹平。

这里没有任何内容构成医疗、法律、金融或心理建议。

工具只读取你账号里已保存的命盘,且 list_charts 只返回昵称与四柱摘要 —— 不返回出生分钟与出生地经度。

Agent 面**只消费你已经购买的权益**:所有扣费都走同一个积分账本,没有独立的价目表,也不在这里提供任何收单入口。