cursorrules

Project rules for an MCP-based message reminder service. MCP is a standard way for AI agents to call tools; this service sends messages through Telegram or Feishu and can schedule them with Cron expressions, time-based scheduling rules.

In plain words
What is it for?
Use it when building or maintaining the reminder server, its Telegram and Feishu integrations, HTTP or local modes, configuration, logging, and error handling.
Why use it?
It gives the project shared coding and configuration guidance for asynchronous Python services that send and schedule messages.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/xiaohui/mcp_reminder/cursorrules
Clone the repo
git clone --depth 1 https://github.com/xiaohui/mcp_reminder

Made for: Cursor.

Per session 482 This file is loaded in full into every session.
When invoked 482 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00482 $0.00482
Opus 5 $0.00241 $0.00241
Sonnet 5 $0.00096 $0.00096
Haiku 4.5 $0.00048 $0.00048

Measured yesterday against content hash 9a0789f49550, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cursorrules 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 yesterday.

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.

.cursorrules · 50 lines

What it actually says

Cursor MCP 配置规则

项目概述

这是一个基于 Model Context Protocol (MCP) 的消息提醒服务,支持 Telegram 和飞书等多种消息平台。

项目结构

mcp_reminder/
├── server/                 # MCP 服务器
│   ├── mcp_server.py     # MCP 核心服务器
│   ├── http_server.py    # HTTP 模式服务器
│   └── local_server.py   # 本地模式服务器
├── tools/                 # MCP 工具
│   ├── message_tools.py  # 消息发送工具
│   └── scheduler_tools.py # 定时任务工具
├── providers/             # 消息提供商
│   ├── message_sender.py # 消息发送管理器
│   ├── telegram.py       # Telegram 提供商
│   └── feishu.py         # 飞书提供商
├── config/               # 配置管理
│   └── settings.py       # 配置类
├── utils/                # 工具模块
│   └── logger.py         # 日志工具
└── __init__.py          # 包初始化

开发规范

  • 使用 Python 3.11+
  • 遵循 PEP 8 代码规范
  • 使用类型注解
  • 异步编程优先
  • 完善的错误处理和日志记录

主要功能

  1. 消息发送:支持 Telegram、飞书等平台
  2. 定时任务:基于 Cron 表达式的定时消息发送
  3. MCP 协议:标准化的工具调用接口
  4. 双模式:HTTP 和本地模式支持

环境变量

  • TELEGRAM_BOT_TOKEN: Telegram Bot Token
  • TELEGRAM_CHAT_ID: Telegram Chat ID
  • FEISHU_WEBHOOK_URL: 飞书 Webhook URL
  • FEISHU_SECRET: 飞书签名密钥(可选)
  • SERVER_MODE: 服务器模式(http/local)
  • SERVER_HOST: HTTP 服务器主机
  • SERVER_PORT: HTTP 服务器端口
  • LOG_LEVEL: 日志级别
  • LOG_FILE_PATH: 日志文件路径
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. yesterday First seen · 50 lines · 482 tokens per session scan A 9a0789f49550

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository xiaohui/mcp_reminder (0 stars, last pushed 10mo ago), licensed MIT. It adds 482 tokens to every session, about $0.0024 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-09-01.