@mastra/mcp 2.8.0-alpha.0 → 2.8.0-alpha.1
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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/server/server.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/docs/SKILL.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -23245,10 +23245,10 @@ var MCPServer = class extends _mastra_core_mcp.MCPServerBase {
|
|
|
23245
23245
|
});
|
|
23246
23246
|
this.setTracedHandler(server, "tools/call", async (request, ctx, trace) => {
|
|
23247
23247
|
const name = request.params.name;
|
|
23248
|
-
const tool = this.convertedTools[name];
|
|
23248
|
+
const tool = Object.hasOwn(this.convertedTools, name) ? this.convertedTools[name] : void 0;
|
|
23249
23249
|
if (!tool) {
|
|
23250
23250
|
this.logger.warn("Unknown tool requested", { tool: name });
|
|
23251
|
-
|
|
23251
|
+
throw new _modelcontextprotocol_server.ProtocolError(_modelcontextprotocol_server.ProtocolErrorCode.InvalidParams, `Unknown tool: ${name}`);
|
|
23252
23252
|
}
|
|
23253
23253
|
const args = request.params.arguments ?? {};
|
|
23254
23254
|
const argsHash = hashArguments(args);
|