@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/CHANGELOG.md +29 -0
- package/dist/index.cjs +20 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/dist/server/server.d.ts.map +1 -1
- package/package.json +3 -4
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(
|
|
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(
|
|
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
|
}
|