Refactor config loading (in progress 3)

This commit is contained in:
2025-07-15 00:15:56 -05:00
parent 0a045762bc
commit 4b2d63335a
19 changed files with 380 additions and 360 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env node
import { Logger } from './utils/logger.util.js';
import { config } from './config/global.config.js';
import configLoader from './config/config-loader.js';
import { runCli } from './cli/index.js';
import { stdioTransport } from './server/stdio.js';
import { streamableHttpTransport } from './server/streamableHttp.js';
@@ -46,7 +46,7 @@ async function main() {
const mainLogger = Logger.forContext('index.ts', 'main');
// Load configuration
config.load();
configLoader.load();
// CLI mode - if any arguments are provided
if (process.argv.length > 2) {