Commit fdff270
committed
fix: switch stdio transport from Content-Length framing to newline-delimited JSON
MCP spec requires stdio messages delimited by newlines, not LSP-style
Content-Length headers. mcp-proxy (used by Glama) sends newline-delimited
JSON — the old parser never found Content-Length headers and never responded.
- Replace raw Buffer + Content-Length parser with readline interface
- Send responses as JSON + newline (no Content-Length header)
- Bump v0.5.151 parent 80f0564 commit fdff270
3 files changed
Lines changed: 24 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
335 | | - | |
336 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
337 | 339 | | |
338 | | - | |
| 340 | + | |
339 | 341 | | |
340 | | - | |
341 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
342 | 345 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
376 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
377 | 358 | | |
378 | 359 | | |
379 | 360 | | |
380 | 361 | | |
381 | | - | |
382 | | - | |
383 | | - | |
| 362 | + | |
384 | 363 | | |
385 | 364 | | |
386 | | - | |
| 365 | + | |
387 | 366 | | |
388 | 367 | | |
389 | 368 | | |
| |||
0 commit comments