- Switch mcp.json and package.json scripts to use run.mjs as entrypoint so DOM/MathJax polyfills are set up before tsx loads the TS source - Fix polyfill.mjs: add missing window.MathJax reference and remove leftover writeSync debug output - Pin jsdom>undici to ^7.25.0 via pnpm-workspace.yaml overrides to prevent pnpm from resolving it to undici@8 which dropped lib/handler/wrap-handler.js, causing the server to crash on startup
15 lines
264 B
JSON
15 lines
264 B
JSON
{
|
|
"servers": {
|
|
"md": {
|
|
"type": "stdio",
|
|
"command": "node",
|
|
"args": [
|
|
"--import",
|
|
"tsx/esm",
|
|
"${workspaceFolder}/packages/mcp-server/run.mjs"
|
|
],
|
|
"cwd": "${workspaceFolder}/packages/mcp-server"
|
|
}
|
|
}
|
|
}
|