project-rule

project-rule is a cursor rule for Cursor from rice-awa/mc-mcp-server. It costs 10 tokens per session (813 once invoked), scanned A, original, MIT.

Project documentation for a Minecraft server system that connects an AI agent, an MCP server, and the game through WebSocket communication and scripting APIs.

In plain words
What is it for?
It is for understanding or developing the server, its AI interactions, its MCP tools and resources, player and world features, and its in-game and external request flows.
Why use it?
It gives developers a map of the system's components, request paths, project structure, and technical references.

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/rice-awa/mc-mcp-server/project-rule
Clone the repo
git clone --depth 1 https://github.com/rice-awa/mc-mcp-server

Made for: Cursor.

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 project-rule

README.md
[![agentmods](https://agentmods.dev/badge/rules/rice-awa/mc-mcp-server/project-rule.svg)](https://agentmods.dev/rules/rice-awa/mc-mcp-server/project-rule)
Your own site
<a href="https://agentmods.dev/rules/rice-awa/mc-mcp-server/project-rule"><img src="https://agentmods.dev/badge/rules/rice-awa/mc-mcp-server/project-rule.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 813 The whole file, excluding the scripts and references it only reads on demand.
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.00010 $0.00813
Opus 5 $0.00005 $0.00407
Sonnet 5 $0.00002 $0.00163
Haiku 4.5 $0.00001 $0.00081

Measured 4d ago against content hash 33a26a685250, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

project-rule 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 4d 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.

.cursor/rules/project-rule.mdc · 76 lines

What it actually says

Minecraft MCP服务器文档索引

项目概述

Minecraft MCP服务器是一个集成系统,由两个核心组件组成:AIAgent(MCP-server)负责管理AI工具和处理LLM交互,以及基于WebSocket和脚本API的MC服务器负责处理游戏交互。系统支持两种请求路径:外部MCP客户端调用和游戏内聊天监听。

文档目录

1. 项目需求文档

2. 技术规范文档

3. 外部参考文档

系统组件

  1. AIAgent (mc-server) - 基于WebSocket和脚本API的服务器,处理游戏交互
  2. MCP服务器 - 负责管理AI工具和处理LLM交互,通过MCP前端服务器实现外部MCP客户端的访问

请求路径

  1. 外部MCP客户端路径 - 外部MCP客户端通过AIAgent与Minecraft交互

  2. 游戏内聊天路径 - 玩家通过游戏内聊天触发AIAgent

项目结构规范

mc-mcp-server/
├── server/
│   ├── __init__.py
│   ├── mc_server.py       # WebSocket服务器实现
│   ├── agent_server.py      # Agent服务器实现
│   └── utils/
│       ├── __init__.py
│       ├── auth.py        # 认证相关工具
│       ├── llm.py         # 大语言模型调用工具
│       └── logging.py     # 日志工具
│
├── resources/             # MCP资源定义
│   ├── __init__.py
│   ├── player.py
│   └── world.py
├── tools/                 # MCP工具定义
│   ├── __init__.py
│   ├── commands.py
│   └── messages.py
├── config/                # 配置文件
│   ├── default.json
│   └── production.json
├── tests/                 # 测试目录
│   ├── __init__.py
│   ├── test_mc_server.py
│   └── test_mcp_server.py
├── docs/                  # 文档目录
├── main.py                # 主入口文件
├── mcp_frontend_server.py # MCP服务器前端
├── requirements.txt       # 依赖声明
└── README.md              # 项目说明

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. 4d ago First seen · 76 lines · 10 tokens per session scan A 33a26a685250

Subscribe to this mod's changes

project-rule is a cursor rule published in the GitHub repository rice-awa/mc-mcp-server (4 stars, last pushed 1y ago), licensed MIT. It adds 10 tokens to every session and 813 once invoked, about $0.0001 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.