Borrowing it
Nothing to install: this file belongs to wangsquirrel/divination-chart-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/wangsquirrel/divination-chart-mcp/main/CLAUDE.mdgit clone --depth 1 https://github.com/wangsquirrel/divination-chart-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/wangsquirrel/divination-chart-mcp/claude-md)<a href="https://agentmods.dev/instructions/wangsquirrel/divination-chart-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/wangsquirrel/divination-chart-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/wangsquirrel/divination-chart-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/wangsquirrel/divination-chart-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00734 | $0.00734 |
| Opus 5.5 | $0.00294 | $0.00294 |
| Sonnet 5.5 | $0.00147 | $0.00147 |
| Haiku 4.5 | $0.00073 | $0.00073 |
Grade A, and why
divination-chart-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
本文件为 Claude Code (claude.ai/code) 提供在此代码库中工作的指导。
项目概述
这是一个用于生成占卜排盘的 MCP (Model Context Protocol) 服务器。目前实现六爻排盘和八字排盘。
常用命令
# 安装依赖
uv sync
# 运行 stdio 传输的 MCP 服务器(默认)
uv run --with . divination-chart-mcp
# 指定传输方式运行
uv run --with . divination-chart-mcp --transport stdio
uv run --with . divination-chart-mcp --transport sse
uv run --with . divination-chart-mcp --transport streamable-http
# 测试 MCP 服务器
uvx fastmcp list --command 'uv run --with . divination-chart-mcp' --json
# 运行客户端示例
uv run python examples/mcp_client.py
# 使用 uvicorn 部署
uvicorn api.index:app --host 0.0.0.0 --port 3000
架构
divination-chart-mcp/
├── src/divination_chart_mcp/ # 主包
│ ├── server.py # FastMCP 服务器 + @fast_mcp.tool() 定义
│ ├── models.py # Pydantic 输入模型
│ ├── cli.py # CLI 入口点 (sixline, all)
│ └── asgi.py # ASGI 应用导出(用于部署)
├── api/index.py # Vercel 部署入口
└── examples/
├── mcp_client.py # 演示如何调用工具
└── start_server.py # 简单的服务器启动脚本
核心模式:server.py 定义 @fast_mcp.tool() 函数,使用外部 divicast 库进行占卜逻辑。工具接收 models.py 中的 Pydantic 模型作为输入,返回类型化输出。
Divicast 库 (divicast @ git+https://github.com/wangsquirrel/[email protected]) 提供:
divicast.sixline.DivinatorySymbol- 六爻占卜divicast.sixline.to_standard_format()- 输出格式化- 计划中:
divicast.bazi.BaziSymbol- 八字排盘
关键文件
server.py:23-37-divination_liu_yao工具定义(当前唯一的 MCP 工具)models.py:5-18-DivinationInput模型,包含 year/month/day/hour/yaoguapyproject.toml:11-16- 依赖配置,包括 divicast git 包
开发注意事项
- 包使用
uv_build构建,目标是 wheel - CLI 脚本定义在
pyproject.toml [project.scripts]:sixline→cli:sixline(stdio 传输)divination-chart-mcp→cli:all(交互式选择传输方式)
- FastMCP 使用
dereference_schemas=True以获得更扁平的 schema 输出
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 65 lines · 734 tokens per session scan A 0405546e900f
divination-chart-mcp CLAUDE.md is an instructions file published in the GitHub repository wangsquirrel/divination-chart-mcp (1 stars, last pushed 6mo ago), licensed MIT. It adds 734 tokens to every session, about $0.0029 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
divination-chart-mcp CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| divination-chart-mcp CLAUDE.mdwangsquirrel/divination-chart-mcp | Instructions file | 1 | 6mo ago | MIT | A | 734 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,649 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |