diff --git a/.changeset/surface-api-errors.md b/.changeset/surface-api-errors.md deleted file mode 100644 index 4dbd18b..0000000 --- a/.changeset/surface-api-errors.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@taskade/mcp-server': patch -'@taskade/mcp-openapi-codegen': patch ---- - -Surface API errors instead of returning them as successful tool results. The runtime now -checks `response.ok`: a non-2xx response (401/403/422/5xx) or a network failure comes back -as an `isError` tool result carrying the status and body, rather than the error payload -being handed to the model as if the call had succeeded. Applies to all generated tools -(v1 + v2); the 2xx path and the `normalizeResponse` handlers are unchanged. diff --git a/packages/openapi-codegen/CHANGELOG.md b/packages/openapi-codegen/CHANGELOG.md index f426660..c43a9ec 100644 --- a/packages/openapi-codegen/CHANGELOG.md +++ b/packages/openapi-codegen/CHANGELOG.md @@ -1,5 +1,15 @@ # @taskade/mcp-openapi-codegen +## 0.0.5 + +### Patch Changes + +- [#58](https://github.com/taskade/mcp/pull/58) [`34e978d`](https://github.com/taskade/mcp/commit/34e978d198da792a7bee98ab53938f16662ed0c4) Thanks [@johnxie](https://github.com/johnxie)! - Surface API errors instead of returning them as successful tool results. The runtime now + checks `response.ok`: a non-2xx response (401/403/422/5xx) or a network failure comes back + as an `isError` tool result carrying the status and body, rather than the error payload + being handed to the model as if the call had succeeded. Applies to all generated tools + (v1 + v2); the 2xx path and the `normalizeResponse` handlers are unchanged. + ## 0.0.4 ### Patch Changes diff --git a/packages/openapi-codegen/package.json b/packages/openapi-codegen/package.json index 39e31c8..04b9f0e 100644 --- a/packages/openapi-codegen/package.json +++ b/packages/openapi-codegen/package.json @@ -1,6 +1,6 @@ { "name": "@taskade/mcp-openapi-codegen", - "version": "0.0.4", + "version": "0.0.5", "author": "Prev Wong", "license": "MIT", "repository": { diff --git a/packages/server/CHANGELOG.md b/packages/server/CHANGELOG.md index dc0b28b..f6fb5e5 100644 --- a/packages/server/CHANGELOG.md +++ b/packages/server/CHANGELOG.md @@ -1,5 +1,15 @@ # @taskade/mcp-server +## 0.1.1 + +### Patch Changes + +- [#58](https://github.com/taskade/mcp/pull/58) [`34e978d`](https://github.com/taskade/mcp/commit/34e978d198da792a7bee98ab53938f16662ed0c4) Thanks [@johnxie](https://github.com/johnxie)! - Surface API errors instead of returning them as successful tool results. The runtime now + checks `response.ok`: a non-2xx response (401/403/422/5xx) or a network failure comes back + as an `isError` tool result carrying the status and body, rather than the error payload + being handed to the model as if the call had succeeded. Applies to all generated tools + (v1 + v2); the 2xx path and the `normalizeResponse` handlers are unchanged. + ## 0.1.0 ### Minor Changes diff --git a/packages/server/package.json b/packages/server/package.json index 641fb3a..c38f0e1 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@taskade/mcp-server", - "version": "0.1.0", + "version": "0.1.1", "mcpName": "io.github.taskade/mcp-server", "author": "Prev Wong", "license": "MIT",