Commit 49c5cc8
v0.3.1 — fix SIGSEGV when launched via mcp-proxy
Remove module-level allTools global to bypass Swift lazy global init
bug on macOS 26 / Swift 6.2.4 when stdout is a non-TTY pipe. Tools
are now built as a local variable inside startServer(). Also adds
@_optimize(none) to startServer() as secondary protection.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b12ea53 commit 49c5cc8
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
1 | 10 | | |
2 | 11 | | |
3 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments