虚幻引擎代码分析MCP服务器

虚幻引擎代码分析MCP服务器

适用于虚幻引擎5的MCP服务器,提供强大的源代码分析功能

安装

  1. 克隆仓库:
git clone https://github.com/ayeletstudioindia/unreal-analyzer-mcp
cd unreal-analyzer-mcp
  1. 安装依赖:
npm install
  1. 构建项目:
npm run build

配置

Claude桌面应用

在Claude配置文件中添加(Windows路径:%APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "unreal-analyzer": {
      "command": "node",
      "args": ["path/to/unreal-analyzer/build/index.js"],
      "env": {}
    }
  }
}

Cline

在Cline MCP设置文件中添加(Windows路径:%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json):

{
  "mcpServers": {
    "unreal-analyzer": {
      "command": "node",
      "args": ["path/to/unreal-analyzer/build/index.js"],
      "env": {}
    }
  }
}

使用此工具可以进行类分析、层次结构映射、代码搜索、引用查找和子系统分析等操作,能大幅提升虚幻引擎代码理解效率。