core

core is a cursor rule for Cursor from perfsage/perfsage-jmeter-mcp. It costs 12 tokens per session (1,259 once invoked), scanned A, original, MIT.

A project rulebook for perfsage-jmeter-mcp, a Python package that works with Apache JMeter, a tool for load and performance testing. It defines code style, package structure, error formats, paths, versions, and safety rules.

In plain words
What is it for?
Use it when developing, testing, or reviewing code in perfsage-jmeter-mcp.
Why use it?
It keeps changes consistent with the package's fixed interfaces, tool versions, file locations, and testing expectations.

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/perfsage/perfsage-jmeter-mcp/core
Clone the repo
git clone --depth 1 https://github.com/perfsage/perfsage-jmeter-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 core

README.md
[![agentmods](https://agentmods.dev/badge/rules/perfsage/perfsage-jmeter-mcp/core.svg)](https://agentmods.dev/rules/perfsage/perfsage-jmeter-mcp/core)
Your own site
<a href="https://agentmods.dev/rules/perfsage/perfsage-jmeter-mcp/core"><img src="https://agentmods.dev/badge/rules/perfsage/perfsage-jmeter-mcp/core.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,259 The whole file, excluding the scripts and references it only reads on demand.
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.00012 $0.01259
Opus 5 $0.00006 $0.00629
Sonnet 5 $0.00002 $0.00252
Haiku 4.5 $0.00001 $0.00126

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

Security

Grade A, and why

core 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 4d 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/core.mdc · 67 lines

How it starts

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

perfsage-jmeter-mcp: Core Rules

Package

  • Package: perfsage-jmeter-mcp, import perfsage_jmeter_mcp, CLI perfsage-jmeter-mcp
  • Min Python 3.10; local cmds: uv run --python 3.12 --extra dev; hatchling needs README.md

Code Style

  • from __future__ import annotations; type hints; mypy strict; ruff E,F,I,UP,B,SIM,RUF (line 100)
  • filterwarnings = ["error"] — zero warnings in tests; ignore IncompleteFieldDefinitionWarning

Architecture

  • config.py: paths + pinned constants only; errors.py: hierarchy only
  • PerfSagePaths: frozen root + @property sub-paths; never drift
  • Errors: PerfSageError subclasses; "{attempted}: {failure} (k=v, ...)" (omit parens if empty)

Pins / Paths / Guardrails

  • JMeter 5.6.3 (apache-jmeter-5.6.3); JDK feature 21 (accept 17–21); plugins jpgc-casutg/tst/json/dummy + perfsage-slo-reporter (jpgc-cmn transitive)
  • Root ~/.perfsage/{jdk,jmeter,plugins,runs,cache}; managed java/jmeter under current / JMETER_DIR_NAME
  • Defaults: error rate 0.05, P95 5000 ms, gateway streak 20

env Conventions

  • detect read-only: managed → JAVA_HOME/JMETER_HOME → PATH; inject CommandRunner; hand-written to_dict()
  • Plugin stem: strip jpgc-, match stem in jar_name.lower(); ready = java+jmeter supported and no missing plugins
  • provision order: detect→java→jmeter→redetect→plugins→manifest-repair→redetect→docker; never raise for unprovisionable host
  • Temurin macOS → <root>/Contents/Home; repair_ext_jar_manifests for slo-reporter; downloader httpx 120s + ASF checksum

recorder Conventions

  • Frozen models; HAR Z+00:00; fill query from URL when queryString empty
  • OpenAPI: require openapi|swagger + paths before base_url; preserve server base-path (no urljoin)
  • Postman: resolve collection vars; MCP base_url overrides base_url; unresolved {{var}}${var}
  • Flow.from_dict wraps KeyError → RecordingError; explicit kind + 0 requests → RecordingError

correlator / generator / editor

  • First-match kinds uuid→jwt→hex→base64→opaque→numeric_id→static; CONFIDENCE_FLOOR=0.6
  • WorkloadProfile fixed/ramp/stress/burst; parse_workload() owns aliases + unknown-key reject
  • Burst → Ultimate Thread Group (jpgc-casutg); stress → SteppingThreadGroup
  • Empty flow → ScriptGenerationError; default assert 2xx (recorded 2xx kept; never assert recorded 5xx)
  • editor/: surgical ElementTree edit; single TG only; new file default (overwrite=true to replace)
  • Ops: set_workload, change_method, set_path/header/body, rename_sampler, wrap_loop/while, add_jsr223
  • Targets: TransactionController preferred; nested HTTPSamplerProxy not separate selectors

Read the full file on GitHub · 67 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. 4d ago First seen · 67 lines · 12 tokens per session scan A 4c0b697dbf88

Subscribe to this mod's changes

core is a cursor rule published in the GitHub repository perfsage/perfsage-jmeter-mcp (1 stars, last pushed 26d ago), licensed MIT. It adds 12 tokens to every session and 1,259 once invoked, about $0.0001 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.