diff --git a/packages/core/src/shared/protocol.ts b/packages/core/src/shared/protocol.ts index def841832..ca38d121c 100644 --- a/packages/core/src/shared/protocol.ts +++ b/packages/core/src/shared/protocol.ts @@ -689,7 +689,7 @@ export abstract class Protocol { // Try to get a task when server doesn't have TaskStore // The server will return a "Method not found" error - await expect(client.experimental.tasks.getTask('non-existent')).rejects.toThrow('Method not found'); + await expect(client.experimental.tasks.getTask('non-existent')).rejects.toThrow("Method 'tasks/get' not found"); }); test('should automatically attach related-task metadata to nested requests during tool execution', async () => {