Remove prefix on over-the-wire ProtocolErrors (#1727)
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
This commit is contained in:
parent
72fe68b266
commit
a7c7896a56
1 changed files with 7 additions and 7 deletions
|
|
@ -2340,7 +2340,7 @@ export class ProtocolError extends Error {
|
|||
message: string,
|
||||
public readonly data?: unknown
|
||||
) {
|
||||
super(`MCP error ${code}: ${message}`);
|
||||
super(message);
|
||||
this.name = 'ProtocolError';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue