Commit 62832b9
committed
resolve npm symlinks in entry guard & fix MCP IO
The npm/npx installation path was broken by two issues:
1. The import.meta.url entry guard used resolve() which does
not follow symlinks. Global npm installs create a symlink
(e.g. /opt/homebrew/bin/… → node_modules/.../dist/…), so
the paths never matched and main() was never called. The
server exited silently.
Fix: use realpathSync(resolve(…)) to follow symlinks.
2. dotenv v17 prints a banner to stdout by default, which
corrupts the MCP stdio JSON-RPC channel.
Fix: pass quiet: true to dotenv.config().1 parent 5e49a17 commit 62832b9
File tree
3 files changed
+13
-7
lines changed- server
- dist
- src
3 files changed
+13
-7
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
176 | | - | |
177 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
178 | 183 | | |
179 | 184 | | |
180 | 185 | | |
0 commit comments