Skip to content

Commit 422a535

Browse files
Merge pull request #98 from modelcontextprotocol/jerome/fix/propagate-notification-params
fix: propagate notification params
2 parents 2a3cab2 + 7865fcf commit 422a535

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@modelcontextprotocol/sdk",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Model Context Protocol implementation for TypeScript",
55
"license": "MIT",
66
"author": "Anthropic, PBC (https://anthropic.com)",

src/shared/protocol.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export abstract class Protocol<
278278
}
279279

280280
private _onprogress(notification: ProgressNotification): void {
281-
const { progress, total, progressToken } = notification.params;
281+
const { progressToken, ...params } = notification.params;
282282
const handler = this._progressHandlers.get(Number(progressToken));
283283
if (handler === undefined) {
284284
this._onerror(
@@ -289,7 +289,7 @@ export abstract class Protocol<
289289
return;
290290
}
291291

292-
handler({ progress, total });
292+
handler(params);
293293
}
294294

295295
private _onresponse(response: JSONRPCResponse | JSONRPCError): void {

0 commit comments

Comments
 (0)