MCPcopy Create free account
hub / github.com/TheElixZammuto/moonlight-xbox

github.com/TheElixZammuto/moonlight-xbox @1.18.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.18.1 ↗ · + Follow
514 symbols 1,028 edges 172 files 87 documented · 17% updated 28d ago1.18.1 · 2026-06-16★ 57237 open issues

Browse by type

Functions 450 Types & classes 64
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

# moonlight-xbox

Download

A port of Moonlight Stream for playing games using GeForce Experience or Sunshine for the Xbox One and Xbox Series X|S family of consoles

This application is still in early stages of development. Expect things to not work or working badly

Installation and Usage

For Retail Mode (you probably want to use this)

  1. Open Microsoft Edge and click the "Get it from Microsoft" Button above
  2. Downlad Moonlight UWP from the Microsoft Store
  3. Open Moonlight on Xbox and, if not already, your host app
  4. Press the "+" button, Insert your PC IP Address and press "Connect"
  5. Pair if neeeded
  6. Choose from the list below the application you want to run
  7. ???
  8. Profit!

For Dev Mode

Looking for the Standard Dev Mode Builds? Can be found here: Link

Looking for the Bleeding Edge Builds? Can be found here: Link

  1. Enable the Dev Mode on your Xbox https://docs.microsoft.com/en-us/windows/uwp/xbox-apps/devkit-activation
  2. Using the Device Portal, install the Application (moonlight-xbox-dx.msixbundle) and, in the following step, add the required dependencies (Microsoft.UI.Xaml.2.7.appx and Microsoft.VCLibs.x64.14.00.appx)
  3. Open Moonlight on Xbox and, if not already, your host app
  4. Your PC should already be on the list. If not, press the "+" button, Insert your PC IP Address and press "Connect"
  5. Pair if neeeded
  6. Choose from the list below the application you want to run
  7. ???
  8. Profit!

What does work

  • Connection and Pairing
  • Application List fetching
  • Video Streaming (configurable on a host-basis in the settings)
  • Gamepad Input (with Rumble and a mouse mode to move the pointer using the gamepad)
  • Keyboard (both on-screen and using an Hardware one)
  • Graceful Disconnection
  • Host configuration (for resolution and bitrate) and saved host history
  • Audio
  • HDR

What does NOT work

  • Hardware Mouse (UWP limitations sadly)
  • Everything else not listed above

Building

Requirements

  • Windows 10
  • Visual Studio 2022
    • WinUI Application Development Workload
      • Windows 10 SDK (10.0.19041.0) - This is marked as out of support as of VS 2022 version 17.10, but is still necessary for CMake
      • Universal Windows Platform Tools
      • C++ (v141, v142, v143) Universal Windows Platform Tools

Steps to build

You have two options:

  1. Clone this repository (moonlight-xbox) with submodules enabled!
  2. Install VCPKG and all dependencies:
    1. Run git submodule update --init --recursive
    2. Run vcpkg\bootstrap-vcpkg.bat
    3. Install dependencies: .\vcpkg\vcpkg.exe install --triplet x64-uwp
  3. Run x64 Visual Studio Prompt (Tools → Command Line → Developer Command Prompt)
    1. Run generate-thirdparty-projects.bat to generate moonlight-common-c VS project
    2. Go to libgamestream and run build-uwp.bat to generate libgamestream VS project
    3. Open moonlight-xbox-dx.vcxproj in Visual Studio 2022
    4. In the solution explorer, right click and build each of these projects, in the following order:
      • enet
      • moonlight-common-c
      • gamestream
  4. In the solution explorer, expand moonlight-xbox-dx (Universal Windows), then double click Package.appxmanifest
  5. Under the Packaging tab, next to Publisher, click the Choose Certificate button -If you already have a certificate, select it and skip to the final step
  6. In the Choose a Certificate window that appears, click the Create... button
  7. Fill out the create prompt which appears, password is unnecessary if only building for personal use and/or debugging purposes.
  8. After all the actions above, you can now build the entire solution.
  9. After all the actions above, you finally can open and build solution.

Or

  1. Clone this repository
  2. Run ./setup-dev.ps1
  3. Have fun!

Core symbols most depended-on inside this repo

Shape

Method 316
Function 134
Class 61
Enum 3

Languages

C++91%
C9%

Modules by API surface

State/MoonlightClient.cpp36 symbols
Streaming/moonlight_xbox_dxMain.cpp32 symbols
Common/DeviceResources.h25 symbols
Streaming/VideoRenderer.cpp23 symbols
Streaming/FrameQueue.cpp20 symbols
Common/DeviceResources.cpp20 symbols
State/GamepadState.h18 symbols
libgamestream/client.c17 symbols
Streaming/Pacer.cpp15 symbols
Common/StepTimer.h15 symbols
libgamestream/xml.c14 symbols
Streaming/FFmpegDecoder.cpp14 symbols

For agents

$ claude mcp add moonlight-xbox \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page