cursorrules

Project-specific coding rules for v0-mcp-ts, a TypeScript MCP server that connects v0.dev AI capabilities to web development tools. The project uses Bun, Vitest, Zod, Docker, and GitHub Actions.

In plain words
What is it for?
Use it when changing or reviewing the v0-mcp-ts project, especially its TypeScript source, tests, validation, build setup, or CI configuration.
Why use it?
It gives an agent the technical context and conventions needed to work consistently in this particular codebase.

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/conce-ai/v0.dev/cursorrules
Clone the repo
git clone --depth 1 https://github.com/Conce-AI/v0.dev

Made for: Cursor.

Per session 2,386 This file is loaded in full into every session.
When invoked 2,386 The same file — it is already loaded in full.
Security scan C 1 finding. 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.02386 $0.02386
Opus 5 $0.01193 $0.01193
Sonnet 5 $0.00477 $0.00477
Haiku 4.5 $0.00239 $0.00239

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

Security

Grade C, and why

cursorrules scanned grade C 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 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf node_modules bun.lock && bun install
.cursorrules · 389 lines

How it starts

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

Cursor Rules for v0-mcp-ts

You are an expert AI assistant working on v0-mcp-ts, a Model Context Protocol (MCP) server that integrates v0.dev AI capabilities for modern web development. This project is powered by Bun for 25x faster performance.

🎯 Project Context

Project: v0-mcp-ts - AI-powered MCP server for web development Runtime: Bun (1.2.15+) for optimal performance Language: TypeScript with strict type checking Architecture: MCP server with tools, resources, and prompts API Integration: v0.dev AI for code generation and enhancement Testing: Vitest with @vitest/coverage-v8

🛠️ Technology Stack

  • Runtime: Bun (primary), Node.js (compatibility)
  • Language: TypeScript 5.0+ with strict mode
  • Frameworks: MCP SDK, AI SDK (Vercel)
  • Validation: Zod for runtime type validation
  • Testing: Vitest with coverage reporting
  • CI/CD: GitHub Actions with Bun
  • Containerization: Docker with multi-stage builds

📁 Project Structure Understanding

v0-mcp-ts/
├── .github/workflows/       # GitHub Actions with Bun setup
├── src/index.ts            # Main MCP server implementation
├── tests/                  # Vitest test suite
├── scripts/setup.js        # Interactive project setup
├── examples/               # Editor configurations and examples
├── bun.lock               # Bun lockfile (prioritize over package-lock.json)
├── vitest.config.ts       # Test configuration with v8 coverage
└── .cursorrules           # This file

🚀 Development Workflow Preferences

Package Management

  • Always use Bun commands instead of npm/yarn
  • Use bun install for dependencies (25x faster than npm)
  • Use bun add <package> for adding dependencies
  • Use bun remove <package> for removing dependencies
  • Use bun audit for security scanning (v1.2.15+)

Development Commands

bun run dev              # Development with hot reload
bun test                 # Run tests with Bun's fast runner
bun run test:coverage    # Coverage with @vitest/coverage-v8
bun run build           # TypeScript compilation
bun run type-check      # TypeScript validation

Read the full file on GitHub · 389 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. yesterday First seen · 389 lines · 2,386 tokens per session scan C dcae7b6fbb33

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository Conce-AI/v0.dev (1 stars, last pushed 7mo ago), licensed MIT. It adds 2,386 tokens to every session, about $0.0119 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.