@frontmcp/adapters 0.7.2 → 0.8.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/esm/index.mjs +456 -10
- package/esm/openapi/index.mjs +456 -10
- package/esm/package.json +6 -4
- package/index.js +459 -11
- package/openapi/index.d.ts +2 -0
- package/openapi/index.d.ts.map +1 -1
- package/openapi/index.js +459 -11
- package/openapi/openapi.adapter.d.ts +47 -0
- package/openapi/openapi.adapter.d.ts.map +1 -1
- package/openapi/openapi.spec-utils.d.ts +86 -0
- package/openapi/openapi.spec-utils.d.ts.map +1 -0
- package/openapi/openapi.tool.d.ts.map +1 -1
- package/openapi/openapi.types.d.ts +298 -0
- package/openapi/openapi.types.d.ts.map +1 -1
- package/openapi/openapi.utils.d.ts +18 -5
- package/openapi/openapi.utils.d.ts.map +1 -1
- package/package.json +6 -4
|
@@ -297,6 +297,226 @@ export interface ToolTransformOptions {
|
|
|
297
297
|
*/
|
|
298
298
|
generator?: (tool: McpOpenAPITool) => ToolTransform | undefined;
|
|
299
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* JSON Schema type for schema transforms.
|
|
302
|
+
*/
|
|
303
|
+
export type JsonSchemaType = {
|
|
304
|
+
type?: string | string[];
|
|
305
|
+
properties?: Record<string, JsonSchemaType>;
|
|
306
|
+
items?: JsonSchemaType;
|
|
307
|
+
required?: string[];
|
|
308
|
+
title?: string;
|
|
309
|
+
description?: string;
|
|
310
|
+
[key: string]: unknown;
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Where to expose the output schema in tool definitions.
|
|
314
|
+
* - 'definition': Include in tool outputSchema only (default)
|
|
315
|
+
* - 'description': Include in tool description only (removes from outputSchema)
|
|
316
|
+
* - 'both': Include in both definition and description
|
|
317
|
+
*/
|
|
318
|
+
export type OutputSchemaMode = 'definition' | 'description' | 'both';
|
|
319
|
+
/**
|
|
320
|
+
* How to format schema when included in description.
|
|
321
|
+
* - 'jsonSchema': Full JSON Schema as code block
|
|
322
|
+
* - 'summary': Human-readable property list
|
|
323
|
+
*/
|
|
324
|
+
export type SchemaDescriptionMode = 'jsonSchema' | 'summary';
|
|
325
|
+
/**
|
|
326
|
+
* Context for schema transform functions.
|
|
327
|
+
*/
|
|
328
|
+
export interface SchemaTransformContext {
|
|
329
|
+
/** The OpenAPI tool being transformed */
|
|
330
|
+
tool: McpOpenAPITool;
|
|
331
|
+
/** Adapter options for reference */
|
|
332
|
+
adapterOptions: OpenApiAdapterOptions;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Context for schema description formatting.
|
|
336
|
+
*/
|
|
337
|
+
export interface SchemaDescriptionContext {
|
|
338
|
+
/** The OpenAPI tool */
|
|
339
|
+
tool: McpOpenAPITool;
|
|
340
|
+
/** Adapter options for reference */
|
|
341
|
+
adapterOptions: OpenApiAdapterOptions;
|
|
342
|
+
/** The original tool description */
|
|
343
|
+
originalDescription: string;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Schema description formatter function.
|
|
347
|
+
* Can be sync or async to support LLM-based generation.
|
|
348
|
+
*/
|
|
349
|
+
export type SchemaDescriptionFormatter = (schema: JsonSchemaType, ctx: SchemaDescriptionContext) => string | Promise<string>;
|
|
350
|
+
/**
|
|
351
|
+
* Schema transform function type.
|
|
352
|
+
*/
|
|
353
|
+
export type SchemaTransformFn<T = JsonSchemaType> = (schema: T, ctx: SchemaTransformContext) => T;
|
|
354
|
+
/**
|
|
355
|
+
* Input schema transform configuration.
|
|
356
|
+
* Applied to tool inputSchema before tool list is returned.
|
|
357
|
+
*/
|
|
358
|
+
export interface InputSchemaTransformOptions {
|
|
359
|
+
/** Global transform applied to all tools */
|
|
360
|
+
global?: SchemaTransformFn<JsonSchemaType>;
|
|
361
|
+
/** Per-tool transforms keyed by tool name */
|
|
362
|
+
perTool?: Record<string, SchemaTransformFn<JsonSchemaType>>;
|
|
363
|
+
/** Dynamic transform generator */
|
|
364
|
+
generator?: (tool: McpOpenAPITool) => SchemaTransformFn<JsonSchemaType> | undefined;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Output schema transform configuration.
|
|
368
|
+
* Applied to tool outputSchema before tool list is returned.
|
|
369
|
+
*/
|
|
370
|
+
export interface OutputSchemaTransformOptions {
|
|
371
|
+
/** Global transform applied to all tools */
|
|
372
|
+
global?: SchemaTransformFn<JsonSchemaType | undefined>;
|
|
373
|
+
/** Per-tool transforms keyed by tool name */
|
|
374
|
+
perTool?: Record<string, SchemaTransformFn<JsonSchemaType | undefined>>;
|
|
375
|
+
/** Dynamic transform generator */
|
|
376
|
+
generator?: (tool: McpOpenAPITool) => SchemaTransformFn<JsonSchemaType | undefined> | undefined;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Schema transform options for modifying input and output schema definitions.
|
|
380
|
+
* These transforms are applied at fetch() time to modify tool definitions.
|
|
381
|
+
*/
|
|
382
|
+
export interface SchemaTransformOptions {
|
|
383
|
+
/**
|
|
384
|
+
* Transform input schema definition (what's returned in tool list).
|
|
385
|
+
* Use for adding/removing/modifying input schema properties.
|
|
386
|
+
*/
|
|
387
|
+
input?: InputSchemaTransformOptions;
|
|
388
|
+
/**
|
|
389
|
+
* Transform output schema definition (what's returned in tool list).
|
|
390
|
+
* Use for adding/removing/modifying output schema properties.
|
|
391
|
+
*/
|
|
392
|
+
output?: OutputSchemaTransformOptions;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Output schema options controlling where and how output schema is exposed.
|
|
396
|
+
*/
|
|
397
|
+
export interface OutputSchemaOptions {
|
|
398
|
+
/**
|
|
399
|
+
* Where to expose output schema.
|
|
400
|
+
* - 'definition': Include in tool outputSchema only (default)
|
|
401
|
+
* - 'description': Include in tool description only (removes from outputSchema)
|
|
402
|
+
* - 'both': Include in both definition and description
|
|
403
|
+
* @default 'definition'
|
|
404
|
+
*/
|
|
405
|
+
mode?: OutputSchemaMode;
|
|
406
|
+
/**
|
|
407
|
+
* How to format schema when included in description.
|
|
408
|
+
* Only used when mode is 'description' or 'both'.
|
|
409
|
+
* @default 'summary'
|
|
410
|
+
*/
|
|
411
|
+
descriptionFormat?: SchemaDescriptionMode;
|
|
412
|
+
/**
|
|
413
|
+
* Custom formatter for schema description.
|
|
414
|
+
* Can be async to support LLM-based generation.
|
|
415
|
+
* If not provided, uses built-in formatters based on descriptionFormat.
|
|
416
|
+
*/
|
|
417
|
+
descriptionFormatter?: SchemaDescriptionFormatter;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Context available for pre-tool output transforms (before createOpenApiTool).
|
|
421
|
+
* Applied during fetch() in the adapter to the McpOpenAPITool definitions.
|
|
422
|
+
*/
|
|
423
|
+
export interface PreToolTransformContext {
|
|
424
|
+
/** The OpenAPI tool being transformed */
|
|
425
|
+
tool: McpOpenAPITool;
|
|
426
|
+
/** Adapter options for reference */
|
|
427
|
+
adapterOptions: OpenApiAdapterOptions;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Context available for post-tool output transforms (at execution time).
|
|
431
|
+
* Applied after API response is received in createOpenApiTool.
|
|
432
|
+
*/
|
|
433
|
+
export interface PostToolTransformContext {
|
|
434
|
+
/** FrontMCP request context */
|
|
435
|
+
ctx: FrontMcpContext;
|
|
436
|
+
/** The OpenAPI tool that was executed */
|
|
437
|
+
tool: McpOpenAPITool;
|
|
438
|
+
/** HTTP status code */
|
|
439
|
+
status: number;
|
|
440
|
+
/** Whether response was successful */
|
|
441
|
+
ok: boolean;
|
|
442
|
+
/** Adapter options for reference */
|
|
443
|
+
adapterOptions: OpenApiAdapterOptions;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* Pre-tool output transform - modifies McpOpenAPITool before FrontMCP wrapping.
|
|
447
|
+
* Use for modifying outputSchema, description, or other metadata.
|
|
448
|
+
*/
|
|
449
|
+
export interface PreToolTransform {
|
|
450
|
+
/**
|
|
451
|
+
* Transform the output schema definition.
|
|
452
|
+
* Return modified schema or undefined to remove the schema.
|
|
453
|
+
*/
|
|
454
|
+
transformSchema?: (outputSchema: JsonSchemaType | undefined, ctx: PreToolTransformContext) => JsonSchemaType | undefined;
|
|
455
|
+
/**
|
|
456
|
+
* Transform the tool description with output schema info.
|
|
457
|
+
* Return modified description.
|
|
458
|
+
*/
|
|
459
|
+
transformDescription?: (description: string, outputSchema: JsonSchemaType | undefined, ctx: PreToolTransformContext) => string;
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Post-tool output transform - modifies API response at execution time.
|
|
463
|
+
* Use for filtering, reshaping, or enriching response data.
|
|
464
|
+
*/
|
|
465
|
+
export interface PostToolTransform {
|
|
466
|
+
/**
|
|
467
|
+
* Transform the response data before returning to MCP client.
|
|
468
|
+
* Receives the parsed response and returns transformed response.
|
|
469
|
+
*
|
|
470
|
+
* @param data - Response data from API (or undefined for empty responses)
|
|
471
|
+
* @param ctx - Transform context with request info
|
|
472
|
+
* @returns Transformed data
|
|
473
|
+
*/
|
|
474
|
+
transform: (data: unknown, ctx: PostToolTransformContext) => unknown | Promise<unknown>;
|
|
475
|
+
/**
|
|
476
|
+
* Optional filter - if returns false, transform is skipped.
|
|
477
|
+
* Use to apply transform only to specific tools or responses.
|
|
478
|
+
*/
|
|
479
|
+
filter?: (ctx: PostToolTransformContext) => boolean;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* Data transform configuration options.
|
|
483
|
+
* Applied at execution time for response data manipulation.
|
|
484
|
+
*
|
|
485
|
+
* Note: For schema definition transforms, use `schemaTransforms` option.
|
|
486
|
+
* For output schema display options, use `outputSchema` option.
|
|
487
|
+
*/
|
|
488
|
+
export interface DataTransformOptions {
|
|
489
|
+
/**
|
|
490
|
+
* Pre-tool transforms applied to McpOpenAPITool definitions.
|
|
491
|
+
* Applied during fetch() before createOpenApiTool() wrapping.
|
|
492
|
+
* Use for custom schema or description modifications beyond schemaTransforms.
|
|
493
|
+
*/
|
|
494
|
+
preToolTransforms?: {
|
|
495
|
+
/** Global transform applied to all tools */
|
|
496
|
+
global?: PreToolTransform;
|
|
497
|
+
/** Per-tool transforms keyed by tool name */
|
|
498
|
+
perTool?: Record<string, PreToolTransform>;
|
|
499
|
+
/** Dynamic transform generator */
|
|
500
|
+
generator?: (tool: McpOpenAPITool) => PreToolTransform | undefined;
|
|
501
|
+
};
|
|
502
|
+
/**
|
|
503
|
+
* Post-tool transforms applied to API responses at execution time.
|
|
504
|
+
* Use for filtering, reshaping, or enriching response data.
|
|
505
|
+
*/
|
|
506
|
+
postToolTransforms?: {
|
|
507
|
+
/** Global transform applied to all responses */
|
|
508
|
+
global?: PostToolTransform;
|
|
509
|
+
/** Per-tool transforms keyed by tool name */
|
|
510
|
+
perTool?: Record<string, PostToolTransform>;
|
|
511
|
+
/** Dynamic transform generator */
|
|
512
|
+
generator?: (tool: McpOpenAPITool) => PostToolTransform | undefined;
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* @deprecated Use `DataTransformOptions` instead.
|
|
517
|
+
* Kept for backward compatibility.
|
|
518
|
+
*/
|
|
519
|
+
export type OutputTransformOptions = DataTransformOptions;
|
|
300
520
|
/**
|
|
301
521
|
* Extended tool metadata that includes adapter-specific fields.
|
|
302
522
|
* This extends the base ToolMetadata from mcp-from-openapi with
|
|
@@ -316,6 +536,10 @@ export interface ExtendedToolMetadata extends ToolMetadata {
|
|
|
316
536
|
securitySchemesInInput?: string[];
|
|
317
537
|
/** Security schemes resolved from context (authProviderMapper, etc.) */
|
|
318
538
|
securitySchemesFromContext?: string[];
|
|
539
|
+
/** Pre-tool output transform configuration */
|
|
540
|
+
preToolTransform?: PreToolTransform;
|
|
541
|
+
/** Post-tool output transform to apply at runtime */
|
|
542
|
+
postToolTransform?: PostToolTransform;
|
|
319
543
|
};
|
|
320
544
|
}
|
|
321
545
|
/**
|
|
@@ -541,6 +765,80 @@ interface BaseOptions {
|
|
|
541
765
|
* @default 'summaryOnly'
|
|
542
766
|
*/
|
|
543
767
|
descriptionMode?: DescriptionMode;
|
|
768
|
+
/**
|
|
769
|
+
* Schema transforms for modifying input and output schema definitions.
|
|
770
|
+
* Applied at fetch() time before tools are registered.
|
|
771
|
+
*
|
|
772
|
+
* Use cases:
|
|
773
|
+
* - Add/remove/modify input schema properties
|
|
774
|
+
* - Transform output schema for AI understanding
|
|
775
|
+
* - Simplify complex schemas
|
|
776
|
+
*
|
|
777
|
+
* @example
|
|
778
|
+
* ```typescript
|
|
779
|
+
* schemaTransforms: {
|
|
780
|
+
* input: {
|
|
781
|
+
* global: (schema) => ({ ...schema, additionalProperties: false }),
|
|
782
|
+
* },
|
|
783
|
+
* output: {
|
|
784
|
+
* perTool: {
|
|
785
|
+
* 'getUser': (schema) => ({
|
|
786
|
+
* type: 'object',
|
|
787
|
+
* properties: { id: { type: 'string' }, name: { type: 'string' } },
|
|
788
|
+
* }),
|
|
789
|
+
* },
|
|
790
|
+
* },
|
|
791
|
+
* }
|
|
792
|
+
* ```
|
|
793
|
+
*/
|
|
794
|
+
schemaTransforms?: SchemaTransformOptions;
|
|
795
|
+
/**
|
|
796
|
+
* Output schema options controlling where and how output schema is exposed.
|
|
797
|
+
*
|
|
798
|
+
* Use cases:
|
|
799
|
+
* - Move output schema to description for AI readability
|
|
800
|
+
* - Use custom formatter (including LLM-based) for schema description
|
|
801
|
+
*
|
|
802
|
+
* @example
|
|
803
|
+
* ```typescript
|
|
804
|
+
* outputSchema: {
|
|
805
|
+
* mode: 'description', // Move to description, remove from definition
|
|
806
|
+
* descriptionFormat: 'summary', // Human-readable format
|
|
807
|
+
* descriptionFormatter: async (schema, ctx) => {
|
|
808
|
+
* // Custom LLM-based description generation
|
|
809
|
+
* return await generateSchemaDescription(schema);
|
|
810
|
+
* },
|
|
811
|
+
* }
|
|
812
|
+
* ```
|
|
813
|
+
*/
|
|
814
|
+
outputSchema?: OutputSchemaOptions;
|
|
815
|
+
/**
|
|
816
|
+
* Data transforms for modifying API responses at execution time.
|
|
817
|
+
*
|
|
818
|
+
* Use cases:
|
|
819
|
+
* - Transform or filter API responses before returning
|
|
820
|
+
* - Reshape response data for MCP client consumption
|
|
821
|
+
* - Custom pre-tool description/schema modifications
|
|
822
|
+
*
|
|
823
|
+
* @example
|
|
824
|
+
* ```typescript
|
|
825
|
+
* dataTransforms: {
|
|
826
|
+
* postToolTransforms: {
|
|
827
|
+
* perTool: {
|
|
828
|
+
* 'listUsers': {
|
|
829
|
+
* transform: (data) => (data as any)?.users ?? data,
|
|
830
|
+
* },
|
|
831
|
+
* },
|
|
832
|
+
* },
|
|
833
|
+
* }
|
|
834
|
+
* ```
|
|
835
|
+
*/
|
|
836
|
+
dataTransforms?: DataTransformOptions;
|
|
837
|
+
/**
|
|
838
|
+
* @deprecated Use `dataTransforms` instead.
|
|
839
|
+
* Kept for backward compatibility.
|
|
840
|
+
*/
|
|
841
|
+
outputTransforms?: OutputTransformOptions;
|
|
544
842
|
/**
|
|
545
843
|
* Logger instance for adapter diagnostics.
|
|
546
844
|
* Optional - if not provided, the SDK will inject it automatically via setLogger().
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi.types.d.ts","sourceRoot":"","sources":["../../src/openapi/openapi.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACpH,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAMjH;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,uEAAuE;IACvE,GAAG,EAAE,eAAe,CAAC;IACrB,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;IACvB,sCAAsC;IACtC,IAAI,EAAE,cAAc,CAAC;C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;;;;;;;;;;;;;OA6BG;IACH,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,eAAe,CAAC,EAAE,qBAAqB,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,cAAc,CAAC,EAAE,oBAAoB,CAAC;IAEtC;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAE1C;;;;;;;;;;;;;;;;;;OAkBG;IACH,YAAY,CAAC,EAAE,mBAAmB,CAAC;IAEnC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,cAAc,CAAC,EAAE,oBAAoB,CAAC;IAEtC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAE1C;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,WAAY,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,EAAE,SAAS,CAAC,QAAQ,GAAG,WAAW,CAAC,QAAQ,GAAG,MAAM,CAAC;CAC1D;AAED,UAAU,UAAW,SAAQ,WAAW;IACtC;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,UAAU,CAAC"}
|
|
@@ -32,13 +32,26 @@ export interface ParseResponseOptions {
|
|
|
32
32
|
maxResponseSize?: number;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Structured response from OpenAPI tool execution.
|
|
36
|
+
* Always includes status and ok flag for consistent error handling.
|
|
37
|
+
*/
|
|
38
|
+
export interface OpenApiResponse {
|
|
39
|
+
/** HTTP status code */
|
|
40
|
+
status: number;
|
|
41
|
+
/** Whether the response was successful (2xx status) */
|
|
42
|
+
ok: boolean;
|
|
43
|
+
/** Response data (parsed JSON or text) */
|
|
44
|
+
data?: unknown;
|
|
45
|
+
/** Error message for non-ok responses */
|
|
46
|
+
error?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Parse API response based on content type.
|
|
50
|
+
* Returns structured response with status code - does NOT throw on error responses.
|
|
36
51
|
*
|
|
37
52
|
* @param response - Fetch response
|
|
38
53
|
* @param options - Optional parsing options
|
|
39
|
-
* @returns
|
|
54
|
+
* @returns Structured response with status, ok flag, and data or error
|
|
40
55
|
*/
|
|
41
|
-
export declare function parseResponse(response: Response, options?: ParseResponseOptions): Promise<
|
|
42
|
-
data: unknown;
|
|
43
|
-
}>;
|
|
56
|
+
export declare function parseResponse(response: Response, options?: ParseResponseOptions): Promise<OpenApiResponse>;
|
|
44
57
|
//# sourceMappingURL=openapi.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi.utils.d.ts","sourceRoot":"","sources":["../../src/openapi/openapi.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGzE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAgDD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,gBAAgB,C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vD,EAAE,EAAE,OAAO,CAAC;IACZ,0CAA0C;IAC1C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC,CAgEhH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/adapters",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Adapters for the FrontMCP framework",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"homepage": "https://docs.agentfront.dev",
|
|
@@ -50,12 +50,14 @@
|
|
|
50
50
|
},
|
|
51
51
|
"./esm": null
|
|
52
52
|
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=22.0.0"
|
|
55
|
+
},
|
|
53
56
|
"dependencies": {
|
|
54
|
-
"@frontmcp/utils": "0.
|
|
55
|
-
"@frontmcp/sdk": "0.
|
|
57
|
+
"@frontmcp/utils": "0.8.1",
|
|
58
|
+
"@frontmcp/sdk": "0.8.1",
|
|
56
59
|
"zod": "^4.0.0",
|
|
57
60
|
"openapi-types": "^12.1.3",
|
|
58
|
-
"@modelcontextprotocol/sdk": "1.25.1",
|
|
59
61
|
"mcp-from-openapi": "2.1.2",
|
|
60
62
|
"zod-from-json-schema": "^0.5.2"
|
|
61
63
|
}
|