Skip to content

Commit 582ac67

Browse files
fix: changeset includes client+server (re-exports flow to both); revert cfWorker.ts import-sort noise
1 parent 57c85bc commit 582ac67

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.changeset/error-compat-aliases.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
'@modelcontextprotocol/core': patch
2+
'@modelcontextprotocol/client': patch
3+
'@modelcontextprotocol/server': patch
34
---
45

5-
Add v1-compat error aliases: `McpError`/`ErrorCode` (alias `ProtocolError`/`ProtocolErrorCode`, with `ConnectionClosed`/`RequestTimeout` from `SdkErrorCode`), `OAuthError.errorCode` getter (alias `.code`), `JSONRPCError`/`isJSONRPCError`, the 17 v1 OAuth error subclasses (`InvalidTokenError`, `ServerError`, …) as thin wrappers around `OAuthError` + `OAuthErrorCode`, and `StreamableHTTPError` (construct-only `@deprecated` shim; v2 throws `SdkError`).
6+
Add v1-compat `@deprecated` error aliases: `McpError`/`ErrorCode` (alias `ProtocolError`/`ProtocolErrorCode`, with `ConnectionClosed`/`RequestTimeout` from `SdkErrorCode`), `OAuthError.errorCode` getter (alias `.code`), `JSONRPCError`/`isJSONRPCError`, the 17 v1 OAuth error subclasses (`InvalidTokenError`, `ServerError`, …) as thin wrappers around `OAuthError` + `OAuthErrorCode`, and `StreamableHTTPError` as an `SdkError` subclass that the StreamableHTTP client transport now throws (so `instanceof StreamableHTTPError` matches; `.status` carries the HTTP status code).

packages/client/src/validators/cfWorker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
* import { CfWorkerJsonSchemaValidator } from '@modelcontextprotocol/client/validators/cf-worker';
77
* ```
88
*/
9-
export type { CfWorkerSchemaDraft } from '@modelcontextprotocol/core';
109
export { CfWorkerJsonSchemaValidator } from '@modelcontextprotocol/core';
10+
export type { CfWorkerSchemaDraft } from '@modelcontextprotocol/core';

0 commit comments

Comments
 (0)