@mastra/mcp 2.6.0-alpha.2 → 2.6.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/dist/index.js CHANGED
@@ -13971,13 +13971,11 @@ var PromptClientActions = class {
13971
13971
  try {
13972
13972
  const response = await this.client.listPrompts();
13973
13973
  if (response && response.prompts && Array.isArray(response.prompts)) return response.prompts.map((prompt) => ({ ...prompt }));
13974
- else {
13975
- this.logger.warn("Prompts response did not have expected structure", {
13976
- server: this.client.name,
13977
- response
13978
- });
13979
- return [];
13980
- }
13974
+ this.logger.warn("Prompts response did not have expected structure", {
13975
+ server: this.client.name,
13976
+ response
13977
+ });
13978
+ return [];
13981
13979
  } catch (e) {
13982
13980
  if (e.code === ProtocolErrorCode.MethodNotFound) return [];
13983
13981
  this.logger.error("Error getting prompts from server", {
@@ -14077,13 +14075,11 @@ var ResourceClientActions = class {
14077
14075
  try {
14078
14076
  const response = await this.client.listResources();
14079
14077
  if (response && response.resources && Array.isArray(response.resources)) return response.resources;
14080
- else {
14081
- this.logger.warn("Resources response did not have expected structure", {
14082
- server: this.client.name,
14083
- response
14084
- });
14085
- return [];
14086
- }
14078
+ this.logger.warn("Resources response did not have expected structure", {
14079
+ server: this.client.name,
14080
+ response
14081
+ });
14082
+ return [];
14087
14083
  } catch (e) {
14088
14084
  if (e.code === ProtocolErrorCode.MethodNotFound) return [];
14089
14085
  this.logger.error("Error getting resources from server", {
@@ -14114,13 +14110,11 @@ var ResourceClientActions = class {
14114
14110
  try {
14115
14111
  const response = await this.client.listResourceTemplates();
14116
14112
  if (response && response.resourceTemplates && Array.isArray(response.resourceTemplates)) return response.resourceTemplates;
14117
- else {
14118
- this.logger.warn("Resource templates response did not have expected structure", {
14119
- server: this.client.name,
14120
- response
14121
- });
14122
- return [];
14123
- }
14113
+ this.logger.warn("Resource templates response did not have expected structure", {
14114
+ server: this.client.name,
14115
+ response
14116
+ });
14117
+ return [];
14124
14118
  } catch (e) {
14125
14119
  if (e.code === ProtocolErrorCode.MethodNotFound) return [];
14126
14120
  this.logger.error("Error getting resource templates from server", {