PR

praydog/re-engine-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

47 stars 8 forks 质量 65 趋势 0MIT

MCP服务器通过REFramework让AI代理实时访问任何运行中的生化危机引擎游戏

概览

一个MCP(模型上下文协议)服务器,允许AI代理实时、程序化访问任何运行中的生化危机引擎游戏——《生化危机》、《怪物猎人》、《鬼泣》、《龙之信条》等。 - 100,000+ 种类型,每个单例、每个字段、每种方法——可从运行游戏中搜索和导航。调用任意方法,跨对象图串联多步查询,单次批处理操作。- 玩家生命值、敌人AI、物品栏、位置、装备——代理实时看到游戏所见。- 编写C#插件,热加载到运行游戏中,读取编译错误,修复,重新部署——完整的开发循环,中间无人工操作。- 同样的工具适用于《生化危机2》、《怪物猎人荒野》、《生化危机9》、《鬼泣5》、《DD2》及其他生化危机引擎游戏。每个游戏的终端点(X先生追踪器、怪物生命值、自适应难度)自动亮起。 网页仪表盘——玩家统计、敌人列表、物品栏,先生。

概述(AI 翻译)

一个MCP(模型上下文协议)服务器,允许AI代理实时、程序化访问任何运行中的生化危机引擎游戏——《生化危机》、《怪物猎人》、《鬼泣》、《龙之信条》等。

  • 检查所有内容。 100,000+ 类型,每个单例,每一个字段,每一种方法——可从运行中的游戏中搜索和导航。调用任意方法,在对象图上进行多步查询,一次请求中完成批处理操作。
  • 实时读取和写入状态。 玩家生命值、敌方AI、物品栏、位置、装备——代理实时看到游戏所见。
  • 对话中构建模组。 编写C#插件,热加载到运行游戏中,读取编译错误,修复,重新部署——完整的开发循环,中间没有人工。
  • **跨游戏兼容。**同样的工具适用于RE2、怪物猎人荒野、RE9、DMC5、DD2以及任何其他RE引擎游戏。每个游戏的终端(Mr. X追踪器、怪物HP、自适应难度)会自动亮起。

网页仪表盘——玩家统计、敌人列表、物品栏、Mr. X实时追踪器——完全由AI代理使用这些MCP工具构建,在单次对话中,且事先不了解每款游戏的内部结构。

布置

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

RE Engine MCP Server

An MCP (Model Context Protocol) server that gives AI agents live, programmatic access to any running RE Engine game – Resident Evil, Monster Hunter, Devil May Cry, Dragon’s Dogma, and more.

  • Inspect everything. 100,000+ types, every singleton, every field, every method – searchable and navigable from a running game. Call any method, chain multi-step queries across the object graph, batch operations in a single request.
  • Read and write live state. Player health, enemy AI, inventory, position, equipment – the agent sees what the game sees, in real time.
  • Build mods in-conversation. Write C# plugins, hot-reload them into the running game, read compile errors, fix, redeploy – full development loop, no human in the middle.
  • Works across games. Same tools work on RE2, Monster Hunter Wilds, RE9, DMC5, DD2, and any other RE Engine title. Per-game endpoints (Mr. X tracker, monster HP, adaptive difficulty) light up automatically.

The web dashboard – player stats, enemy lists, inventory, Mr. X real-time tracker – was built entirely by AI agents using these MCP tools, in single conversations, without prior knowledge of each game’s internals.

Setup

Prerequisites

  • REFramework nightly build installed for your game. You must use a nightly build – stable releases do not include .NET support.
  • csharp-api.zip from the same nightly releases page. Extract it into your game’s reframework/ folder to get the .NET runtime and reference assemblies the plugin needs.
  • .NET 10 runtime and SDK – required by the C# API and the MCP server. Install the SDK if you want to build the MCP server from source, or just the runtime if using a pre-built release.

1. Install the game plugin

Copy the reframework/ folder into your game directory. It mirrors the exact folder structure REFramework expects:

/reframework/plugins/source/TestWebAPI.cs
/reframework/plugins/source/WebAPI/

REFramework will hot-compile the plugin on next game launch. You should see [WebAPI] Listening on http://localhost:8899/ in the REFramework log.

2. Connect an MCP client

The repo root contains .mcp.json — agents that support workspace-level MCP config (Claude Code, Cursor, etc.) will detect it automatically when you open the project.

To register manually with any MCP client, add this to your MCP config:

{
  "mcpServers": {
    "reframework": {
      "command": "dotnet",
      "args": ["run", "--project", "/path/to/mcp-server"],
      "env": {
        "REFRAMEWORK_API_URL": "http://localhost:8899"
      }
    }
  }
}

Or use the helper scripts in mcp-server/ (install.cmd / install.sh) to register via the claude CLI.

3. Launch the game

在 GitHub 查看完整 README

安装

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

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "reframework": { "command": "dotnet", "args": ["run", "--project", "/path/to/mcp-server"], "env": { "REFRAMEWORK_API_URL": "http://localhost:8899" } } } }