@@ -6801,12 +6801,12 @@ var require_dist = __commonJS({
68016801 throw new Error(`Unknown format "${name}"`);
68026802 return f;
68036803 };
6804- function addFormats(ajv, list, fs12 , exportName) {
6804+ function addFormats(ajv, list, fs11 , exportName) {
68056805 var _a;
68066806 var _b;
68076807 (_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
68086808 for (const f of list)
6809- ajv.addFormat(f, fs12 [f]);
6809+ ajv.addFormat(f, fs11 [f]);
68106810 }
68116811 module.exports = exports = formatsPlugin;
68126812 Object.defineProperty(exports, "__esModule", { value: true });
@@ -19049,10 +19049,6 @@ var nonWindows = async (options = {}) => {
1904919049var psList = process4.platform === "win32" ? windows : nonWindows;
1905019050var ps_list_default = psList;
1905119051
19052- // server.ts
19053- import fs11 from "fs";
19054- import os from "os";
19055-
1905619052// tools/delete_cell.ts
1905719053import * as fs2 from "fs/promises";
1905819054async function deleteCell(notebookPath, cellIndex) {
@@ -19381,15 +19377,6 @@ ${traceback}
1938119377// server.ts
1938219378var args = process.argv;
1938319379var mode = args.find((a) => a.startsWith("--mode="))?.split("=")[1];
19384- var logPath = path3.join(os.tmpdir(), "mcp_debug.log");
19385- try {
19386- fs11.appendFileSync(logPath, `[${(/* @__PURE__ */ new Date()).toISOString()}] process.argv: ${JSON.stringify(process.argv)}
19387- `);
19388- fs11.appendFileSync(logPath, `[${(/* @__PURE__ */ new Date()).toISOString()}] parsed mode: ${mode}
19389- `);
19390- } catch (e) {
19391- console.error("Failed to write to log file:", e);
19392- }
1939319380var server = new Server(
1939419381 {
1939519382 name: mode === "visualization" ? "visualization" : "notebook",
@@ -19582,12 +19569,6 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
1958219569 if (notebookClient) {
1958319570 try {
1958419571 const response = await notebookClient.listTools();
19585- try {
19586- fs11.appendFileSync(logPath, `[${(/* @__PURE__ */ new Date()).toISOString()}] [Notebook Mode] Socket returned tools: ${JSON.stringify(response.tools.map((t) => t.name))}
19587- `);
19588- } catch (e) {
19589- console.error("Failed to write to log file:", e);
19590- }
1959119572 response.tools.forEach((t) => toolOwnerMap.set(t.name, "notebook"));
1959219573 aggregatedTools.push(...response.tools);
1959319574 } catch (e) {
@@ -19602,12 +19583,6 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
1960219583 if (vizClient) {
1960319584 try {
1960419585 const response = await vizClient.listTools();
19605- try {
19606- fs11.appendFileSync(logPath, `[${(/* @__PURE__ */ new Date()).toISOString()}] [Viz Mode] Socket returned tools: ${JSON.stringify(response.tools.map((t) => t.name))}
19607- `);
19608- } catch (e) {
19609- console.error("Failed to write to log file:", e);
19610- }
1961119586 response.tools.forEach((t) => toolOwnerMap.set(t.name, "viz"));
1961219587 aggregatedTools.push(...response.tools);
1961319588 } catch (e) {
0 commit comments