How metaltrack/mcservermanager works
MCServerManager is a console-oriented Minecraft server launcher with supporting Java runtime checks, Git commands, and webhook notifications. The implemented workflow in Program.cs prompts for a repository path, checks Java, starts a configured server process, reports start/stop notifications, and waits for exit. ServerManager provides a separate coordination layer, but the shown entry point does not use it. README.md only names the project; GUI, Git synchronization, and richer lifecycle behavior appear as comments or state definitions, so they are not presented as implemented workflows.
Main entry points: ServerManager.cs Server coordinator · Program.cs Console workflow · NotificationService.cs Webhook notices · JavaHandlerService.cs Java checker
Components 15
Application flow
- Console workflow
Program.cs - Server coordinator
MCServerManager.Core/ServerManager.cs
Server runtime
- Java checker
MCServerManager.Core/Services/JavaHandlerService.cs - Server process
MCServerManager.Core/Services/MinecraftServerService.cs - Webhook notices
MCServerManager.Core/Services/NotificationService.cs
Repository tools
- Git commands
MCServerManager.Core/Services/GitService.cs
Domain data
- Java details
MCServerManager.Core/Models/JavaInfo.cs - Server profile
MCServerManager.Core/Models/ServerProfile.cs - Lifecycle state
MCServerManager.Core/Models/ServerState.cs - Git result
MCServerManager.Core/Models/GitResult.cs - User details
MCServerManager.Core/Models/UserModel.cs
Other components
- Operator
- Java runtime
- Git CLI
- Webhook endpoint
Connections 19
- Operator → Console workflow: provides path
Program.cs - Console workflow → Java checker: checks Java
Program.cs - Java checker → Java runtime: runs version check
MCServerManager.Core/Services/JavaHandlerService.cs - Java checker → Java details: updates details
MCServerManager.Core/Services/JavaHandlerService.cs - Console workflow → Server profile: configures
Program.cs - Console workflow → Server process: starts and awaits
Program.cs - Server process → Server profile: reads settings
MCServerManager.Core/Services/MinecraftServerService.cs - Server process → Java runtime: launches process
MCServerManager.Core/Services/MinecraftServerService.cs - Console workflow → Webhook notices: sends notices
Program.cs - Webhook notices → Server profile: formats notice
MCServerManager.Core/Services/NotificationService.cs - Webhook notices → User details: formats notice
MCServerManager.Core/Services/NotificationService.cs - Webhook notices → Webhook endpoint: posts message
MCServerManager.Core/Services/NotificationService.cs - Server coordinator → Server profile: retains profile
MCServerManager.Core/ServerManager.cs - Server coordinator → Lifecycle state: tracks state
MCServerManager.Core/ServerManager.cs - Server coordinator → Git commands: creates helper
MCServerManager.Core/ServerManager.cs - Server coordinator → Java checker: creates helper
MCServerManager.Core/ServerManager.cs - Server coordinator → Server process: creates process service
MCServerManager.Core/ServerManager.cs - Git commands → Git CLI: runs commands
MCServerManager.Core/Services/GitService.cs - Git commands → Git result: returns result
MCServerManager.Core/Services/GitService.cs