project-conventions

project-conventions is a cursor rule for Cursor from quinnjr/fruityloops-mcp. It costs 1,948 tokens per session, scanned A, original, MIT.

A set of project rules for an MCP server that lets AI assistants interact with FL Studio through Python and MIDI. MCP, or Model Context Protocol, is a standard way for an AI assistant to call tools provided by another program.

In plain words
What is it for?
Use it to find the server and MIDI code, run pytest tests, use uv for Python commands, apply Ruff checks and formatting, update documentation, and understand the GitHub workflow.
Why use it?
It gives contributors a shared map of the codebase, tools, tests, documentation, and development commands. This makes it easier to change the server without overlooking its expected structure.

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/quinnjr/fruityloops-mcp/project-conventions
Clone the repo
git clone --depth 1 https://github.com/quinnjr/fruityloops-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 project-conventions

README.md
[![agentmods](https://agentmods.dev/badge/rules/quinnjr/fruityloops-mcp/project-conventions.svg)](https://agentmods.dev/rules/quinnjr/fruityloops-mcp/project-conventions)
Your own site
<a href="https://agentmods.dev/rules/quinnjr/fruityloops-mcp/project-conventions"><img src="https://agentmods.dev/badge/rules/quinnjr/fruityloops-mcp/project-conventions.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,948 This file is loaded in full into every session.
When invoked 1,948 The same file — it is already loaded in full.
Security scan A 0 findings. 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.01948 $0.01948
Opus 5 $0.00974 $0.00974
Sonnet 5 $0.00390 $0.00390
Haiku 4.5 $0.00195 $0.00195

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

Security

Grade A, and why

project-conventions 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 5d 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.

.cursor/rules/project-conventions.mdc · 364 lines

How it starts

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

FL Studio MCP Server - Project Conventions

Project Overview

FL Studio MCP Server is a Model Context Protocol server that enables AI assistants to interact with FL Studio through its Python API and MIDI interfaces.

Key Technologies

  • Python 3.10+: Primary language
  • uv: Package manager and tool runner
  • mcp: Model Context Protocol library
  • mido: MIDI library
  • pytest: Testing framework
  • ruff: Linting and formatting
  • mkdocs: Documentation generator

Project Structure

fruityloops-mcp/
├── src/fruityloops_mcp/    # Source code
│   ├── server.py           # MCP server implementation
│   ├── midi_interface.py   # MIDI interface
│   ├── __init__.py         # Package init
│   └── __main__.py         # Entry point
├── tests/                  # Test suite
├── docs/                   # Documentation source
├── .github/                # GitHub configuration
│   ├── workflows/          # CI/CD workflows
│   └── ISSUE_TEMPLATE/     # Issue templates
├── .githooks/              # Git hooks
├── .cursor/rules/          # Cursor AI rules
├── pyproject.toml          # Project configuration
├── README.md               # Project README
├── LICENSE                 # MIT License
└── CONTRIBUTING.md         # Contributing guide

Module Organization

src/fruityloops_mcp/server.py

  • FLStudioMCPServer: Main server class
  • StubModule: Stub for when FL Studio API unavailable
  • FL Studio API tool implementations
  • MIDI tool implementations

src/fruityloops_mcp/midi_interface.py

  • MIDIInterface: MIDI communication class
  • Methods for sending MIDI messages
  • Connection management
  • Error handling

Naming Conventions

Python

# Classes: PascalCase
class FLStudioMCPServer:
    pass

class MIDIInterface:
    pass

# Functions/methods: snake_case
def send_midi_note(note: int, velocity: int) -> bool:
    pass

# Constants: UPPER_SNAKE_CASE
FL_STUDIO_AVAILABLE = True
DEFAULT_MIDI_PORT = "FLStudio_MIDI"

# Private members: leading underscore
def _internal_method(self):
    pass

self._private_var = value

Read the full file on GitHub · 364 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. 5d ago First seen · 364 lines · 1,948 tokens per session scan A bdc587b47064

Subscribe to this mod's changes

project-conventions is a cursor rule published in the GitHub repository quinnjr/fruityloops-mcp (5 stars, last pushed 8mo ago), licensed MIT. It adds 1,948 tokens to every session, about $0.0097 per session on Opus 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.