Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/shared/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ export abstract class Protocol<SendRequestT extends Request, SendNotificationT e
id: request.id,
error: {
code: ErrorCode.MethodNotFound,
message: 'Method not found'
message: `Method '${request.method}' not found`
}
};

Expand Down
2 changes: 1 addition & 1 deletion test/integration/test/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2392,7 +2392,7 @@ describe('Task-based execution', () => {

// 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 () => {
Expand Down
Loading