Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/mymcp-fun/baziWrote 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/rules/mymcp-fun/bazi/mcp-bazi-project-guide)<a href="https://agentmods.dev/rules/mymcp-fun/bazi/mcp-bazi-project-guide"><img src="https://agentmods.dev/badge/rules/mymcp-fun/bazi/mcp-bazi-project-guide/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/rules/mymcp-fun/bazi/mcp-bazi-project-guide"><img src="https://agentmods.dev/badge/rules/mymcp-fun/bazi/mcp-bazi-project-guide.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.00005 | $0.01762 |
| Opus 5 | $0.00003 | $0.00881 |
| Sonnet 5 | $0.00001 | $0.00352 |
| Haiku 4.5 | $0.00001 | $0.00176 |
Grade A, and why
mcp-bazi-project-guide 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.
八字计算MCP服务器项目指南
🎯 项目概述
这是一个基于TypeScript的专业八字计算MCP服务器,使用lunar-javascript库提供八字计算服务。项目已完成现代化API升级,采用最新MCP SDK,可通过npm包@mymcp-fun/[email protected]一行命令使用。
📁 项目结构
核心源代码
- src/server.ts - MCP服务器主入口,使用新版McpServer API和registerTool方法
- src/bazi-service.ts - 八字计算核心服务,包装lunar-javascript库
- src/types.ts - TypeScript类型定义,包含输入输出接口
配置文件
- package.json - npm包配置,依赖管理,构建脚本
- tsconfig.json - TypeScript开发配置
- tsconfig.build.json - TypeScript生产构建配置
测试文件
- tests/final-accuracy-test.js - 最终准确性测试,验证100%兼容性
- tests/test-mcp-server.js - MCP服务器功能测试
- tests/basic-functionality.js - 基础功能测试
- tests/test-lunar-javascript.js - lunar-javascript库API测试
文档
🔧 技术栈
核心依赖
- @modelcontextprotocol/sdk: 最新MCP协议SDK,使用McpServer类
- zod: Schema验证库,版本3.25.67+
- lunar-javascript: 权威的中文农历计算库,1600+周下载量
- TypeScript: 类型安全的JavaScript超集,版本5.0+
- Node.js: 运行环境,要求18.0+
现代化API特性
- ✅ McpServer类: 替代旧版Server类,更简洁的API
- ✅ registerTool方法: 自动处理MCP协议细节
- ✅ Zod验证: 内置参数验证和类型安全
- ✅ 简化代码: 从173行减少到89行(48%缩减)
🎯 核心功能
MCP工具: get_bazi_details
计算生辰八字和五行信息的主要工具
输入参数:
interface BaziToolInput {
year: number; // 出生年份 (1900-2100)
month: number; // 出生月份 (1-12)
day: number; // 出生日期 (1-31)
hour: number; // 出生时间 (0-23)
gender?: string; // 性别 (可选,默认male)
timezone?: string; // 时区 (可选,默认Asia/Shanghai)
}
输出结果 (使用中文字段名):
interface BaziResult {
四柱: { // 四柱信息
年柱: string; // 年柱,如"乙酉"
月柱: string; // 月柱,如"己丑"
日柱: string; // 日柱,如"丁巳"
时柱: string; // 时柱,如"壬子"
};
五行: { // 五行分析(整数计数)
木: number; // 木,如1
火: number; // 火,如2
土: number; // 土,如2
金: number; // 金,如1
水: number; // 水,如2
};
生肖: string; // 生肖,如"鸡"
星座: string; // 星座,如"水瓶"
农历: { // 农历日期
农历年: number;
农历月: number;
农历日: number;
是否闰月: boolean;
农历月名: string; // 如"腊月"
};
日主: string; // 日主天干,如"丁"
}
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.
- 11d ago First seen · 195 lines · 5 tokens per session scan A 355d6dcd1fb9
mcp-bazi-project-guide is a cursor rule published in the GitHub repository mymcp-fun/bazi (10 stars, last pushed 1y ago), licensed MIT. It adds 5 tokens to every session and 1,762 once invoked, about $0.0000 per session on Opus 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.
Other cursor rules, from other repositories
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.