@mastra/mcp 2.6.0-alpha.3 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../src/client/actions/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEzD,UAAU,yBAAyB;IACjC,MAAM,EAAE,uBAAuB,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC;CACvB;AAED;;;;;GAKG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,yBAAyB,EAGxD;IAED;;;;;;;;;;;;;;;OAeG;IACU,IAAI,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAyBrC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACU,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAEvG;IAED;;;;;;;;;;;;;;;OAeG;IACU,aAAa,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAE7D;CACF"}
1
+ {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../src/client/actions/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MA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AAM,EAAE,uBAAuB,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC;CACvB;AAED;;;;;;GAMG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,2BAA2B,EAG1D;IAED;;;;;;;;;;;;;;;OAeG;IACU,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAwBvC;IAED;;;;;;;;;;;;;;;;OAgBG;IACU,SAAS,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAwBxD;IAED;;;;;;;;;;;;OAYG;IACU,IAAI,CAAC,GAAG,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAE5B;IAED;;;;;;;;;;;;OAYG;IACU,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjD;IAED,wFAAwF;IAC3E,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEnD;IAED;;;;;;;;;;;;;;;;OAgBG;IACU,SAAS,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhF;IAED;;;;;;;;;;;;;;;OAeG;IACU,aAAa,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAE7D;CACF"}
@@ -3,7 +3,7 @@ name: mastra-mcp
3
3
  description: Documentation for @mastra/mcp. Use when working with @mastra/mcp APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/mcp"
6
- version: "2.6.0-alpha.3"
6
+ version: "2.6.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.6.0-alpha.3",
2
+ "version": "2.6.0",
3
3
  "package": "@mastra/mcp",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -13997,13 +13997,11 @@ var PromptClientActions = class {
13997
13997
  try {
13998
13998
  const response = await this.client.listPrompts();
13999
13999
  if (response && response.prompts && Array.isArray(response.prompts)) return response.prompts.map((prompt) => ({ ...prompt }));
14000
- else {
14001
- this.logger.warn("Prompts response did not have expected structure", {
14002
- server: this.client.name,
14003
- response
14004
- });
14005
- return [];
14006
- }
14000
+ this.logger.warn("Prompts response did not have expected structure", {
14001
+ server: this.client.name,
14002
+ response
14003
+ });
14004
+ return [];
14007
14005
  } catch (e) {
14008
14006
  if (e.code === _modelcontextprotocol_client.ProtocolErrorCode.MethodNotFound) return [];
14009
14007
  this.logger.error("Error getting prompts from server", {
@@ -14103,13 +14101,11 @@ var ResourceClientActions = class {
14103
14101
  try {
14104
14102
  const response = await this.client.listResources();
14105
14103
  if (response && response.resources && Array.isArray(response.resources)) return response.resources;
14106
- else {
14107
- this.logger.warn("Resources response did not have expected structure", {
14108
- server: this.client.name,
14109
- response
14110
- });
14111
- return [];
14112
- }
14104
+ this.logger.warn("Resources response did not have expected structure", {
14105
+ server: this.client.name,
14106
+ response
14107
+ });
14108
+ return [];
14113
14109
  } catch (e) {
14114
14110
  if (e.code === _modelcontextprotocol_client.ProtocolErrorCode.MethodNotFound) return [];
14115
14111
  this.logger.error("Error getting resources from server", {
@@ -14140,13 +14136,11 @@ var ResourceClientActions = class {
14140
14136
  try {
14141
14137
  const response = await this.client.listResourceTemplates();
14142
14138
  if (response && response.resourceTemplates && Array.isArray(response.resourceTemplates)) return response.resourceTemplates;
14143
- else {
14144
- this.logger.warn("Resource templates response did not have expected structure", {
14145
- server: this.client.name,
14146
- response
14147
- });
14148
- return [];
14149
- }
14139
+ this.logger.warn("Resource templates response did not have expected structure", {
14140
+ server: this.client.name,
14141
+ response
14142
+ });
14143
+ return [];
14150
14144
  } catch (e) {
14151
14145
  if (e.code === _modelcontextprotocol_client.ProtocolErrorCode.MethodNotFound) return [];
14152
14146
  this.logger.error("Error getting resource templates from server", {