agentleFS
leancoderkavyleancoderkavy/premiere-pro-mcp/.cursor/rules/mcp-tools.mdc

premiere-pro-mcp / rules

Cursor rule320 starsChanged 4 months agoMITView on GitHub

MCP tool schema, registration, authority, and mutation verification

The file

We split this mcp-tools.mdc into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep schemas, descriptions, registrations, structured results, authority, tests, and docs/supported-actions.md synchronized.

    line 16
  2. Very specific:

    Default authority is inspect,edit,export,filesystem.

    line 17
  3. Distinctive:

    Do not silently retry a failed UXP mutation through CEP or QE.

    line 19
  4. Distinctive:

    Add tests for behavior, failure paths, escaping, validation, and authority.

    line 20

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
mcp-tools.mdc
---
description: MCP tool schema, registration, authority, and mutation verification
globs:
  - src/tools/**/*.ts
  - src/server.ts
  - src/security/**/*.ts
  - src/workflows/**/*.ts
  - tests/tools/**/*.ts
alwaysApply: false
---

# MCP tools

Each module exports `getXTools(...)` returning a `Record<string, ToolDef>` with description, JSON Schema `parameters` (every property described), and handler. Register new modules in `src/server.ts` and in `tests/tools/tool-modules.test.ts` when that catalog lists modules.

- Keep schemas, descriptions, registrations, structured results, authority, tests, and `docs/supported-actions.md` synchronized.
- Default authority is `inspect,edit,export,filesystem`. Do not enable `unsafe-script` to paper over a missing operation.
- Mutating tools must read Premiere state back. Report `committed`, `verified`, `committed_unverified`, or failure. A host return value is not proof of success.
- Do not silently retry a failed UXP mutation through CEP or QE.
- Add tests for behavior, failure paths, escaping, validation, and authority. Vitest mocks the bridge; it does not prove a live host.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.