九玄宫 · 奇门

口径、隐私与接入

本服务与 https://pp.jiuxuangong.com/ 使用同一套起局函数:buildModel → chartAt。扩展项保持 hidden_stems=duty_door_hour_stem_with_center_fallback、day_horse=day_branch_three_harmony,交给内核的 utc_offset_minutes 为 480。不要在调用前先把时间换成真太阳时,否则会算两次。

时间

地理

东经 73–135.5,代码与产品都写明是中国范围。不是全球排盘。缺经度不会默认成 120。

年命

角色只有 q / d / o / t。不收集真实姓名。每个写出生日的身份都要显式选择 trueSolarTime。pp 网页默认勾选,这个接口不勾。出生日若跨过立春,必须带时刻。备注最多 30 字。

隐私与费用

内核

九宫盘面来自 @spensercai/qimen-wasm 0.2.1(MIT)。暗干以该包为准,不与 china95 的暗干列对齐。九玄宫的部分是真太阳时(astronomy-engine)、年命立春表、派生规则和导出。

客户端

支持远程 Streamable HTTP 时:

{
  "mcpServers": {
    "jiuxuangong-qimen": { "url": "https://mcp.jiuxuangong.com/mcp" }
  }
}

mcp-remote

mcp-remote 0.16.6 的文档把远程 URL 放在参数里,给只支持本地 stdio 的客户端做桥。对本地 workerd 的一次短时运行里,它的日志写了 Connected to remote server using StreamableHTTPClientTransport,并转发了 initialize,没有弹出登录。通过这条桥再完成 tools/list 没有在本次构建里做完,所以下面的片段是按该包 README 的写法,不是一条已经走完排盘的生产安装证明。无 API key 时不要加 Authorization 头。stdio 侧是一行一个 JSON,不是 Content-Length 帧。

{
  "mcpServers": {
    "jiuxuangong-qimen": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.jiuxuangong.com/mcp"]
    }
  }
}

错误

字段不合法时,工具返回 isError,正文同时有中文和英文。/api/cast 用 HTTP 400 和 error.code。过快是 HTTP 429。请求体上限 16KB。这些都不是解盘。

English, short

Beijing civil time, China longitudes only, free deterministic casting, qimen-rs kernel, no paid reading. The pp link does not restore births. The fragment link on this host can, and the dates are visible to anyone holding the link. Nothing is written to a customer database.

# 九玄宫奇门遁甲排盘范围

- 官网:https://jiuxuangong.com
- 方法:时家奇门 · 转盘 · 拆补 · 按经度起真太阳时局
- 内核:@spensercai/qimen-wasm 0.2.1(qimen-rs)。不是九玄宫自研内核。
- 时间:北京时间 UTC+8 墙钟。起局年 1900–2100。出生年 1900–2050。
- 经度:东经 73–135.5,仅中国。不是全球排盘。
- 年命角色:q 求测人,d 当事人,o 对方,t 第三方。不需要真实姓名。
- trueSolarTime 必须显式给出。true 时先按出生地经度换真太阳时再比立春。
- pp.jiuxuangong.com/?t=&lon= 只还原起局时间与经度。
- 不提供付费解盘,不使用卡密。
- 没有“最准”“全网首个”或鉴定结论。

# Limits (English)

Beijing civil time (UTC+8). Chart years 1900–2100. Birth years 1900–2050. Longitude 73–135.5 east, China only. Kernel @spensercai/qimen-wasm 0.2.1. Free deterministic casting, not an interpretation.