Commit e1575e5
fix: MCP _read_message supports both Content-Length and bare JSON
Claude Desktop uses Content-Length framing — previous rewrite broke it
by not falling back to bare JSON when framing is absent.
Now handles both paths reliably on Windows pipes.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent 3c4fe13 commit e1575e5
1 file changed
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
298 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
299 | 316 | | |
300 | 317 | | |
301 | 318 | | |
302 | 319 | | |
303 | 320 | | |
304 | 321 | | |
305 | | - | |
| 322 | + | |
306 | 323 | | |
307 | | - | |
308 | | - | |
| 324 | + | |
| 325 | + | |
309 | 326 | | |
310 | 327 | | |
311 | 328 | | |
| |||
0 commit comments