diff --git a/src/server/index.ts b/src/server/index.ts index ae34d03d..0333ad87 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -241,7 +241,7 @@ export class Server< : LATEST_PROTOCOL_VERSION, capabilities: this.getCapabilities(), serverInfo: this._serverInfo, - ...(this.getInstructions() && { instructions: this.getInstructions() }), + ...(this._instructions && { instructions: this._instructions }), }; } @@ -263,10 +263,6 @@ export class Server< return this._capabilities; } - private getInstructions(): string | undefined { - return this._instructions; - } - async ping() { return this.request({ method: "ping" }, EmptyResultSchema); }