MCPcopy Create free account
hub / github.com/Alorse/copilot-to-api / loadConfig

Method loadConfig

server-proxy.js:15–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 }
14
15 loadConfig() {
16 try {
17 const configData = fs.readFileSync(this.configPath, 'utf8');
18 return JSON.parse(configData);
19 } catch (error) {
20 console.error('Error loading config:', error.message);
21 process.exit(1);
22 }
23 }
24
25 async refreshCopilotToken() {
26 console.log('🔄 Refreshing Copilot token...');

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected