v2: SdkError tests + codemod (#2137)
This commit is contained in:
parent
f563440cfd
commit
542d5c9586
1 changed files with 101 additions and 23 deletions
5
.changeset/codemod-streamablehttperror-sdkhttperror.md
Normal file
5
.changeset/codemod-streamablehttperror-sdkhttperror.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@modelcontextprotocol/codemod': patch
|
||||
---
|
||||
|
||||
The v1→v2 codemod now migrates the removed `StreamableHTTPError` to `SdkHttpError` (instead of the base `SdkError`), matching the shipped error type and the migration guide. Diagnostics now point at the typed `error.status` / `error.statusText` accessors and note that unexpected-content-type responses are thrown as the base `SdkError`.
|
||||
Loading…
Reference in a new issue