RC

rumi-chan/league-client-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

21 stars 4 forks 품질 71 트렌드 0MIT

MCP & Pengu Loader를 통해 League Client에 Claude를 연결하십시오.

개요

league-client-mcp는 MCP 클라이언트가 League of Legends 데스크탑 클라이언트에 대한 액세스를 제공합니다. 함께 일하는 2개 조각입니다: - mcp-server/: the tool over stdio - lol-plugin/: the Pengu Loader plugin that run inside the League client and performs that tool call 두 실행으로, AI 조수는 DOM을 검사 할 수 있습니다, CSS 또는 자바 스크립트를 주사, LCU API를 호출, UI와 상호 작용하고, Pengu Loader에 플러그인을 다시 수출 완료. League 또는 Pengu Loader가 실행되지 않은 경우 서버는 대화할 수 없으며 도구가 실패합니다. 이 repo는 라이브 클라이언트를 가정한다.

개요(AI 번역)

league-client-mcp는 MCP 클라이언트가 League of Legends 데스크톱 클라이언트에 대한 액세스를 제공합니다. 함께 일하는 2개 조각입니다:

  • mcp-server/: Node.js MCP 서버는 stdio에 도구를 노출
  • lol-plugin/: 리그 클라이언트 내부에서 실행하는 Pengu Loader 플러그인과 그 도구 호출을 실행

두 실행으로, AI 조수는 DOM을 검사 할 수 있습니다, CSS 또는 JavaScript를 주사, 호출 LCU API, UI와 상호 작용하고, Pengu Loader로 플러그인을 다시 완료했습니다.

어떻게 작동합니까?

League 또는 Pengu Loader가 실행되지 않은 경우, 서버는 아무 것도 이야기하고 도구가 될 것입니다. 실패. 이 repo는 라이브 클라이언트를 가정한다.

당신이 그것을 할 수있는 것

  • 현재 리그 페이지를 스냅하고 어떤 변경하기 전에 선택자를 검사
  • CSS를 프로토타입 레이아웃 또는 시각 변경에 주입
  • 클라이언트에서 One-off JavaScript를 실행
  • SPA 내비게이션을 살아가는 지속적 플러그인
  • 버튼을 클릭, 입력으로 입력하고, 페이지가 로드를 기다립니다.
  • 클라이언트 내부에서 LCU API를 호출하십시오.
  • Pengu Loader에 주입 된 플러그인을 내보내기하여 시작에 로드합니다.

필수품

  • Node.js 18 이상
  • pnpm Pengu Loader 플러그인
  • Pengu Loader 설치

이 페이지는 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"] } } }