RC

rumi-chan/league-client-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

21 stars 4 forks 品質 71 トレンド 0MIT

MCP および Pengu の積込み機によってリーグの顧客への Claude、Antigravity を接続して下さい.

概要

league-client-mcp は、Legends デスクトップクライアントの League に MCP クライアントのライブアクセスを提供します。 それは一緒に働く2部分です: - mcp-server/: Node.js MCP サーバーで、 stdio - lol-plugin/: リーグクライアント内で実行し、これらのツールコールを実行する Pengu Loader プラグイン 両方の実行では、AI アシスタントは DOM を検査し、CSS や JavaScript を注入し、LCU API を呼び出し、UI とやり取りし、Pengu Loader に終わるプラグインをエクスポートできます。 リーグやペングローダーが稼働していない場合、サーバーは話せず、ツールは失敗します。 このリポジトリは、ライブクライアントを想定しています.

概要(AI 翻訳)

[[league-client-mcp] は、MCP クライアントがレジェンドのデスクトップクライアントにライブアクセスします。 それは一緒に働く2部分です:

  • [mcp-server/: Node.js MCP サーバが stdio 上でツールを公開
  • [lol-plugin/: リーグクライアント内で実行し、それらのツールコールを実行するペングローダープラグイン

両方の実行では、AI アシスタントは DOM を検査し、CSS や JavaScript を注入し、呼び出します。 LCU API は、UI とやり取りし、Pengu Loader に続くプラグインをエクスポートします。

使い方

リーグやペング・ローダーが稼働していない場合、サーバーは話せず、ツールは 失敗。 このリポジトリは、ライブクライアントを想定しています。

できること

  • 現在のリーグページをスナップショットし、何も変更する前にセレクターを検査
  • CSSをプロトタイプレイアウトやビジュアル変更に注入する
  • クライアントでワンオフJavaScriptを実行
  • SPAナビゲーションを生き残る永続的なプラグインを注入する
  • ボタンをクリックし、入力を入力し、ページの読み込みを待ちます
  • クライアント内部からLCU APIを呼び出して、自分でauthを処理せずに
  • 起動時に読み込まれるペングローダーに注入されたプラグインをエクスポート

前提条件

  • Node.js 18 以降
  • ペングローダープラグインの[pnpm
  • ペングローダー搭載

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

league-client-mcp

league-client-mcp gives an MCP client live access to the League of Legends desktop client. It is two pieces working together:

  • mcp-server/: a Node.js MCP server that exposes tools over stdio
  • lol-plugin/: a Pengu Loader plugin that runs inside the League client and executes those tool calls

With both running, an AI assistant can inspect the DOM, inject CSS or JavaScript, call the LCU API, interact with the UI, and export finished plugins back to Pengu Loader.

How it works

AI client
  -> MCP over stdio
  -> mcp-server/
  -> WebSocket bridge at ws://127.0.0.1:8080
  -> lol-plugin/ inside the League client
  -> DOM, CSS, JavaScript, and LCU fetch()

If League or Pengu Loader is not running, the server has nothing to talk to and the tools will fail. This repo assumes a live client.

What you can do with it

  • Snapshot the current League page and inspect selectors before changing anything
  • Inject CSS to prototype layout or visual changes
  • Run one-off JavaScript in the client
  • Inject persistent plugins that survive SPA navigation
  • Click buttons, type into inputs, and wait for pages to load
  • Call the LCU API from inside the client without handling auth yourself
  • Export an injected plugin to Pengu Loader so it loads on startup

Prerequisites

  • Node.js 18 or newer
  • pnpm for the Pengu Loader plugin
  • Pengu Loader installed
  • League of Legends running when you want to use the MCP tools

Installation

1. Clone the repo

git clone https://github.com/rumi-chan/league-client-mcp.git
cd league-client-mcp

2. Build the MCP server

cd mcp-server
npm install
npm run build

3. Build the Pengu Loader plugin

Set the Pengu Loader path in lol-plugin/package.json:

"config": {
  "penguPath": "C:\\path\\to\\your\\pengu-loader"
}

Then build the plugin:

cd lol-plugin
pnpm install
pnpm build

If you are not using watch mode, copy lol-plugin/dist/index.js into a plugin folder inside Pengu Loader’s plugins directory.

4. Register the MCP server in your client

Any MCP client that can launch a local stdio server should work. The command looks like this:

{
  "mcpServers": {
    "league-client-mcp": {
      "command": "node",
      "args": ["C:/path/to/league-client-mcp/mcp-server/dist/server.js"]
    }
  }
}

This is the same basic shape used by Claude Desktop, Cursor, Windsurf, Codex CLI, and other local MCP clients.

Normal workflow

  1. Start League of Legends with Pengu Loader active.
  2. Start the MCP server with npm start from mcp-server/.
  3. Connect from your AI client.
  4. Map the current page with get_lol_dom_snapshot.
  5. Prototype styling with inject_lol_css.
  6. Add behavior with inject_lol_plugin.
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "league-client-mcp": { "command": "node", "args": ["C:/path/to/league-client-mcp/mcp-server/dist/server.js"] } } }