❯ node --version
v16.20.2
❯ npx -y @idachev/mcp-javadc
file:///C:/Users/KUCOLE/AppData/Local/npm-cache/_npx/e86eae96efb2d29a/node_modules/@idachev/mcp-javadc/index.js:5
import { decompile } from '@run-slicer/cfr';
^^^^^^^^^
SyntaxError: Named export 'decompile' not found. The requested module '@run-slicer/cfr' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@run-slicer/cfr';
const { decompile } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)
❯ volta list
⚡️ Currently active tools:
Node: v16.20.2 (default)
Tool binaries available:
mcpjavadc (default)
See options for more detailed reports by running `volta list --help`.
❯ volta install node@18
success: installed and set node@18.20.8 (with npm@10.8.2) as default
❯ node --version
v18.20.8
❯ npm install -g @idachev/mcp-javadc
added 90 packages in 27s
❯ mcpjavadc
file:///C:/Users/KUCOLE/scoop/persist/volta/appdata/tools/image/packages/@idachev/mcp-javadc/node_modules/@idachev/mcp-javadc/index.js:5
import { decompile } from '@run-slicer/cfr';
^^^^^^^^^
SyntaxError: Named export 'decompile' not found. The requested module '@run-slicer/cfr' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@run-slicer/cfr';
const { decompile } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:191:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:106:12)
Node.js v18.20.8
❯ volta install node
success: installed and set node@22.17.0 (with npm@10.9.2) as default
[WARN] - (starship::utils): Executing command "C:\\Users\\KUCOLE\\scoop\\shims\\git.exe" timed out.
[WARN] - (starship::utils): You can set command_timeout in your config to a higher value to allow longer-running commands to keep executing.
❯ npm install -g @idachev/mcp-javadc
added 90 packages in 6s
❯ mcpjavadc
---------------------------------------------
MCP Java Decompiler Server v1.2.4
---------------------------------------------
Model Context Protocol (MCP) server that
decompiles Java bytecode into readable source
---------------------------------------------
Starting in stdio mode...
Use this mode when connecting through an MCP client
MCP Java Decompiler server running on stdio
Shutting down MCP Java Decompiler server...
^CTerminate batch job (Y/N)? y
❯ node --version v16.20.2 ❯ npx -y @idachev/mcp-javadc file:///C:/Users/KUCOLE/AppData/Local/npm-cache/_npx/e86eae96efb2d29a/node_modules/@idachev/mcp-javadc/index.js:5 import { decompile } from '@run-slicer/cfr'; ^^^^^^^^^ SyntaxError: Named export 'decompile' not found. The requested module '@run-slicer/cfr' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from '@run-slicer/cfr'; const { decompile } = pkg; at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21) at async ModuleJob.run (node:internal/modules/esm/module_job:189:5) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:530:24) at async loadESM (node:internal/process/esm_loader:91:5) at async handleMainPromise (node:internal/modules/run_main:65:12) ❯ volta list ⚡️ Currently active tools: Node: v16.20.2 (default) Tool binaries available: mcpjavadc (default) See options for more detailed reports by running `volta list --help`. ❯ volta install node@18 success: installed and set node@18.20.8 (with npm@10.8.2) as default ❯ node --version v18.20.8 ❯ npm install -g @idachev/mcp-javadc added 90 packages in 27s ❯ mcpjavadc file:///C:/Users/KUCOLE/scoop/persist/volta/appdata/tools/image/packages/@idachev/mcp-javadc/node_modules/@idachev/mcp-javadc/index.js:5 import { decompile } from '@run-slicer/cfr'; ^^^^^^^^^ SyntaxError: Named export 'decompile' not found. The requested module '@run-slicer/cfr' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using: import pkg from '@run-slicer/cfr'; const { decompile } = pkg; at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21) at async ModuleJob.run (node:internal/modules/esm/module_job:191:5) at async ModuleLoader.import (node:internal/modules/esm/loader:337:24) at async loadESM (node:internal/process/esm_loader:34:7) at async handleMainPromise (node:internal/modules/run_main:106:12) Node.js v18.20.8 ❯ volta install node success: installed and set node@22.17.0 (with npm@10.9.2) as default [WARN] - (starship::utils): Executing command "C:\\Users\\KUCOLE\\scoop\\shims\\git.exe" timed out. [WARN] - (starship::utils): You can set command_timeout in your config to a higher value to allow longer-running commands to keep executing. ❯ npm install -g @idachev/mcp-javadc added 90 packages in 6s ❯ mcpjavadc --------------------------------------------- MCP Java Decompiler Server v1.2.4 --------------------------------------------- Model Context Protocol (MCP) server that decompiles Java bytecode into readable source --------------------------------------------- Starting in stdio mode... Use this mode when connecting through an MCP client MCP Java Decompiler server running on stdio Shutting down MCP Java Decompiler server... ^CTerminate batch job (Y/N)? y