port-forge-mcp
Provides Android porting workflows: generates APK/NDK/SDL2/Vulkan, Capacitor, and Buildozer scaffolds; probes connected devices via ADB; and diagnoses logcat, 16KB ELF, and mprotect issues.
Supports Android ARM64 targets, including XenonRecomp ARM64 scaffolding and PowerPC VMX128-to-ARM NEON vector mapping.
Inspects C++/Win32/DirectX source repositories and PE imports to fingerprint dependencies and guide Android NDK porting.
Generates ready-to-customize Capacitor Android project scaffolds for porting web/Electron-style apps.
Diagnoses CMake/NDK build and linker logs to identify missing link targets and build configuration problems.
Fingerprints Electron source repositories to identify app stack and dependencies for Android porting.
Fingerprints Python source repositories and generates Buildozer/Kivy Android scaffolds.
Inspects Unity projects, generates Unity Android export scaffolds, and diagnoses Unity GfxDeviceWorker deadlocks.
Generates Vulkan-enabled Android NDK scaffolds and diagnoses Vulkan validation and VK_ERROR_DEVICE_LOST issues.
Generates Winlator/Wine container presets and diagnoses WINEDEBUG compatibility logs.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Port-Forge
Unified Cross-Platform Porting Studio & MCP Server for migrating PC software, Windows games, and Xbox 360 static recompilation targets to Android (APK, NDK + SDL2 + Vulkan, Capacitor, Buildozer, XenonRecomp ARM64, and tuned Winlator / Box64 / FEX / DXVK containers).
Built with zero external npm runtime dependencies on Node.js >=18 — ready for CLI workflows, AI coding agents (Codex, Gemini CLI, Claude Code, Claude Desktop, OpenBot via stdio MCP + portable SKILL.md), and a local browser workbench.
Why Port-Forge?
Community feedback across r/EmulationOnAndroid, r/winlator, XenonRecomp, and native NDK porting repos highlights four recurring bottlenecks:
Trial-and-Error Configuration Hell: Changing 10+ runtime variables at once (
TurnipvsVortek/VirGL,DXVK > 2.4.1timeline semaphore freezes on Adreno 6xx/Mali,Box64dynarec flags, Unity-force-gfx-direct,dxvk.asyncshader stutter).Binary & Codebase Blindness: Before writing a single line of NDK or container glue, engineers need to know exact PE32/PE32+ DLL imports (
d3d9/11/12,UnityPlayer,XInput,EasyAntiCheat) or Xbox 360.xexheaders.Static Recompilation Friction: Porting PowerPC (
XenonRecomp/XenosRecomp) to Android ARM64 requires deterministic Big-Endian byte swaps,VMX128 -> ARM NEONvector mappings,SPIR-Voffline shader pipelines, and SELinuxmprotect/ 16KB page safety.Disconnected Crash Loops: Reading
adb logcat,WINEDEBUG,BOX64,VK_ERROR_DEVICE_LOST, and CMake linker errors manually wastes hours.
Port-Forge unifies all four stages into one deterministic toolchain.
Related MCP server: Mobile Game Fixer MCP
Architecture
flowchart LR
T["Target (.exe / .dll / .xex / Source Repo)"] --> I["Forensic Inspector (lib/inspector.cjs)"]
I --> O["SoC & Winlator Oracle (lib/winlator-oracle.cjs)"]
I --> S["Android Scaffolder (lib/scaffolder.cjs)"]
L["Crash / Build Logs + Optional ADB"] --> D["Log Doctor (lib/log-doctor.cjs)"]
O --> W["CLI / MCP Server / Web Workbench"]
S --> W
D --> WCore Capabilities
Forensic Target Inspector (
lib/inspector.cjs): Pure Node.js binary PE32/PE32+ import-table parser, Xbox 360XEX2header inspector, and multi-stack source fingerprinter (C++/Win32/DirectX,Electron,Python,Godot,Unity,XenonRecomp).SoC & Winlator Compatibility Oracle (
lib/winlator-oracle.cjs): Generates hardware-aware presets foradreno-7xx(Turnip),adreno-6xx(DXVK <=2.4.1 pin),mali-immortalis(Vortek/VirGL), andxclipse-rdna, includingdxvk.conf,Box64/FEX-Emuvariables,.wcpmanifest, and Winlator.containerJSON.Multi-Stack Scaffolder (
lib/scaffolder.cjs): Emits ready-to-customize projects forandroid-ndk-sdl2,xenon-recomp-arm64,capacitor-android,buildozer-kivy,godot-android-export,unity-android-export, andwinlator-container.Log Doctor & Optional ADB Bridge (
lib/log-doctor.cjs): DiagnosesVK_ERROR_DEVICE_LOST, Box64SIGILL, UnityGfxDeviceWorkerdeadlocks, NDK missing link targets, Android 16KB ELF /mprotectissues, and probes connectedadbdevices safely whenadbis present onPATH.CLI +
stdioMCP Server + Web Workbench (http://127.0.0.1:4380) + Portable Skill (skill/SKILL.md).
Quick Start
# Clone the repository
git clone https://github.com/deusbr/port-forge.git
cd port-forge
# Verify syntax and run all unit/integration tests
npm run check
npm testCLI Usage
# 1. Inspect a local Windows binary, Xbox .xex, or source directory
node bin/port-forge.cjs inspect ./path/to/MyGame.exe --save
# 2. Generate a SoC-specific Winlator / Box64 / DXVK runtime preset
node bin/port-forge.cjs oracle --target ./path/to/MyGame.exe --soc adreno-6xx --runtime winlator-cmod --goal stability
# 3. Generate an Android NDK + SDL2 + Vulkan or XenonRecomp ARM64 scaffold
node bin/port-forge.cjs scaffold --strategy android-ndk-sdl2 --out ./android-port --name StarPort
# 4. Diagnose crash or build logs
node bin/port-forge.cjs diagnose ./crash.log
# 5. Launch the local Web Workbench (http://127.0.0.1:4380)
node bin/port-forge.cjs web --port 4380
# 6. Install MCP server & skill into Codex, Gemini CLI, Claude Code, and Claude Desktop
node bin/port-forge.cjs installMCP Tools (port-forge-mcp)
Tool | Purpose |
| Parse PE32/PE32+ DLL imports, |
| Emit tailored |
| Write Android NDK/SDL2, XenonRecomp ARM64, Capacitor, Buildozer, Godot/Unity, or Winlator preset scaffolds. |
| Detect root causes across |
| Query connected Android devices/emulators ( |
| List saved porting workspaces in |
| Read inspection, oracle config, and log diagnosis history for a project. |
| Start the local |
Legal Notice
Port-Forge analyzes and scaffolds only legally owned user source code, binaries, and game files supplied locally by the operator. This repository contains zero copyrighted ROMs, BIOS dumps, firmware, proprietary SDK binaries, or decryption keys.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Evidence-oriented REA + Ghidra static-analysis workflows, read-only PE32 and Delphi VMT tools.
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Offline methodology engine for authorized penetration testing, CTF, and security research.
Scan AI agent skills, MCP server packages and MCP configs before you install them. Static analysis.
Related MCP Servers
- AlicenseCqualityBmaintenanceEnables an AI agent to auto-detect a game's engine (Unity, Unreal, Godot, Java, or native) from its files and then inspect, search, and patch the underlying binaries with in-process PE analysis, hex editing, pattern scanning, string extraction, checksums, diffing, and disassembly. Everything runs locally and offline with no cloud dependency or telemetry.10052 npm5MIT
- AlicenseNot gradedqualityCmaintenanceProvides deterministic, offline, sourced resolutions for 44 mobile game development problems spanning performance, memory, rendering, store policies, IAP billing, crash vitals, live-ops emergencies, and store-policy deadlines, along with pre-launch checklists and launch-day runbooks. It also statically audits project directories for Google Play and App Store compliance, including target SDK, 16 KB ELF alignment, privacy manifests, and secret-file exposure, without any network calls or shell execution.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to detect game engines, inspect and catalog package manifests, extract or decrypt assets from Godot, Unreal, Unity, Electron and Windows PE containers, and scan binaries for AES keys and reverse-engineering evidence over stdio.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to inspect and decompile software they have no source for — Android APKs, Electron bundles, .NET assemblies, and Go, Rust or WASM binaries — plus adb device interaction, through a token-guarded Streamable HTTP MCP endpoint, stdio MCP, or a CLI. Ghidra-powered native binary decompilation can be opted in at startup for ELF, PE and Mach-O targets.7Do What The F*ck You Want To Public