PG

pirua-game/ai_game_base_analysis_cli_mcp_tool

开发工具

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

71 stars 14 forks 质量 74 趋势 0Apache-2.0

pirua-game/ai_game_base_analysis_cli_mcp_tool 是一个从 https://github.com/pirua-game/ai_game_base_analysis_cli_mcp_tool. 导入的 MCP 服务器候选服务器。

概览

pirua-game/ai_game_base_analysis_cli_mcp_tool 是一个从 https://github.com/pirua-game/ai_game_base_analysis_cli_mcp_tool. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

0.5秒内理解一个Unity/UE5/Axmol项目。让Claude和Cursor读取实际代码。

“如果我修改这个类,什么会坏?” —— 3秒内回答,基于源代码。 源代码基础:来自C++源代码和二进制资产的结构事实。 置信度层级(高/中/低)对每个结果都进行了报告。

请用其他语言阅读: 한국어 ·日本語 ·简体中文 ·繁體中文


✨ 为什么是GDEP?

大型游戏代码库非常残酷:

  • UE5,拥有300+蓝图→“这项能力到底叫哪里?” — 半天过去了
  • Unity与50个管理器+预制件引用→重构触发循环dep爆炸
  • “如果我换了这个职业,会有什么坏处?” →手动打开文件30分钟

GDEP在0.5秒内回答所有问题。

有节制的表演

度规 结果 注释
UE5 热扫描 0.46 s 2,800+ 资产项目
Unity 热扫描 0.49 s SSD,900+ 类
峰值内存 28.5 MB 10× 余量对目标
MCP准确率 **5 / 5(100%)**基于代码的事实

详细信息→docs/BENCHMARK.md ·docs/mcp-benchmark.md


🤖 MCP集成——让AI读取真实代码

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

README

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

🎮 gdep — Game Codebase Analysis Tool

Understand a Unity/UE5/Axmol project in 0.5 seconds. Make Claude and Cursor read the actual code.

“If I modify this class, what breaks?” — answered in 3 seconds, grounded in source. Source-grounded: structural facts from C++ source and binary assets. Confidence tier (HIGH/MEDIUM/LOW) reported on every result.

Read this in other languages: 한국어 · 日本語 · 简体中文 · 繁體中文


✨ Why gdep?

Large game codebases are brutal:

  • UE5 with 300+ Blueprints → “Where is this Ability actually called?” — half a day gone
  • Unity with 50 Managers + Prefab refs → refactor triggers circular dep explosion
  • “What breaks if I change this class?” → open files manually for 30 minutes

gdep answers all of this in under 0.5 seconds.

Measured Performance

Metric Result Notes
UE5 warm scan 0.46 s 2,800+ asset project
Unity warm scan 0.49 s SSD, 900+ classes
Peak memory 28.5 MB 10× headroom vs target
MCP accuracy 5 / 5 (100%) Code-based facts

Full details → docs/BENCHMARK.md · docs/mcp-benchmark.md


🤖 MCP Integration — Make AI Read Real Code

gdep ships an MCP server for Claude Desktop, Cursor, and any MCP-compatible agent.

Install in 1 line

npm install -g gdep-mcp

Configure your agent (copy-paste)

{
  "mcpServers": {
    "gdep": {
      "command": "gdep-mcp",
      "env": { "PYTHONUTF8": "1" }
    }
  }
}

That’s it. Your AI now has 30 game-engine-aware tools available on every conversation.

What changes with MCP

Without gdep:  "CombatCore probably has some Manager dependencies..." ← hallucination
With gdep:     Direct deps: 2 · Indirect: 200+ UI classes · Asset: prefabs/UI/combat.prefab

30 MCP Tools at a glance

Tool When to use
get_project_context Always call first — full project overview
wiki_search Call before any analysis — search previously analyzed classes/assets by keyword (FTS5 BM25). Instant if cached
wiki_list List all wiki nodes with staleness status — see what has already been analyzed
wiki_get Read full content of a specific wiki node
wiki_save_conversation Save agent conversation summary to wiki — persists session context, decisions, and findings across sessions. Creates discussed_in edges to referenced classes
在 GitHub 查看完整 README

安装

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

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

配置

{ "mcpServers": { "gdep": { "command": "gdep-mcp", "env": { "PYTHONUTF8": "1" } } } }