dailyhotmcp: Instructions file for Claude Code

CLAUDE.md

dailyhotmcp CLAUDE.md is an instructions file for Claude Code from FrankXMX/dailyhotmcp. It costs 924 tokens per session, scanned A, original, MIT.

A project instruction file for Claude Code, describing the DailyHotMCP Node.js API, its commands, configuration, and architecture. Claude Code is an AI coding assistant that reads such files for project guidance.

In plain words
What is it for?
Use it when developing or maintaining DailyHotMCP, including its APIs, MCP server, RSS feeds, caching, and platform-specific routes.
Why use it?
It gives the assistant project-specific context so it can use the right commands, settings, and file locations.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is FrankXMX/dailyhotmcp's own configuration. It tells Claude Code how to work on dailyhotmcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dailyhotmcp configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/FrankXMX/dailyhotmcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/FrankXMX/dailyhotmcp

Made for: Claude Code.

Wrote 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.

agentmods badge for dailyhotmcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/frankxmx/dailyhotmcp/claude-md/github.svg)](https://agentmods.dev/instructions/frankxmx/dailyhotmcp/claude-md)
Your own site
<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.

agentmods 80×15 button for dailyhotmcp CLAUDE.md

Your own site · 80×15
<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>
Per session 924 This file is loaded in full into every session.
When invoked 924 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash 1c902288d167, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

CLAUDE.md · 85 lines

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:显示名称
  • dataListItem 数组,包含 id、title、cover、author、hot、url、mobileUrl

新增平台

  1. src/routes/{平台名}.ts 创建路由文件,遵循上述路由模式
  2. src/mcp/index.ts 的 platforms 数组中添加平台配置

MCP 工具

MCP 服务器在 src/mcp/index.ts 中动态注册各平台工具,支持参数:

  • limit?: number - 限制返回数量
  • noCache?: boolean - 跳过缓存

每个平台工具调用对应路由的 handleRoute 函数,返回 JSON 格式数据。

MCP 部署

支持两种模式:

  1. Stdio 模式:作为 MCP 服务器运行(用于 Claude Desktop、Cursor 等 AI 助手)
  2. 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 请求选项

Read the full file on GitHub · 85 lines

Changes

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.

  1. 9d ago First seen · 85 lines · 924 tokens per session scan A 1c902288d167

Subscribe to this mod's changes

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.

Related

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.

vercel/next.js · 7,296 tokens

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.

openai/codex · 5,153 tokens

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).

microsoft/vscode · 6,785 tokens

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).

microsoft/vscode · 5,001 tokens

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.

langchain-ai/langchain · 4,469 tokens

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.

deepseek-ai/deepseek-harness · 3,735 tokens