Borrowing it
Nothing to install: this file belongs to FrankXMX/dailyhotmcp. 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/FrankXMX/dailyhotmcp/main/CLAUDE.mdgit clone --depth 1 https://github.com/FrankXMX/dailyhotmcpWrote 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/frankxmx/dailyhotmcp/claude-md)<a href="https://agentmods.dev/instructions/frankxmx/dailyhotmcp/claude-md"><img src="https://agentmods.dev/badge/instructions/frankxmx/dailyhotmcp/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/frankxmx/dailyhotmcp/claude-md"><img src="https://agentmods.dev/badge/instructions/frankxmx/dailyhotmcp/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.00924 | $0.00924 |
| Opus 5 | $0.00462 | $0.00462 |
| Sonnet 5 | $0.00185 | $0.00185 |
| Haiku 4.5 | $0.00092 | $0.00092 |
Grade A, and why
dailyhotmcp 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 9d 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 — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
本文档为 Claude Code (claude.ai/code) 在本项目中工作时提供指导。
项目概述
DailyHotMCP 是一个 Node.js API,聚合了 50+ 个国内外平台的热门榜单数据(微博、知乎、B站、GitHub 等)。提供以下功能:
- 各平台的 REST API 接口
- MCP(Model Context Protocol)服务器,支持 AI 集成
- RSS 订阅支持
- Redis/内存缓存
常用命令
pnpm dev # 启动开发服务器(热重载,默认禁用缓存)
pnpm dev:cache # 启动开发服务器(热重载,启用缓存)
pnpm build # 编译 TypeScript 到 dist/
pnpm start # 运行生产构建
pnpm lint # 运行 ESLint 检查
pnpm format # 使用 Prettier 格式化代码
环境配置
在 .env 文件中配置以下环境变量:
| 变量 | 默认值 | 说明 |
|---|---|---|
CACHE_TTL |
3600 | 缓存时间(秒) |
REDIS_HOST |
127.0.0.1 | Redis 主机地址 |
REDIS_PORT |
6379 | Redis 端口 |
REDIS_PASSWORD |
- | Redis 密码 |
ZHIHU_COOKIE |
- | 知乎登录 Cookie(获取完整数据) |
FILTER_WEIBO_ADVERTISEMENT |
false | 过滤微博广告 |
复制 .env.example 为 .env 开始配置。
架构
路由模式
每个平台对应 src/routes/{平台名}.ts 文件,结构如下:
export const handleRoute = async (c: ListContext, noCache: boolean) => {
const listData = await getList(options, noCache);
return { name, title, type, total, ...listData };
};
路由必须导出 handleRoute 函数,返回包含以下字段的 RouterData:
name:平台标识符title/description:显示名称data:ListItem数组,包含 id、title、cover、author、hot、url、mobileUrl
新增平台
- 在
src/routes/{平台名}.ts创建路由文件,遵循上述路由模式 - 在
src/mcp/index.ts的 platforms 数组中添加平台配置
MCP 工具
MCP 服务器在 src/mcp/index.ts 中动态注册各平台工具,支持参数:
limit?: number- 限制返回数量noCache?: boolean- 跳过缓存
每个平台工具调用对应路由的 handleRoute 函数,返回 JSON 格式数据。
MCP 部署
支持两种模式:
- Stdio 模式:作为 MCP 服务器运行(用于 Claude Desktop、Cursor 等 AI 助手)
- HTTP API 模式:通过
bin/cli.mjs或直接导入作为 HTTP API 服务
工具函数
src/utils/getData.ts- 带缓存的 HTTP 客户端(get/post 函数)src/utils/cache.ts- Redis/内存缓存封装src/utils/getToken/- 平台特定 Token 处理(如 B 站 WBI 签名、微信读书 cookie)src/utils/getTime.ts- 时间戳转换src/utils/getNum.ts- 数字格式化src/utils/getRSS.ts/parseRSS.ts- RSS 订阅支持
类型定义
所有核心类型定义在 types.d.ts:
ListContext- 路由上下文接口ListItem- 榜单项结构(id, title, cover, author, hot, url, mobileUrl)RouterData- 路由返回数据结构Get/Post- HTTP 请求选项
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.
- 9d ago First seen · 85 lines · 924 tokens per session scan A 1c902288d167
dailyhotmcp CLAUDE.md is an instructions file published in the GitHub repository FrankXMX/dailyhotmcp (1 stars, last pushed 5mo ago), licensed MIT. It adds 924 tokens to every session, about $0.0046 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 instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.