How i3believe/mcws works
MCWS_v2 is a web control panel for managing Minecraft server instances, users, and shared server files. The principal workflow is an operator using the interactive web UI to manage a server slot: the manager persists slot state, prepares its working directory, and starts or controls a Java process. Separate capabilities cover account approval and roles, addon/world storage and installation, audit history, and host memory metrics. The excerpts establish backend service calls and persistence; page-to-service wiring and some subsystem details are not shown, so those links are omitted or marked unverified.
Main entry points: Program.cs Interactive web host · ServerInstanceManager.cs Instance manager · AddonService.cs Addon service · AppDbContext.cs SQLite data context
Components 21
Web interface
- Interactive web host
Program.cs - Server controls
Components/Pages/Home.razor - Storage controls
Components/Pages/Storage.razor - Admin controls
Components/Pages/Admin.razor - Login and registration
Components/Pages/Login.razor
Accounts and audit
- Authentication service
Services/AuthService.cs - Session auth state
Services/AuthStateService.cs - User and roles
Models/User.cs - Audit records
Models/AuditLog.cs - SQLite data context
Data/AppDbContext.cs
Server operations
- Instance manager
Services/ServerInstanceManager.cs - Java process control
Services/ServerProcess.cs - Server instance state
Models/ServerInstance.cs - Host RAM metrics
Services/SystemMetricsService.cs
Storage and addons
- Addon service
Services/AddonService.cs - File and world storage
Services/StorageService.cs - Storage metadata
Models/StorageModels.cs - Operation result codes
Models/ResultCode.cs - Result messages
Services/ResultCodeMapper.cs
Other components
- Operator
- Admin user
Connections 25
- Operator → Interactive web host: uses
Program.cs - Admin user → Interactive web host: uses
Program.cs - Interactive web host → SQLite data context: configures
Program.cs - Interactive web host → Authentication service: registers
Program.cs - Interactive web host → Session auth state: registers
Program.cs - Interactive web host → Addon service: registers
Program.cs - Interactive web host → Instance manager: registers
Program.cs - Interactive web host → File and world storage: registers
Program.cs - Interactive web host → Host RAM metrics: registers
Program.cs - Interactive web host → Server controls: hosts
Program.cs - Login and registration → Authentication service: uses
- Admin controls → Authentication service: uses
- Authentication service → SQLite data context: reads and writes
Services/AuthService.cs - Session auth state → SQLite data context: restores user
Services/AuthStateService.cs - Session auth state → User and roles: loads
Services/AuthStateService.cs - Instance manager → SQLite data context: reads and writes
Services/ServerInstanceManager.cs - Instance manager → File and world storage: prepares files
Services/ServerInstanceManager.cs - Instance manager → Java process control: starts and controls
Services/ServerInstanceManager.cs - Instance manager → Host RAM metrics: uses
Services/ServerInstanceManager.cs - Instance manager → Server instance state: loads and updates
Services/ServerInstanceManager.cs - Addon service → SQLite data context: reads and writes
Services/AddonService.cs - Addon service → File and world storage: manages files
Services/AddonService.cs - Addon service → Instance manager: checks server state
Services/AddonService.cs - Storage controls → Addon service: uses
- Storage controls → File and world storage: uses