syia-mcp-utils
Version:
Global utility functions for MCP server
15 lines (14 loc) • 369 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setConfig = setConfig;
exports.getConfig = getConfig;
let _config = null;
function setConfig(config) {
_config = config;
}
function getConfig() {
if (!_config) {
throw new Error("Config not set. Call setConfig(config) in server startup.");
}
return _config;
}