cursorrules

A set of rules for turning requested speech or audio into a generated audio file and playing it with VLC, a desktop media player.

In plain words
What is it for?
Generating spoken audio with ElevenLabs, saving the file, locating VLC on Windows, and playing the result in the background.
Why use it?
It gives the agent a fixed process for generating and playing audio, including what to do when VLC cannot be found.

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/vakandi/elevenlabsmcp-windows/cursorrules
Clone the repo
git clone --depth 1 https://github.com/vakandi/ElevenLabsMcp-Windows

Made for: Cursor.

Per session 629 This file is loaded in full into every session.
When invoked 629 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin fork From a forked repository.
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.00629 $0.00629
Opus 5 $0.00315 $0.00315
Sonnet 5 $0.00126 $0.00126
Haiku 4.5 $0.00063 $0.00063

Measured 2d ago against content hash e0ff70cbc805, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 · 53 lines

How it starts

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

Audio Playback Rules

When User Asks to Speak or Play Audio

When the user requests to "speak", "say something", "talk", or asks to play/generate audio:

  1. Always use ElevenLabs MCP to generate audio:

    • Use mcp_elevenlabs_text_to_speech tool with the requested text
    • Save the audio file to a suitable location (project directory or user's preferred location)
    • Note the generated file path
  2. Always use VLC to play audio files:

    • Use this detection pattern (try in order):
      1. Check if vlc is in PATH: Get-Command vlc -ErrorAction SilentlyContinue
      2. Check common installation paths:
        • C:\Program Files\VideoLAN\VLC\vlc.exe
        • C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
    • If VLC is found, use it with background playback flags
    • If VLC is not found, inform the user and ask for the VLC installation path
  3. Background Playback Pattern (use this exact pattern):

    # Find VLC executable
    $vlcPath = $null
    $vlcCmd = Get-Command vlc -ErrorAction SilentlyContinue
    if ($vlcCmd) {
        $vlcPath = $vlcCmd.Source
    } elseif (Test-Path "C:\Program Files\VideoLAN\VLC\vlc.exe") {
        $vlcPath = "C:\Program Files\VideoLAN\VLC\vlc.exe"
    } elseif (Test-Path "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe") {
        $vlcPath = "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
    }
    
    if ($vlcPath) {
        # Play audio in background without showing VLC window
        Start-Process -FilePath $vlcPath -ArgumentList "`"$audioFile`"", "--intf", "dummy", "--play-and-exit" -WindowStyle Hidden -ErrorAction SilentlyContinue
    } else {
        Write-Host "VLC not found. Please install VLC or provide the path to vlc.exe"
    }
    
    • This ensures VLC plays in the background without opening a visible window
    • The --intf dummy flag prevents GUI, --play-and-exit closes after playback
  4. Always prefer MCP ElevenLabs over other TTS solutions when available.

Read the full file on GitHub · 53 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. 2d ago First seen · 53 lines · 629 tokens per session scan A e0ff70cbc805

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository vakandi/ElevenLabsMcp-Windows (3 stars, last pushed 9mo ago), licensed MIT. It adds 629 tokens to every session, about $0.0031 per session on Opus 5. A static security scan graded it A with 0 findings. It comes from a forked repository.