Skip to content

Commit f6e47c4

Browse files
committed
Add missing name to McpError
1 parent 63db322 commit f6e47c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,7 @@ export class McpError extends Error {
11131113
public readonly data?: unknown,
11141114
) {
11151115
super(`MCP error ${code}: ${message}`);
1116+
this.name = "McpError";
11161117
}
11171118
}
11181119

0 commit comments

Comments
 (0)