{"_id":"@asklingxi/bazi-mcp","name":"@asklingxi/bazi-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@asklingxi/bazi-mcp","version":"0.1.0","description":"灵犀问道八字排盘 MCP Server：输入公历/农历/四柱出生信息，返回可直接投喂大模型的排盘提示词（命盘、大运、流年）。","type":"module","bin":{"bazi-mcp":"src/index.js"},"main":"src/index.js","scripts":{"smoke":"node ./scripts/smoke-test.mjs"},"engines":{"node":">=18"},"keywords":["mcp","model-context-protocol","bazi","八字","命理","asklingxi","灵犀问道"],"author":{"name":"asklingxi.com"},"license":"MIT","homepage":"https://asklingxi.com","dependencies":{"@modelcontextprotocol/sdk":"^1.29.0"},"gitHead":"0d28da1863e54672a9ceffac1d452080b3729577","_id":"@asklingxi/bazi-mcp@0.1.0","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-dz8wMZH7vCBHM8IwsXNiDZk/u5Awlv1ArLQfglL7s3Ay6VKLCPGct5Q20+z6yNroiJ9ZGzT9p08l+BfQRk+osQ==","shasum":"236ac590781b83e1f442ad3fc87a13589687cece","tarball":"https://registry.npmjs.org/@asklingxi/bazi-mcp/-/bazi-mcp-0.1.0.tgz","fileCount":6,"unpackedSize":11068,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAW9hjq9GgO2Kyurdn5YEjmLjSPC4ZcGuqnIfvftJ/x8AiEA3pUK4o76UyOCJcq1Ysk4u3SIRZmbcbw/60b2PVUQNVE="}]},"_npmUser":{"name":"natlan.tech","email":"natlan.tech@gmail.com"},"directories":{},"maintainers":[{"name":"natlan.tech","email":"natlan.tech@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bazi-mcp_0.1.0_1784270417134_0.28613859466665703"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-17T06:40:16.953Z","0.1.0":"2026-07-17T06:40:17.270Z","modified":"2026-07-17T06:40:17.482Z"},"maintainers":[{"name":"natlan.tech","email":"natlan.tech@gmail.com"}],"description":"灵犀问道八字排盘 MCP Server：输入公历/农历/四柱出生信息，返回可直接投喂大模型的排盘提示词（命盘、大运、流年）。","homepage":"https://asklingxi.com","keywords":["mcp","model-context-protocol","bazi","八字","命理","asklingxi","灵犀问道"],"author":{"name":"asklingxi.com"},"license":"MIT","readme":"# @asklingxi/bazi-mcp\n\n灵犀问道八字排盘 [MCP](https://modelcontextprotocol.io) Server。提供一个工具 `bazi_paipan`：输入公历 / 农历 / 四柱出生信息，返回可直接投喂大模型的排盘提示词（命盘、大运、流年）。\n\n本包是薄客户端，实际计算由 [asklingxi.com](https://asklingxi.com) 接口完成。\n\n## 快速开始\n\n无需全局安装，通过 `npx` 直接运行：\n\n```bash\nnpx -y @asklingxi/bazi-mcp\n```\n\n## 客户端配置\n\n### Claude Desktop\n\n编辑 `claude_desktop_config.json`，添加：\n\n```jsonc\n{\n  \"mcpServers\": {\n    \"bazi\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@asklingxi/bazi-mcp\"],\n    },\n  },\n}\n```\n\n### Cursor / 其他支持 MCP 的客户端\n\n同样以 stdio 方式启动 `npx -y @asklingxi/bazi-mcp` 即可，配置方式参考各客户端 MCP 文档。\n\n## 工具\n\n### `bazi_paipan`\n\n常用输入示例：\n\n```jsonc\n// 公历\n{ \"gender\": \"男\", \"date\": \"1987-09-02 23:00\" }\n\n// 农历（闰月月份加 L）\n{ \"gender\": \"女\", \"calendarType\": \"lunar\", \"date\": \"1987-6L-10\" }\n\n// 四柱\n{ \"gender\": \"男\", \"calendarType\": \"pillar\", \"pillars\": \"丁卯戊申甲寅丙子\" }\n```\n\n返回：一段可直接投喂大模型的排盘提示词文本（命盘 + 大运 + 流年）。\n\n## 环境变量（可选）\n\n| 变量                | 说明                                                     |\n| ------------------- | -------------------------------------------------------- |\n| `BAZI_MCP_BASE_URL` | 排盘接口域名，默认 `https://asklingxi.com`               |\n| `BAZI_MCP_API_KEY`  | API Key（可选），会随请求以 `Authorization: Bearer` 发送 |\n\n## 隐私说明\n\n- `bazi_paipan` 的输入会发送到 `BAZI_MCP_BASE_URL`（默认 `https://asklingxi.com`）进行排盘计算。\n- 请勿在参数中传入与排盘无关的敏感信息（如证件号、银行卡、账号密码等）。\n- 如用于生产环境，请在你的产品侧完成用户告知与授权。\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-69f87dabef17174239f0fbd9e2ff1b8b"}