@mastra/mcp 1.0.0-beta.6 → 1.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2371,7 +2371,16 @@ var MCPServer = class extends MCPServerBase {
2371
2371
  if (opts.prompts) {
2372
2372
  capabilities.prompts = { listChanged: true };
2373
2373
  }
2374
- this.server = new Server({ name: this.name, version: this.version }, { capabilities });
2374
+ this.server = new Server(
2375
+ {
2376
+ name: this.name,
2377
+ version: this.version
2378
+ },
2379
+ {
2380
+ capabilities,
2381
+ ...this.instructions ? { instructions: this.instructions } : {}
2382
+ }
2383
+ );
2375
2384
  this.logger.info(
2376
2385
  `Initialized MCPServer '${this.name}' v${this.version} (ID: ${this.id}) with tools: ${Object.keys(this.convertedTools).join(", ")} and resources. Capabilities: ${JSON.stringify(capabilities)}`
2377
2386
  );
@@ -2468,7 +2477,16 @@ var MCPServer = class extends MCPServerBase {
2468
2477
  if (this.promptOptions) {
2469
2478
  capabilities.prompts = { listChanged: true };
2470
2479
  }
2471
- const serverInstance = new Server({ name: this.name, version: this.version }, { capabilities });
2480
+ const serverInstance = new Server(
2481
+ {
2482
+ name: this.name,
2483
+ version: this.version
2484
+ },
2485
+ {
2486
+ capabilities,
2487
+ ...this.instructions ? { instructions: this.instructions } : {}
2488
+ }
2489
+ );
2472
2490
  this.registerHandlersOnServer(serverInstance);
2473
2491
  return serverInstance;
2474
2492
  }