league-client

league-client is a cursor rule for Cursor from rumi-chan/league-client-mcp. It costs 1,692 tokens per session, scanned A, original, MIT.

A set of instructions and tools for working with the live League of Legends game client. It connects through a Pengu Loader plugin and communicates with the client over a local WebSocket connection.

In plain words
What is it for?
Use it to inspect the client interface, test CSS changes, add JavaScript and CSS behavior, and export or reload client plugins.
Why use it?
It provides a defined workflow for inspecting the client, changing its appearance or behavior, and checking that those changes work. League of Legends must be running with Pengu Loader active.

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/rumi-chan/league-client-mcp/league-client
Clone the repo
git clone --depth 1 https://github.com/rumi-chan/league-client-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 league-client

README.md
[![agentmods](https://agentmods.dev/badge/rules/rumi-chan/league-client-mcp/league-client.svg)](https://agentmods.dev/rules/rumi-chan/league-client-mcp/league-client)
Your own site
<a href="https://agentmods.dev/rules/rumi-chan/league-client-mcp/league-client"><img src="https://agentmods.dev/badge/rules/rumi-chan/league-client-mcp/league-client.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,692 This file is loaded in full into every session.
When invoked 1,692 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.1 $0.01692 $0.01692
Opus 5 $0.00846 $0.00846
Sonnet 5 $0.00338 $0.00338
Haiku 4.5 $0.00169 $0.00169

Measured 5d ago against content hash 2b8dade86be0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

league-client 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/league-client.mdc · 150 lines

How it starts

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

League Client MCP

You are working with a live League of Legends Client via the league-client-mcp MCP server. The server bridges tool calls to a Pengu Loader plugin inside the LoL Client over WebSocket.

Architecture

Cursor Agent  ──MCP stdio──►  MCP Server (Node.js)
                                  │  ws://127.0.0.1:8080
                                  ▼
                       Pengu Loader Plugin  (inside LoL Client)
                                  │  DOM · CSS · JS · LCU fetch()
                                  ▼
                       League of Legends Client  (CEF / Ember.js)

League must be running with Pengu Loader active. 16 MCP tools available.

Standard Workflow

1. get_lol_dom_snapshot   → map current page, find selectors
2. inject_lol_css         → prototype visual changes
3. query_lol_element      → verify selector or computed style
4. inject_lol_plugin      → add persistent JS + CSS behaviour
5. reload_lol_plugin      → iterate after code changes
6. export_plugin_to_pengu → write plugin to disk
7. reload_lol_client      → activate exported plugin permanently

Tool Quick Reference

Tool When to use
get_lol_dom_snapshot Start of every session — map the page
query_lol_element Verify one selector without a full snapshot
inject_lol_css CSS-only prototyping (replaces previous CSS)
execute_lol_javascript One-off JS reads or quick checks
inject_lol_plugin Persistent behaviour (JS + CSS, survives navigation)
remove_lol_plugin / reload_lol_plugin Teardown or hot-reload a plugin
export_plugin_to_pengu Make a plugin permanent on disk
lcu_request Read/write LCU REST API (game data, summoner, lobby)
click_lol_element Click a UI element
type_into_lol_element Type into an input
wait_for_lol_element Wait for element after navigation
get_lol_client_state Current URL and active plugin names
get_lol_performance_metrics Heap, DOM nodes, paint timings
get_lol_screenshot Capture LeagueClientUx to temp PNG
reload_lol_client Full client reload

Read the full file on GitHub · 150 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 · 150 lines · 1,692 tokens per session scan A 2b8dade86be0

Subscribe to this mod's changes

league-client is a cursor rule published in the GitHub repository rumi-chan/league-client-mcp (20 stars, last pushed 5mo ago), licensed MIT. It adds 1,692 tokens to every session, about $0.0085 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-30.