知己排盘 BaZi

v0.2.1
com.zhijipaipan/zhiji-bazi Checked 4 days ago Published 3 months ago

BaZi (Chinese Four Pillars) chart calculator.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add zhiji-bazi -- npx -y --package=zhiji-bazi@0.2.1 zhiji-bazi-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "zhiji-bazi": {
      "args": [
        "-y",
        "--package=zhiji-bazi@0.2.1",
        "zhiji-bazi-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "zhiji-bazi": {
      "args": [
        "-y",
        "--package=zhiji-bazi@0.2.1",
        "zhiji-bazi-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "zhiji-bazi": {
      "args": [
        "-y",
        "--package=zhiji-bazi@0.2.1",
        "zhiji-bazi-mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.zhiji-bazi]
command = "npx"
args = ["-y", "--package=zhiji-bazi@0.2.1", "zhiji-bazi-mcp"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http zhiji-bazi https://zhijipaipan.com/bazi-api/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "zhiji-bazi": {
      "args": [
        "-y",
        "mcp-remote",
        "https://zhijipaipan.com/bazi-api/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "zhiji-bazi": {
      "url": "https://zhijipaipan.com/bazi-api/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "zhiji-bazi": {
      "type": "http",
      "url": "https://zhijipaipan.com/bazi-api/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.zhiji-bazi]
command = "npx"
args = ["-y", "mcp-remote", "https://zhijipaipan.com/bazi-api/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: bazi_compute.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json