Skip to content

连接原理与源码导读 ​

text
.uproject → engine Build.version → capability + provider matrix
  → installed plugin → matching Editor process and loopback listener
  → MCP initialize and tools/list → optional client registration

先读 scripts/connect.py 的 connect 和 select_candidate,再读 scripts/routing.py 的 route 以及 scripts/discover.py 和 scripts/launch_editor.py。scripts/probe.py 负责 MCP 初始化和工具列表。对照 tests/test_connect.py 阅读中途失败与预检覆盖。

多工程共存时,端点能握手只能说明有 MCP 服务。完整连接还核对 .uproject、监听 PID 和引擎版本。需要运行原生测试或验证报告时转到 UEAgentDevKit。