multiplatform-cursor-mcp: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from johnneerdael/multiplatform-cursor-mcp. It costs 1,045 tokens per session, scanned B, original, MIT.

Cursor rules documenting a plan for making a Windows-focused application work across Windows, macOS, and Linux.

In plain words
What is it for?
Use them when updating path handling, window management, process launching, or keyboard and mouse automation for multiple operating systems.
Why use it?
They record platform-specific problems and the planned fixes, so future work can follow the migration consistently.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

This is johnneerdael/multiplatform-cursor-mcp's own configuration. It tells Cursor how to work on multiplatform-cursor-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 multiplatform-cursor-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to johnneerdael/multiplatform-cursor-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/johnneerdael/multiplatform-cursor-mcp/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/johnneerdael/multiplatform-cursor-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/johnneerdael/multiplatform-cursor-mcp/cursorrules/github.svg)](https://agentmods.dev/rules/johnneerdael/multiplatform-cursor-mcp/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/johnneerdael/multiplatform-cursor-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/johnneerdael/multiplatform-cursor-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/johnneerdael/multiplatform-cursor-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/johnneerdael/multiplatform-cursor-mcp/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,045 This file is loaded in full into every session.
When invoked 1,045 The same file — it is already loaded in full.
Security scan B 1 finding. 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.01045 $0.01045
Opus 5.5 $0.00418 $0.00418
Sonnet 5.5 $0.00209 $0.00209
Haiku 4.5 $0.00104 $0.00104

Measured 2mo ago against content hash c59a78beff48, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

cursorrules scanned grade B with 1 finding 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 2mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Bash script with sudo - Creates launch agent for auto-start
.cursorrules · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cross-Platform Migration Task

Issues Found

  1. Windows-specific Path Handling

    • Using process.env.LOCALAPPDATA for Cursor.exe path
    • Windows-style path separators in path.join operations
    • Hard-coded Windows paths in documentation
  2. Windows-specific Dependencies

    • node-windows dependency for window management
    • Heavy reliance on node-window-manager for Windows-specific window operations
    • robotjs for Windows-specific keyboard/mouse automation
  3. Windows-specific APIs

    • Windows-specific window handling in WindowsApiService
    • Windows-specific process management
    • Windows-specific keyboard event handling

Migration Plan

[X] 1. Path Handling - Replace Windows-specific path handling with path.join and process.platform checks - Update documentation with cross-platform examples - Create platform-specific path resolvers

[X] 2. Window Management - Create platform-agnostic window management interface - Implement platform-specific adapters (Windows/MacOS/Linux) - Replace direct Windows API calls with adapter interface

[X] 3. Process Management - Create cross-platform process spawning logic - Handle platform-specific executable paths - Implement platform-specific process detection

[X] 4. Keyboard/Mouse Automation - Create platform-agnostic input automation interface - Replace robotjs with @nut-tree/nut-js - Implement platform-specific input handling

[X] 5. Configuration - Add platform-specific configuration options - Create default configs for each supported platform - Update environment variable handling

Completed Tasks

  1. Created PathResolver utility for cross-platform path handling
  2. Created platform-agnostic window management interface
  3. Implemented Windows and macOS window managers
  4. Implemented Linux window manager using xdotool
  5. Created cross-platform input automation service using @nut-tree/nut-js
  6. Updated CursorInstanceManager to use new abstractions
  7. Updated documentation with cross-platform instructions
  8. Added comprehensive test suite for window managers
  9. Added structured error handling system
  10. Added logging system with context tracking
  11. Added tests for input automation service
  12. Added tests for path resolver
  13. Created platform-specific installation scripts
  14. Added integration tests for window management
  15. Added integration tests for input automation
  16. Added GitHub Actions workflows for testing and releases

Read the full file on GitHub · 143 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. 2mo ago First seen · 143 lines · 1,045 tokens per session scan B c59a78beff48

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository johnneerdael/multiplatform-cursor-mcp (68 stars, last pushed 1y ago), licensed MIT. It adds 1,045 tokens to every session, about $0.0042 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulesjohnneerdael/multiplatform-cursor-mcpCursor rule681y agoMITB1,045Cursor
ponytailDietrichGebert/ponytailCursor rule185k8d agoMITA604Cursor
angular-20angular/angularCursor rule101kyesterdayMITA0Cursor
dev-standardapache/supersetCursor rule75ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor
shared-plane-packagesprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor