mcp-server-linearapp: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from magarcia/mcp-server-linearapp. It costs 643 tokens per session, scanned A, a copy of cursorrules, MIT.

A set of coding rules for TypeScript, Node.js, and REST APIs, including project structure, API clients, error handling, and tests. TypeScript is JavaScript with extra checks that help catch mistakes before running code.

In plain words
What is it for?
Use it when building or reviewing TypeScript API clients and Node.js services. It guides endpoint organization, async requests, public documentation, configurable options, and unit tests.
Why use it?
It gives consistent standards for new code and API responses. It also clarifies how to handle nullable data, pagination, rate limits, and endpoint tests.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

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

Reuse

Borrowing it

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

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/magarcia/mcp-server-linearapp/cursorrules/github.svg)](https://agentmods.dev/rules/magarcia/mcp-server-linearapp/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/magarcia/mcp-server-linearapp/cursorrules"><img src="https://agentmods.dev/badge/rules/magarcia/mcp-server-linearapp/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/magarcia/mcp-server-linearapp/cursorrules"><img src="https://agentmods.dev/badge/rules/magarcia/mcp-server-linearapp/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 643 This file is loaded in full into every session.
When invoked 643 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 89% copy Near-identical to another mod 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.00643 $0.00643
Opus 5.5 $0.00257 $0.00257
Sonnet 5.5 $0.00129 $0.00129
Haiku 4.5 $0.00064 $0.00064

Measured 2mo ago against content hash 3bc48dbb3e8f, 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 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.

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.

Origin

This is a copy

89% identical to cursorrules — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursorrules · 90 lines

How it starts

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

You are an expert in TypeScript, Node.js, and RESTful API development.

TypeScript Standards

  • Use TypeScript for all new code; avoid any any types
  • Prefer interfaces over types for API response objects
  • Use type predicates and guards to handle nullable values rather than type assertions
  • Export well-defined response types for all API endpoints
  • Use descriptive variable names that reflect the API terminology

Code Structure

  • Keep files focused on a single responsibility
  • Separate API endpoint functions by category (search, trending, random, etc.)
  • Use async/await for all API requests, not Promises with .then()
  • Handle rate limiting and error responses consistently
  • Include JSDoc comments for all public methods and interfaces

API Client Design

  • Ensure all API endpoints support the full range of parameters from API
  • Include proper pagination support for endpoints that return multiple results
  • Use reasonable defaults for optional parameters
  • Make the client configurable with options like rating, language, etc.
  • Implement proper error handling with custom error types

Testing Standards

  • Write unit tests for all API endpoint functions
  • Use mocks for external API calls in tests
  • Include integration tests that validate against real API responses
  • Test error handling scenarios like rate limiting and invalid API keys
  • Ensure all public interfaces have test coverage

Performance Considerations

  • Implement request caching where appropriate
  • Support both ESM and CommonJS module formats
  • Keep dependencies minimal and up-to-date
  • Ensure the package has a small bundle size
  • Support tree-shaking for modular imports

Documentation

  • Keep README examples up-to-date with the current API
  • Include TypeDoc documentation for all public interfaces
  • Document rate limiting considerations
  • Provide usage examples for each API endpoint category
  • Include sample response objects in documentation

Best Practices

  • Favor immutable objects over mutable ones
  • Use private class fields to hide implementation details
  • Implement proper parameter validation before making API requests
  • Use URL builder helper functions to construct API URLs
  • Apply consistent error handling patterns throughout the codebase

Read the full file on GitHub · 90 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 · 90 lines · 643 tokens per session scan A 3bc48dbb3e8f

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository magarcia/mcp-server-linearapp (1 stars, last pushed 1y ago), licensed MIT. It adds 643 tokens to every session, about $0.0026 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to cursorrules, differing in 6 lines, and is treated as a copy.

Related

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulesmagarcia/mcp-server-linearappCursor rule11y agoMITA643Cursor
typescriptArenukvern/mcp_flutterCursor rule39520d agoMITA742Cursor
django-pythonPostHog/posthogCursor rule41kyesterdaynoneA1,586Cursor
python--typescript-guide-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k5mo agoCC0-1.0A226Cursor
nestjs-best-practicesepam/ai-dial-chatCursor rule501yesterdayApache-2.0A14Cursor
standard-nestjs-module-hierarchyPackmindHub/packmindCursor rule3219d agoApache-2.0A314Cursor
globalFreePeak/db-mcp-serverCursor rule47920d agoMITA289Cursor