SAMP-MCP: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from KongGithubDev/SAMP-MCP. It costs 708 tokens per session, scanned A, original, MIT.

A set of Cursor project rules for SA-MP server development, including required file encoding, language, and script-handling tools.

In plain words
What is it for?
Use it when reading, writing, transforming, fixing, or generating SA-MP Pawn scripts and includes.
Why use it?
It helps prevent corrupted Thai text and unsafe edits to Pawn source files in this project.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

This is KongGithubDev/SAMP-MCP's own configuration. It tells Cursor how to work on SAMP-MCP 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 SAMP-MCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to KongGithubDev/SAMP-MCP. 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/KongGithubDev/SAMP-MCP/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/KongGithubDev/SAMP-MCP

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 cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/konggithubdev/samp-mcp/cursorrules/github.svg)](https://agentmods.dev/rules/konggithubdev/samp-mcp/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/konggithubdev/samp-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/konggithubdev/samp-mcp/cursorrules/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 cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/konggithubdev/samp-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/konggithubdev/samp-mcp/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 708 This file is loaded in full into every session.
When invoked 708 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.00708 $0.00708
Opus 5.5 $0.00283 $0.00283
Sonnet 5.5 $0.00142 $0.00142
Haiku 4.5 $0.00071 $0.00071

Measured 1mo ago against content hash 1a096b0d302a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

.cursorrules · 26 lines

What it actually says

SAMP Project Rules for Cursor / AI agents

  1. ENCODING (CRITICAL):

    • Thai (Windows-874) source must stay Windows-874, byte-for-byte.
    • Use encoding-aware file tools (e.g., mcp-file-tools) for ALL reads/writes/edits of .pwn/.inc/.cfg/log files — they auto-detect and preserve encoding + CRLF.
    • Never re-save or transcode scripts with plain editors.
  2. LANGUAGE:

    • DO NOT translate Thai strings to English.
    • New code must follow the existing language (Thai if applicable).
  3. SAMP-MCP SCOPE (when samp-mcp is connected):

    • samp-mcp is for SAMP server operations: status/query, RCON, compile ('compile_pawn' / 'compile_and_load_pawn'), audits ('audit_script', 'audit_sql', 'audit_performance', 'find_shadowing'), 'check_includes', 'get_server_diagnostics', 'manage_server', plugin/include installs.
    • samp-mcp does NOT read or write script files.
    • Prefer 'generate_boilerplate' / 'design_feature' for new features.
    • HUD/UI textdraws: use the textdraw editor tools (textdraw_create/update/import, txd_scan for .txd sprites, model_scan/model_preview/model_export for font 5 3D model previews (.dff/.txd, .img archives), textdraw_preview for the web preview + draggable editor, textdraw_export to emit the Pawn code) instead of hand-writing coordinates.
    • Custom .txd textures: edit them with the TXD editor tools (txd_open, txd_import_texture to turn a PNG into a texture with the format/mip levels you want (DXT compresses at quality=high by default), txd_texture for rename/duplicate/remove/convert, txd_export_texture, txd_save to write the file or the .img entry) instead of rebuilding dictionaries with external tools.
  4. ARCHITECTURE (module pattern, when detected):

    • Build every new feature as ONE self-contained module under gamemodes/includes/system/<name>.inc (jobs: system/job/j_<name>.inc) — each module owns its state/hooks/commands/dialogs via YSI y_hooks (hook OnGameModeInit / OnPlayerConnect / OnPlayerDisconnect / OnPlayerKeyStateChange).
    • Register it in gamemodes/main.pwn with #include "includes/system/<name>.inc".
    • Timed actions use StartProgress(...) + hook OnProgressFinish; messages use ErrorMsg/ServerMsg/SyntaxMsg; per-player state lives in PlayerInfo[playerid][pX] or static arrays.
    • No gameplay logic in main.pwn; no filterscripts for new features.
    • Commands are Pawn.CMD (CMD: + flags:name(CMD_xxx)); dialogs are easyDialog (Dialog_Show + Dialog:NAME handlers).
    • PERFORMANCE: iterate players with foreach(new i : Player); YSI timers (timer X[1000]/repeat) stopped on disconnect; threaded mysql_format+mysql_tquery only; Streamer dynamic objects; keep OnPlayerUpdate light.
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. 1mo ago Changed · +2 lines · +171 tokens per session 1a096b0d302a
  2. 2mo ago Changed · +8 lines · +390 tokens per session 8701d4109750
  3. 2mo ago First seen · 16 lines · 147 tokens per session scan A a0814c1388e6

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository KongGithubDev/SAMP-MCP (6 stars, last pushed 1mo ago), licensed MIT. It adds 708 tokens to every session, about $0.0028 per session on Opus 5.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

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulesKongGithubDev/SAMP-MCPCursor rule61mo agoMITA708Cursor
AIRulesbytepine/NexusLinkCursor rule9yesterdayMITA26Cursor
world-model-mcpputervision/state-memory-mcpCursor rule421mo agoMITA673Cursor
ponytailDietrichGebert/ponytailCursor rule185k8d agoMITA604Cursor
angular-20angular/angularCursor rule101kyesterdayMITA0Cursor
dev-standardapache/supersetCursor rule75kyesterdayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor