How 2584210631-star/mc-scanner-v3 works
MC Scanner is a Minecraft server discovery, probing, monitoring, and security-alert tool with CLI and Web interfaces. Its main workflow finds open ports, probes servers with Minecraft SLP, identifies authentication and software traits, then stores and presents results. Separate branches support bot-based observation and messaging, AI-managed chat, Microsoft account login, recurring health checks, and warnings. The README documents these capabilities; sampled source confirms key scan, persistence, and Web-route relationships, while some unsampled subsystem links are omitted rather than inferred.
Main entry points: engine.py Scan Engine · routes_scan.py Scan Routes · bot.py Bot Client · routes_data.py Data Routes
Components 26
Discovery and Probing
- Scan Engine
scanner/engine.py - Async Scanner
scanner/async_engine.py - Port Scanning
scanner/portscan.py - Masscan Integration
scanner/masscan.py - SLP and Auth Probe
core/probe.py - Protocol Adapters
core/protocols
Server Operations
- Bot Client
core/bot.py - Observer Sessions
web/observer_session.py - AI Chat
core/ai_bot.py - AI Memory
core/ai_memory.py - Microsoft Login
core/microsoft_auth.py - Security Warnings
service/warn_service.py
Web Services
- Scan Routes
web/routes_scan.py - Observer Routes
web/routes_observer.py - Data Routes
web/routes_data.py - Warning Routes
web/routes_warn.py
State and Notifications
- Shared Runtime State
web/state.py - SQLite Database
storage/db.py - Favorites
storage/favorites.py - Player History
storage/player_history.py - Discord Webhook
notify/discord.py - Configuration
config.py
Other components
- Operator
- Minecraft Servers
Connections 30
- Operator → CLI: runs scans
- Operator → Web Panel: uses panel
- CLI → Scan Engine: starts scan
- Web Panel → Scan Routes: serves routes
- Scan Routes → Scan Engine: starts scan
web/routes_scan.py - Scan Routes → Masscan Integration: selects discovery
web/routes_scan.py - Scan Engine → Port Scanning: scans ports
scanner/engine.py - Scan Engine → SLP and Auth Probe: probes servers
scanner/engine.py - Async Scanner → SLP and Auth Probe: probes servers
scanner/async_engine.py - SLP and Auth Probe → Protocol Adapters: uses adapters
core/probe.py - Scan Engine → SQLite Database: stores results
scanner/engine.py - Async Scanner → SQLite Database: writes batches
scanner/async_engine.py - Scan Engine → Discord Webhook: notifies findings
scanner/engine.py - Scan Engine → Minecraft Servers: probes
- Bot Client → Minecraft Servers: logs in
- Observer Routes → Observer Sessions: manages sessions
web/routes_observer.py - Observer Sessions → Bot Client: uses client
- AI Chat → Bot Client: uses client
- AI Chat → AI Memory: uses memory
- Microsoft Login → Minecraft Servers: authenticates account
- Warning Routes → Security Warnings: runs warnings
web/routes_warn.py - Security Warnings → Bot Client: sends messages
service/warn_service.py - Data Routes → SQLite Database: reads results
web/routes_data.py - Data Routes → Favorites: manages favorites
web/routes_data.py - Data Routes → Player History: reads history
web/routes_data.py - Scan Routes → Shared Runtime State: updates state
web/routes_scan.py - Observer Routes → Shared Runtime State: uses state
web/routes_observer.py - Warning Routes → Shared Runtime State: uses state
web/routes_warn.py - Configuration → Scan Engine: configures scans
- Operator → Microsoft Login: sets up account