We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54472d2 commit 1bb51d0Copy full SHA for 1bb51d0
src/server/index.ts
@@ -241,7 +241,7 @@ export class Server<
241
: LATEST_PROTOCOL_VERSION,
242
capabilities: this.getCapabilities(),
243
serverInfo: this._serverInfo,
244
- ...(this.getInstructions() && { instructions: this.getInstructions() }),
+ ...(this._instructions && { instructions: this._instructions }),
245
};
246
}
247
@@ -263,10 +263,6 @@ export class Server<
263
return this._capabilities;
264
265
266
- private getInstructions(): string | undefined {
267
- return this._instructions;
268
- }
269
-
270
async ping() {
271
return this.request({ method: "ping" }, EmptyResultSchema);
272
0 commit comments