← Files Codex SecurityARCHIVED FILE
mcp/server.mjs
765 Bytes · Nov 18, 2026 · 06:11 UTC
import { readFile } from "node:fs/promises";
import { dirname } from "node:path";
import { createRequire } from "node:module";
import { fileURLToPath } from "node:url";
import { brotliDecompressSync } from "node:zlib";
const compressedRuntime = await readFile(new URL("./server.mjs.br", import.meta.url));
const runtimeSource = brotliDecompressSync(compressedRuntime).toString("utf8");
const require = createRequire(import.meta.url);
const Module = require("node:module");
const loaderPath = fileURLToPath(import.meta.url);
const runtimeModule = new Module(loaderPath);
runtimeModule.filename = loaderPath;
runtimeModule.paths = Module._nodeModulePaths(dirname(loaderPath));
runtimeModule._compile(runtimeSource, loaderPath);
export default runtimeModule.exports;
SHA-256: acb2bdf8446b3116d48dc075a64613d92805a690a178277f612e5082cf1f2687