Remove prefix on over-the-wire ProtocolErrors (#1727)

Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
This commit is contained in:
Konstantin Konstantinov 2026-03-23 17:46:32 +02:00 • committed by GitHub
commit a7c7896a56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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';
}