@frontmcp/adapters 1.0.3 → 1.0.4

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/esm/index.mjs CHANGED
@@ -1083,7 +1083,9 @@ var OpenapiAdapter = class extends DynamicAdapter {
1083
1083
  includeAllResponses: this.options.generateOptions?.includeAllResponses ?? true,
1084
1084
  includeSecurityInInput,
1085
1085
  maxSchemaDepth: this.options.generateOptions?.maxSchemaDepth,
1086
- includeExamples: this.options.generateOptions?.includeExamples
1086
+ includeExamples: this.options.generateOptions?.includeExamples,
1087
+ resolveFormats: this.options.generateOptions?.resolveFormats,
1088
+ formatResolvers: this.options.generateOptions?.formatResolvers
1087
1089
  });
1088
1090
  if (hasPerSchemeControl) {
1089
1091
  openapiTools = openapiTools.map((tool2) => this.filterSecuritySchemes(tool2));
@@ -1180,13 +1182,15 @@ Add one of the following to your adapter configuration:
1180
1182
  dereference: this.options.loadOptions?.dereference ?? true,
1181
1183
  headers: this.options.loadOptions?.headers,
1182
1184
  timeout: this.options.loadOptions?.timeout,
1183
- followRedirects: this.options.loadOptions?.followRedirects
1185
+ followRedirects: this.options.loadOptions?.followRedirects,
1186
+ refResolution: this.options.loadOptions?.refResolution
1184
1187
  });
1185
1188
  } else if ("spec" in this.options) {
1186
1189
  return await OpenAPIToolGenerator.fromJSON(this.options.spec, {
1187
1190
  baseUrl: this.options.baseUrl,
1188
1191
  validate: this.options.loadOptions?.validate ?? true,
1189
- dereference: this.options.loadOptions?.dereference ?? true
1192
+ dereference: this.options.loadOptions?.dereference ?? true,
1193
+ refResolution: this.options.loadOptions?.refResolution
1190
1194
  });
1191
1195
  } else {
1192
1196
  throw new Error("Either url or spec must be provided in OpenApiAdapterOptions");
@@ -1083,7 +1083,9 @@ var OpenapiAdapter = class extends DynamicAdapter {
1083
1083
  includeAllResponses: this.options.generateOptions?.includeAllResponses ?? true,
1084
1084
  includeSecurityInInput,
1085
1085
  maxSchemaDepth: this.options.generateOptions?.maxSchemaDepth,
1086
- includeExamples: this.options.generateOptions?.includeExamples
1086
+ includeExamples: this.options.generateOptions?.includeExamples,
1087
+ resolveFormats: this.options.generateOptions?.resolveFormats,
1088
+ formatResolvers: this.options.generateOptions?.formatResolvers
1087
1089
  });
1088
1090
  if (hasPerSchemeControl) {
1089
1091
  openapiTools = openapiTools.map((tool2) => this.filterSecuritySchemes(tool2));
@@ -1180,13 +1182,15 @@ Add one of the following to your adapter configuration:
1180
1182
  dereference: this.options.loadOptions?.dereference ?? true,
1181
1183
  headers: this.options.loadOptions?.headers,
1182
1184
  timeout: this.options.loadOptions?.timeout,
1183
- followRedirects: this.options.loadOptions?.followRedirects
1185
+ followRedirects: this.options.loadOptions?.followRedirects,
1186
+ refResolution: this.options.loadOptions?.refResolution
1184
1187
  });
1185
1188
  } else if ("spec" in this.options) {
1186
1189
  return await OpenAPIToolGenerator.fromJSON(this.options.spec, {
1187
1190
  baseUrl: this.options.baseUrl,
1188
1191
  validate: this.options.loadOptions?.validate ?? true,
1189
- dereference: this.options.loadOptions?.dereference ?? true
1192
+ dereference: this.options.loadOptions?.dereference ?? true,
1193
+ refResolution: this.options.loadOptions?.refResolution
1190
1194
  });
1191
1195
  } else {
1192
1196
  throw new Error("Either url or spec must be provided in OpenApiAdapterOptions");
package/esm/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontmcp/adapters",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Adapters for the FrontMCP framework",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "homepage": "https://docs.agentfront.dev",
@@ -54,11 +54,11 @@
54
54
  "node": ">=24.0.0"
55
55
  },
56
56
  "dependencies": {
57
- "@frontmcp/utils": "1.0.3",
58
- "@frontmcp/sdk": "1.0.3",
57
+ "@frontmcp/utils": "1.0.4",
58
+ "@frontmcp/sdk": "1.0.4",
59
59
  "zod": "^4.0.0",
60
60
  "openapi-types": "^12.1.3",
61
- "mcp-from-openapi": "2.1.2",
61
+ "mcp-from-openapi": "2.3.0",
62
62
  "zod-from-json-schema": "^0.5.2"
63
63
  }
64
64
  }
package/index.js CHANGED
@@ -1111,7 +1111,9 @@ var OpenapiAdapter = class extends import_sdk4.DynamicAdapter {
1111
1111
  includeAllResponses: this.options.generateOptions?.includeAllResponses ?? true,
1112
1112
  includeSecurityInInput,
1113
1113
  maxSchemaDepth: this.options.generateOptions?.maxSchemaDepth,
1114
- includeExamples: this.options.generateOptions?.includeExamples
1114
+ includeExamples: this.options.generateOptions?.includeExamples,
1115
+ resolveFormats: this.options.generateOptions?.resolveFormats,
1116
+ formatResolvers: this.options.generateOptions?.formatResolvers
1115
1117
  });
1116
1118
  if (hasPerSchemeControl) {
1117
1119
  openapiTools = openapiTools.map((tool2) => this.filterSecuritySchemes(tool2));
@@ -1208,13 +1210,15 @@ Add one of the following to your adapter configuration:
1208
1210
  dereference: this.options.loadOptions?.dereference ?? true,
1209
1211
  headers: this.options.loadOptions?.headers,
1210
1212
  timeout: this.options.loadOptions?.timeout,
1211
- followRedirects: this.options.loadOptions?.followRedirects
1213
+ followRedirects: this.options.loadOptions?.followRedirects,
1214
+ refResolution: this.options.loadOptions?.refResolution
1212
1215
  });
1213
1216
  } else if ("spec" in this.options) {
1214
1217
  return await import_mcp_from_openapi2.OpenAPIToolGenerator.fromJSON(this.options.spec, {
1215
1218
  baseUrl: this.options.baseUrl,
1216
1219
  validate: this.options.loadOptions?.validate ?? true,
1217
- dereference: this.options.loadOptions?.dereference ?? true
1220
+ dereference: this.options.loadOptions?.dereference ?? true,
1221
+ refResolution: this.options.loadOptions?.refResolution
1218
1222
  });
1219
1223
  } else {
1220
1224
  throw new Error("Either url or spec must be provided in OpenApiAdapterOptions");
package/openapi/index.js CHANGED
@@ -1111,7 +1111,9 @@ var OpenapiAdapter = class extends import_sdk4.DynamicAdapter {
1111
1111
  includeAllResponses: this.options.generateOptions?.includeAllResponses ?? true,
1112
1112
  includeSecurityInInput,
1113
1113
  maxSchemaDepth: this.options.generateOptions?.maxSchemaDepth,
1114
- includeExamples: this.options.generateOptions?.includeExamples
1114
+ includeExamples: this.options.generateOptions?.includeExamples,
1115
+ resolveFormats: this.options.generateOptions?.resolveFormats,
1116
+ formatResolvers: this.options.generateOptions?.formatResolvers
1115
1117
  });
1116
1118
  if (hasPerSchemeControl) {
1117
1119
  openapiTools = openapiTools.map((tool2) => this.filterSecuritySchemes(tool2));
@@ -1208,13 +1210,15 @@ Add one of the following to your adapter configuration:
1208
1210
  dereference: this.options.loadOptions?.dereference ?? true,
1209
1211
  headers: this.options.loadOptions?.headers,
1210
1212
  timeout: this.options.loadOptions?.timeout,
1211
- followRedirects: this.options.loadOptions?.followRedirects
1213
+ followRedirects: this.options.loadOptions?.followRedirects,
1214
+ refResolution: this.options.loadOptions?.refResolution
1212
1215
  });
1213
1216
  } else if ("spec" in this.options) {
1214
1217
  return await import_mcp_from_openapi2.OpenAPIToolGenerator.fromJSON(this.options.spec, {
1215
1218
  baseUrl: this.options.baseUrl,
1216
1219
  validate: this.options.loadOptions?.validate ?? true,
1217
- dereference: this.options.loadOptions?.dereference ?? true
1220
+ dereference: this.options.loadOptions?.dereference ?? true,
1221
+ refResolution: this.options.loadOptions?.refResolution
1218
1222
  });
1219
1223
  } else {
1220
1224
  throw new Error("Either url or spec must be provided in OpenApiAdapterOptions");
@@ -1 +1 @@
1
- {"version":3,"file":"openapi.adapter.d.ts","sourceRoot":"","sources":["../../src/openapi/openapi.adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,cAAc,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EACL,qBAAqB,EAWtB,MAAM,iBAAiB,CAAC;AA4BzB,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,cAAc,CAAC,qBAAqB,CAAC;IAC/E,OAAO,CAAC,SAAS,CAAC,CAAuB;IACzC,OAAO,CAAC,MAAM,CAAiB;IACxB,OAAO,EAAE,qBAAqB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,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,uBAAuB,KAAK,IAAI,GAAG,MAAM,IAAI;IAO3E;;;;OAIG;IACH,YAAY,IAAI,IAAI;IAsCpB;;OAEG;IACH,WAAW,IAAI,IAAI;CAOpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontmcp/adapters",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Adapters for the FrontMCP framework",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "homepage": "https://docs.agentfront.dev",
@@ -54,11 +54,11 @@
54
54
  "node": ">=24.0.0"
55
55
  },
56
56
  "dependencies": {
57
- "@frontmcp/utils": "1.0.3",
58
- "@frontmcp/sdk": "1.0.3",
57
+ "@frontmcp/utils": "1.0.4",
58
+ "@frontmcp/sdk": "1.0.4",
59
59
  "zod": "^4.0.0",
60
60
  "openapi-types": "^12.1.3",
61
- "mcp-from-openapi": "2.1.2",
61
+ "mcp-from-openapi": "2.3.0",
62
62
  "zod-from-json-schema": "^0.5.2"
63
63
  }
64
64
  }