MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / initialize

Method initialize

src/services/mdm/MdmService.ts:32–43  ·  view source on GitHub ↗

* Initialize the MDM service by loading configuration

()

Source from the content-addressed store, hash-verified

30 * Initialize the MDM service by loading configuration
31 */
32 public async initialize(): Promise<void> {
33 try {
34 this.mdmConfig = await this.loadMdmConfig()
35
36 if (this.mdmConfig) {
37 this.log(`[MDM] Loaded MDM configuration: ${JSON.stringify(this.mdmConfig)}`)
38 }
39 } catch (error) {
40 this.log(`[MDM] Error loading MDM configuration: ${error instanceof Error ? error.message : String(error)}`)
41 // Don't throw - extension should work without MDM config.
42 }
43 }
44
45 /**
46 * Check if cloud authentication is required by MDM policy

Callers

nothing calls this directly

Calls 3

loadMdmConfigMethod · 0.95
logMethod · 0.65
StringInterface · 0.50

Tested by

no test coverage detected