# juanp-g/mc-serverlauncher architecture

> Architecture diagram of the GitHub repository juanp-g/mc-serverlauncher, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/juanp-g/mc-serverlauncher
- Repository: https://github.com/juanp-g/mc-serverlauncher

## Overview

MC Server Launcher is a cross-platform desktop app for creating, running, and managing Minecraft servers. Its main workflow starts with a user creating or adding a server, then configuring and launching it; the app can prepare Java and server files, and the user can manage content, access, backups, and tunnels while it runs. The graph also preserves documented player, sleep/wake, console, and update capabilities. Some subsystem links come from README descriptions; the excerpts do not expose all runtime wiring, so uncertain calls are omitted.

Main entry points: [`McServerLauncher/Views/MainWindow.axaml.cs`](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Views/MainWindow.axaml.cs) (Main window), [`McServerLauncher/ViewModels/ServerViewModel.cs`](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/ViewModels/ServerViewModel.cs) (Server controls), [`McServerLauncher/ViewModels/StoreBrowser.cs`](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/ViewModels/StoreBrowser.cs) (Mod and plugin store), [`McServerLauncher/Services/ServerCreationService.cs`](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ServerCreationService.cs) (Server creation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_server_lifecycle["Server lifecycle"]
  node_server_vm["Server controls<br/>[ServerViewModel.cs]"]
  node_server_config["Server configuration<br/>[ServerConfig.cs]"]
  node_server_registry[("Server registry")]
  node_server_creation["Server creation"]
  node_server_provision["Server provisioning"]
  node_server_process["Server process"]
  node_java_runtime["Java runtime<br/>[JavaService.cs]"]
end

subgraph group_server_management["Server management"]
  node_content_store["Mod and plugin store<br/>[StoreBrowser.cs]"]
  node_modrinth(("Modrinth"))
  node_content_install["Content installation<br/>[ContentInstall.cs]"]
  node_backup_service[("World backups")]
  node_player_service["Player management<br/>[PlayersService.cs]"]
  node_whitelist["Whitelist"]
  node_console["Server console"]
end

subgraph group_online_play["Online play"]
  node_tunnels_ui["Tunnel controls"]
  node_playit_manager["Playit integration<br/>[PlayitManager.cs]"]
  node_playit_api["Playit API"]
  node_wake_controller["Wake on demand"]
end

subgraph group_app_shell["App experience"]
  node_main_ui["Main window"]
  node_settings[("App settings")]
  node_updates["App updates<br/>[UpdateService.cs]"]
  node_news["What's new<br/>[NewsFeedService.cs]"]
end

node_user(("User"))
node_update_source(("Update service"))

node_user -->|"uses"| node_main_ui
node_main_ui -->|"creates server"| node_server_creation
node_main_ui -->|"adds server"| node_server_registry
node_server_creation -.->|"prepares server"| node_server_provision
node_server_provision -->|"installs Java"| node_java_runtime
node_server_vm -->|"starts server"| node_server_process
node_server_vm -.->|"configures"| node_server_config
node_main_ui -->|"browses content"| node_content_store
node_content_store -->|"searches"| node_modrinth
node_content_store -.->|"installs selection"| node_content_install
node_main_ui -->|"manages backups"| node_backup_service
node_main_ui -->|"manages players"| node_player_service
node_main_ui -.->|"manages whitelist"| node_whitelist
node_server_vm -.->|"shows output"| node_console
node_main_ui -->|"opens tunnels"| node_tunnels_ui
node_tunnels_ui -.->|"manages tunnel"| node_playit_manager
node_playit_manager -->|"uses API"| node_playit_api
node_server_vm -.->|"enables wake"| node_wake_controller
node_main_ui -.->|"changes settings"| node_settings
node_main_ui -->|"checks updates"| node_updates
node_updates -.->|"checks release"| node_update_source
node_main_ui -->|"shows changes"| node_news

click node_main_ui "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Views/MainWindow.axaml.cs"
click node_server_vm "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/ViewModels/ServerViewModel.cs"
click node_server_config "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Models/ServerConfig.cs"
click node_server_registry "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ServerStorageService.cs"
click node_server_creation "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ServerCreationService.cs"
click node_server_provision "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ServerProvisioningService.cs"
click node_server_process "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ServerProcessManager.cs"
click node_java_runtime "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/JavaService.cs"
click node_content_store "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/ViewModels/StoreBrowser.cs"
click node_content_install "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ContentInstall.cs"
click node_backup_service "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/WorldBackupService.cs"
click node_player_service "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/PlayersService.cs"
click node_whitelist "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/WhitelistService.cs"
click node_console "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ConsoleLogService.cs"
click node_tunnels_ui "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/ViewModels/TunnelsViewModel.cs"
click node_playit_manager "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/PlayitManager.cs"
click node_playit_api "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/PlayitApiService.cs"
click node_wake_controller "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/ViewModels/WakeOnDemandController.cs"
click node_settings "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/AppSettingsService.cs"
click node_updates "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/UpdateService.cs"
click node_news "https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/NewsFeedService.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_server_vm,node_server_config,node_server_registry,node_server_creation,node_server_provision,node_server_process,node_java_runtime,node_user toneBlue
class node_content_store,node_modrinth,node_content_install,node_backup_service,node_player_service,node_whitelist,node_console toneAmber
class node_tunnels_ui,node_playit_manager,node_playit_api,node_wake_controller toneMint
class node_main_ui,node_settings,node_updates,node_news toneRose
class node_update_source toneIndigo
```

## Components

### Server lifecycle

- [Server controls](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/ViewModels/ServerViewModel.cs): `McServerLauncher/ViewModels/ServerViewModel.cs`
- [Server configuration](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Models/ServerConfig.cs): `McServerLauncher/Models/ServerConfig.cs`
- [Server registry](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ServerStorageService.cs): `McServerLauncher/Services/ServerStorageService.cs`
- [Server creation](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ServerCreationService.cs): `McServerLauncher/Services/ServerCreationService.cs`
- [Server provisioning](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ServerProvisioningService.cs): `McServerLauncher/Services/ServerProvisioningService.cs`
- [Server process](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ServerProcessManager.cs): `McServerLauncher/Services/ServerProcessManager.cs`
- [Java runtime](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/JavaService.cs): `McServerLauncher/Services/JavaService.cs`

### Server management

- [Mod and plugin store](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/ViewModels/StoreBrowser.cs): `McServerLauncher/ViewModels/StoreBrowser.cs`
- **Modrinth**
- [Content installation](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ContentInstall.cs): `McServerLauncher/Services/ContentInstall.cs`
- [World backups](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/WorldBackupService.cs): `McServerLauncher/Services/WorldBackupService.cs`
- [Player management](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/PlayersService.cs): `McServerLauncher/Services/PlayersService.cs`
- [Whitelist](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/WhitelistService.cs): `McServerLauncher/Services/WhitelistService.cs`
- [Server console](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/ConsoleLogService.cs): `McServerLauncher/Services/ConsoleLogService.cs`

### Online play

- [Tunnel controls](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/ViewModels/TunnelsViewModel.cs): `McServerLauncher/ViewModels/TunnelsViewModel.cs`
- [Playit integration](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/PlayitManager.cs): `McServerLauncher/Services/PlayitManager.cs`
- [Playit API](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/PlayitApiService.cs): `McServerLauncher/Services/PlayitApiService.cs`
- [Wake on demand](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/ViewModels/WakeOnDemandController.cs): `McServerLauncher/ViewModels/WakeOnDemandController.cs`

### App experience

- [Main window](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Views/MainWindow.axaml.cs): `McServerLauncher/Views/MainWindow.axaml.cs`
- [App settings](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/AppSettingsService.cs): `McServerLauncher/Services/AppSettingsService.cs`
- [App updates](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/UpdateService.cs): `McServerLauncher/Services/UpdateService.cs`
- [What's new](https://github.com/juanp-g/mc-serverlauncher/blob/main/McServerLauncher/Services/NewsFeedService.cs): `McServerLauncher/Services/NewsFeedService.cs`

### Other components

- **User**
- **Update service**

## Connections

- User → Main window: uses (evidence: `README.md`)
- Main window → Server creation: creates server (evidence: `README.md`)
- Main window → Server registry: adds server (evidence: `README.md`)
- Server creation → Server provisioning: prepares server
- Server provisioning → Java runtime: installs Java (evidence: `README.md`)
- Server controls → Server process: starts server (evidence: `README.md`)
- Server controls → Server configuration: configures
- Main window → Mod and plugin store: browses content (evidence: `README.md`)
- Mod and plugin store → Modrinth: searches (evidence: `README.md`)
- Mod and plugin store → Content installation: installs selection
- Main window → World backups: manages backups (evidence: `README.md`)
- Main window → Player management: manages players (evidence: `README.md`)
- Main window → Whitelist: manages whitelist
- Server controls → Server console: shows output
- Main window → Tunnel controls: opens tunnels (evidence: `README.md`)
- Tunnel controls → Playit integration: manages tunnel
- Playit integration → Playit API: uses API (evidence: `McServerLauncher/Services/PlayitManager.cs`)
- Server controls → Wake on demand: enables wake
- Main window → App settings: changes settings
- Main window → App updates: checks updates (evidence: `README.md`)
- App updates → Update service: checks release
- Main window → What's new: shows changes (evidence: `README.md`)
