Describe the bug
`tsconfig.json` includes `"DOM"` in the `lib` array, but this is a Node.js stdio server with no browser APIs.
The DOM lib can mask type errors by making browser globals (like `window`, `document`, `fetch`) available at compile time even though they don't exist at runtime. Remove it and fix any resulting type errors.
Package
Which package is affected? [x] server [ ] tools [ ] docs
To Reproduce
Not provided in the original issue — to be filled in.
Expected behavior
Not specified explicitly — see description.
Environment
- Package version: main
- Browser/OS (if frontend): n/a
Describe the bug
`tsconfig.json` includes `"DOM"` in the `lib` array, but this is a Node.js stdio server with no browser APIs.
The DOM lib can mask type errors by making browser globals (like `window`, `document`, `fetch`) available at compile time even though they don't exist at runtime. Remove it and fix any resulting type errors.
Package
Which package is affected? [x] server [ ] tools [ ] docs
To Reproduce
Not provided in the original issue — to be filled in.
Expected behavior
Not specified explicitly — see description.
Environment