@mastra/mcp 1.5.0-alpha.0 → 1.5.0
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 +19 -0
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/configuration.d.ts.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -456,7 +456,10 @@ var InternalMastraMCPClient = class extends MastraBase {
|
|
|
456
456
|
const hasRoots = this._roots.length > 0 || !!capabilities.roots;
|
|
457
457
|
const clientCapabilities = {
|
|
458
458
|
...capabilities,
|
|
459
|
-
elicitation
|
|
459
|
+
// Merge elicitation capabilities instead of overwriting
|
|
460
|
+
elicitation: {
|
|
461
|
+
...capabilities.elicitation ?? {}
|
|
462
|
+
},
|
|
460
463
|
// Auto-enable roots capability if roots are provided
|
|
461
464
|
...hasRoots ? { roots: { listChanged: true, ...capabilities.roots ?? {} } } : {}
|
|
462
465
|
};
|
|
@@ -1818,7 +1821,8 @@ To fix this you have three different options:
|
|
|
1818
1821
|
const mcpClient = new InternalMastraMCPClient({
|
|
1819
1822
|
name,
|
|
1820
1823
|
server: config,
|
|
1821
|
-
timeout: config.timeout ?? this.defaultTimeout
|
|
1824
|
+
timeout: config.timeout ?? this.defaultTimeout,
|
|
1825
|
+
capabilities: config.capabilities
|
|
1822
1826
|
});
|
|
1823
1827
|
mcpClient.__setLogger(this.logger);
|
|
1824
1828
|
this.mcpClientsById.set(name, mcpClient);
|