@settlemint/sdk-mcp 2.6.4-prf84ea4cc → 2.6.4-prffd0842f
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/mcp.js +393 -236
- package/dist/mcp.js.map +8 -7
- package/package.json +6 -6
package/dist/mcp.js
CHANGED
|
@@ -49255,31 +49255,32 @@ var coerce = {
|
|
|
49255
49255
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
49256
49256
|
};
|
|
49257
49257
|
var NEVER = INVALID;
|
|
49258
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
49258
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.22.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
49259
49259
|
var LATEST_PROTOCOL_VERSION = "2025-06-18";
|
|
49260
49260
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
49261
49261
|
var JSONRPC_VERSION = "2.0";
|
|
49262
|
+
var AssertObjectSchema = exports_external.custom((v) => v !== null && (typeof v === "object" || typeof v === "function"));
|
|
49262
49263
|
var ProgressTokenSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
49263
49264
|
var CursorSchema = exports_external.string();
|
|
49264
49265
|
var RequestMetaSchema = exports_external.object({
|
|
49265
|
-
progressToken:
|
|
49266
|
+
progressToken: ProgressTokenSchema.optional()
|
|
49266
49267
|
}).passthrough();
|
|
49267
49268
|
var BaseRequestParamsSchema = exports_external.object({
|
|
49268
|
-
_meta:
|
|
49269
|
-
})
|
|
49269
|
+
_meta: RequestMetaSchema.optional()
|
|
49270
|
+
});
|
|
49270
49271
|
var RequestSchema = exports_external.object({
|
|
49271
49272
|
method: exports_external.string(),
|
|
49272
|
-
params:
|
|
49273
|
+
params: BaseRequestParamsSchema.passthrough().optional()
|
|
49274
|
+
});
|
|
49275
|
+
var NotificationsParamsSchema = exports_external.object({
|
|
49276
|
+
_meta: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
49273
49277
|
});
|
|
49274
|
-
var BaseNotificationParamsSchema = exports_external.object({
|
|
49275
|
-
_meta: exports_external.optional(exports_external.object({}).passthrough())
|
|
49276
|
-
}).passthrough();
|
|
49277
49278
|
var NotificationSchema = exports_external.object({
|
|
49278
49279
|
method: exports_external.string(),
|
|
49279
|
-
params:
|
|
49280
|
+
params: NotificationsParamsSchema.passthrough().optional()
|
|
49280
49281
|
});
|
|
49281
49282
|
var ResultSchema = exports_external.object({
|
|
49282
|
-
_meta: exports_external.
|
|
49283
|
+
_meta: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
49283
49284
|
}).passthrough();
|
|
49284
49285
|
var RequestIdSchema = exports_external.union([exports_external.string(), exports_external.number().int()]);
|
|
49285
49286
|
var JSONRPCRequestSchema = exports_external.object({
|
|
@@ -49319,65 +49320,69 @@ var JSONRPCErrorSchema = exports_external.object({
|
|
|
49319
49320
|
var isJSONRPCError = (value) => JSONRPCErrorSchema.safeParse(value).success;
|
|
49320
49321
|
var JSONRPCMessageSchema = exports_external.union([JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, JSONRPCErrorSchema]);
|
|
49321
49322
|
var EmptyResultSchema = ResultSchema.strict();
|
|
49323
|
+
var CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
49324
|
+
requestId: RequestIdSchema,
|
|
49325
|
+
reason: exports_external.string().optional()
|
|
49326
|
+
});
|
|
49322
49327
|
var CancelledNotificationSchema = NotificationSchema.extend({
|
|
49323
49328
|
method: exports_external.literal("notifications/cancelled"),
|
|
49324
|
-
params:
|
|
49325
|
-
requestId: RequestIdSchema,
|
|
49326
|
-
reason: exports_external.string().optional()
|
|
49327
|
-
})
|
|
49329
|
+
params: CancelledNotificationParamsSchema
|
|
49328
49330
|
});
|
|
49329
49331
|
var IconSchema = exports_external.object({
|
|
49330
49332
|
src: exports_external.string(),
|
|
49331
|
-
mimeType: exports_external.
|
|
49332
|
-
sizes: exports_external.
|
|
49333
|
-
})
|
|
49333
|
+
mimeType: exports_external.string().optional(),
|
|
49334
|
+
sizes: exports_external.array(exports_external.string()).optional()
|
|
49335
|
+
});
|
|
49334
49336
|
var IconsSchema = exports_external.object({
|
|
49335
49337
|
icons: exports_external.array(IconSchema).optional()
|
|
49336
|
-
})
|
|
49338
|
+
});
|
|
49337
49339
|
var BaseMetadataSchema = exports_external.object({
|
|
49338
49340
|
name: exports_external.string(),
|
|
49339
|
-
title: exports_external.
|
|
49340
|
-
})
|
|
49341
|
+
title: exports_external.string().optional()
|
|
49342
|
+
});
|
|
49341
49343
|
var ImplementationSchema = BaseMetadataSchema.extend({
|
|
49342
49344
|
version: exports_external.string(),
|
|
49343
|
-
websiteUrl: exports_external.
|
|
49345
|
+
websiteUrl: exports_external.string().optional()
|
|
49344
49346
|
}).merge(IconsSchema);
|
|
49345
49347
|
var ClientCapabilitiesSchema = exports_external.object({
|
|
49346
|
-
experimental: exports_external.
|
|
49347
|
-
sampling:
|
|
49348
|
-
elicitation: exports_external.
|
|
49349
|
-
|
|
49350
|
-
|
|
49351
|
-
|
|
49352
|
-
|
|
49348
|
+
experimental: exports_external.record(exports_external.string(), AssertObjectSchema).optional(),
|
|
49349
|
+
sampling: AssertObjectSchema.optional(),
|
|
49350
|
+
elicitation: exports_external.intersection(exports_external.object({
|
|
49351
|
+
applyDefaults: exports_external.boolean().optional()
|
|
49352
|
+
}).optional(), exports_external.record(exports_external.string(), exports_external.unknown()).optional()),
|
|
49353
|
+
roots: exports_external.object({
|
|
49354
|
+
listChanged: exports_external.boolean().optional()
|
|
49355
|
+
}).optional()
|
|
49356
|
+
});
|
|
49357
|
+
var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
49358
|
+
protocolVersion: exports_external.string(),
|
|
49359
|
+
capabilities: ClientCapabilitiesSchema,
|
|
49360
|
+
clientInfo: ImplementationSchema
|
|
49361
|
+
});
|
|
49353
49362
|
var InitializeRequestSchema = RequestSchema.extend({
|
|
49354
49363
|
method: exports_external.literal("initialize"),
|
|
49355
|
-
params:
|
|
49356
|
-
protocolVersion: exports_external.string(),
|
|
49357
|
-
capabilities: ClientCapabilitiesSchema,
|
|
49358
|
-
clientInfo: ImplementationSchema
|
|
49359
|
-
})
|
|
49364
|
+
params: InitializeRequestParamsSchema
|
|
49360
49365
|
});
|
|
49361
49366
|
var ServerCapabilitiesSchema = exports_external.object({
|
|
49362
|
-
experimental: exports_external.
|
|
49363
|
-
logging:
|
|
49364
|
-
completions:
|
|
49367
|
+
experimental: exports_external.record(exports_external.string(), AssertObjectSchema).optional(),
|
|
49368
|
+
logging: AssertObjectSchema.optional(),
|
|
49369
|
+
completions: AssertObjectSchema.optional(),
|
|
49365
49370
|
prompts: exports_external.optional(exports_external.object({
|
|
49366
49371
|
listChanged: exports_external.optional(exports_external.boolean())
|
|
49367
|
-
})
|
|
49368
|
-
resources: exports_external.
|
|
49369
|
-
subscribe: exports_external.
|
|
49370
|
-
listChanged: exports_external.
|
|
49371
|
-
}).
|
|
49372
|
-
tools: exports_external.
|
|
49373
|
-
listChanged: exports_external.
|
|
49374
|
-
}).
|
|
49375
|
-
})
|
|
49372
|
+
})),
|
|
49373
|
+
resources: exports_external.object({
|
|
49374
|
+
subscribe: exports_external.boolean().optional(),
|
|
49375
|
+
listChanged: exports_external.boolean().optional()
|
|
49376
|
+
}).optional(),
|
|
49377
|
+
tools: exports_external.object({
|
|
49378
|
+
listChanged: exports_external.boolean().optional()
|
|
49379
|
+
}).optional()
|
|
49380
|
+
});
|
|
49376
49381
|
var InitializeResultSchema = ResultSchema.extend({
|
|
49377
49382
|
protocolVersion: exports_external.string(),
|
|
49378
49383
|
capabilities: ServerCapabilitiesSchema,
|
|
49379
49384
|
serverInfo: ImplementationSchema,
|
|
49380
|
-
instructions: exports_external.
|
|
49385
|
+
instructions: exports_external.string().optional()
|
|
49381
49386
|
});
|
|
49382
49387
|
var InitializedNotificationSchema = NotificationSchema.extend({
|
|
49383
49388
|
method: exports_external.literal("notifications/initialized")
|
|
@@ -49389,17 +49394,19 @@ var ProgressSchema = exports_external.object({
|
|
|
49389
49394
|
progress: exports_external.number(),
|
|
49390
49395
|
total: exports_external.optional(exports_external.number()),
|
|
49391
49396
|
message: exports_external.optional(exports_external.string())
|
|
49392
|
-
})
|
|
49397
|
+
});
|
|
49398
|
+
var ProgressNotificationParamsSchema = NotificationsParamsSchema.merge(ProgressSchema).extend({
|
|
49399
|
+
progressToken: ProgressTokenSchema
|
|
49400
|
+
});
|
|
49393
49401
|
var ProgressNotificationSchema = NotificationSchema.extend({
|
|
49394
49402
|
method: exports_external.literal("notifications/progress"),
|
|
49395
|
-
params:
|
|
49396
|
-
|
|
49397
|
-
|
|
49403
|
+
params: ProgressNotificationParamsSchema
|
|
49404
|
+
});
|
|
49405
|
+
var PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
49406
|
+
cursor: CursorSchema.optional()
|
|
49398
49407
|
});
|
|
49399
49408
|
var PaginatedRequestSchema = RequestSchema.extend({
|
|
49400
|
-
params:
|
|
49401
|
-
cursor: exports_external.optional(CursorSchema)
|
|
49402
|
-
}).optional()
|
|
49409
|
+
params: PaginatedRequestParamsSchema.optional()
|
|
49403
49410
|
});
|
|
49404
49411
|
var PaginatedResultSchema = ResultSchema.extend({
|
|
49405
49412
|
nextCursor: exports_external.optional(CursorSchema)
|
|
@@ -49407,8 +49414,8 @@ var PaginatedResultSchema = ResultSchema.extend({
|
|
|
49407
49414
|
var ResourceContentsSchema = exports_external.object({
|
|
49408
49415
|
uri: exports_external.string(),
|
|
49409
49416
|
mimeType: exports_external.optional(exports_external.string()),
|
|
49410
|
-
_meta: exports_external.
|
|
49411
|
-
})
|
|
49417
|
+
_meta: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
49418
|
+
});
|
|
49412
49419
|
var TextResourceContentsSchema = ResourceContentsSchema.extend({
|
|
49413
49420
|
text: exports_external.string()
|
|
49414
49421
|
});
|
|
@@ -49447,11 +49454,13 @@ var ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
|
|
|
49447
49454
|
var ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
|
|
49448
49455
|
resourceTemplates: exports_external.array(ResourceTemplateSchema)
|
|
49449
49456
|
});
|
|
49457
|
+
var ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
49458
|
+
uri: exports_external.string()
|
|
49459
|
+
});
|
|
49460
|
+
var ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
|
|
49450
49461
|
var ReadResourceRequestSchema = RequestSchema.extend({
|
|
49451
49462
|
method: exports_external.literal("resources/read"),
|
|
49452
|
-
params:
|
|
49453
|
-
uri: exports_external.string()
|
|
49454
|
-
})
|
|
49463
|
+
params: ReadResourceRequestParamsSchema
|
|
49455
49464
|
});
|
|
49456
49465
|
var ReadResourceResultSchema = ResultSchema.extend({
|
|
49457
49466
|
contents: exports_external.array(exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema]))
|
|
@@ -49459,29 +49468,28 @@ var ReadResourceResultSchema = ResultSchema.extend({
|
|
|
49459
49468
|
var ResourceListChangedNotificationSchema = NotificationSchema.extend({
|
|
49460
49469
|
method: exports_external.literal("notifications/resources/list_changed")
|
|
49461
49470
|
});
|
|
49471
|
+
var SubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
49462
49472
|
var SubscribeRequestSchema = RequestSchema.extend({
|
|
49463
49473
|
method: exports_external.literal("resources/subscribe"),
|
|
49464
|
-
params:
|
|
49465
|
-
uri: exports_external.string()
|
|
49466
|
-
})
|
|
49474
|
+
params: SubscribeRequestParamsSchema
|
|
49467
49475
|
});
|
|
49476
|
+
var UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema;
|
|
49468
49477
|
var UnsubscribeRequestSchema = RequestSchema.extend({
|
|
49469
49478
|
method: exports_external.literal("resources/unsubscribe"),
|
|
49470
|
-
params:
|
|
49471
|
-
|
|
49472
|
-
|
|
49479
|
+
params: UnsubscribeRequestParamsSchema
|
|
49480
|
+
});
|
|
49481
|
+
var ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
49482
|
+
uri: exports_external.string()
|
|
49473
49483
|
});
|
|
49474
49484
|
var ResourceUpdatedNotificationSchema = NotificationSchema.extend({
|
|
49475
49485
|
method: exports_external.literal("notifications/resources/updated"),
|
|
49476
|
-
params:
|
|
49477
|
-
uri: exports_external.string()
|
|
49478
|
-
})
|
|
49486
|
+
params: ResourceUpdatedNotificationParamsSchema
|
|
49479
49487
|
});
|
|
49480
49488
|
var PromptArgumentSchema = exports_external.object({
|
|
49481
49489
|
name: exports_external.string(),
|
|
49482
49490
|
description: exports_external.optional(exports_external.string()),
|
|
49483
49491
|
required: exports_external.optional(exports_external.boolean())
|
|
49484
|
-
})
|
|
49492
|
+
});
|
|
49485
49493
|
var PromptSchema = BaseMetadataSchema.extend({
|
|
49486
49494
|
description: exports_external.optional(exports_external.string()),
|
|
49487
49495
|
arguments: exports_external.optional(exports_external.array(PromptArgumentSchema)),
|
|
@@ -49493,35 +49501,36 @@ var ListPromptsRequestSchema = PaginatedRequestSchema.extend({
|
|
|
49493
49501
|
var ListPromptsResultSchema = PaginatedResultSchema.extend({
|
|
49494
49502
|
prompts: exports_external.array(PromptSchema)
|
|
49495
49503
|
});
|
|
49504
|
+
var GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
49505
|
+
name: exports_external.string(),
|
|
49506
|
+
arguments: exports_external.record(exports_external.string(), exports_external.string()).optional()
|
|
49507
|
+
});
|
|
49496
49508
|
var GetPromptRequestSchema = RequestSchema.extend({
|
|
49497
49509
|
method: exports_external.literal("prompts/get"),
|
|
49498
|
-
params:
|
|
49499
|
-
name: exports_external.string(),
|
|
49500
|
-
arguments: exports_external.optional(exports_external.record(exports_external.string()))
|
|
49501
|
-
})
|
|
49510
|
+
params: GetPromptRequestParamsSchema
|
|
49502
49511
|
});
|
|
49503
49512
|
var TextContentSchema = exports_external.object({
|
|
49504
49513
|
type: exports_external.literal("text"),
|
|
49505
49514
|
text: exports_external.string(),
|
|
49506
|
-
_meta: exports_external.
|
|
49507
|
-
})
|
|
49515
|
+
_meta: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
49516
|
+
});
|
|
49508
49517
|
var ImageContentSchema = exports_external.object({
|
|
49509
49518
|
type: exports_external.literal("image"),
|
|
49510
49519
|
data: Base64Schema,
|
|
49511
49520
|
mimeType: exports_external.string(),
|
|
49512
|
-
_meta: exports_external.
|
|
49513
|
-
})
|
|
49521
|
+
_meta: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
49522
|
+
});
|
|
49514
49523
|
var AudioContentSchema = exports_external.object({
|
|
49515
49524
|
type: exports_external.literal("audio"),
|
|
49516
49525
|
data: Base64Schema,
|
|
49517
49526
|
mimeType: exports_external.string(),
|
|
49518
|
-
_meta: exports_external.
|
|
49519
|
-
})
|
|
49527
|
+
_meta: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
49528
|
+
});
|
|
49520
49529
|
var EmbeddedResourceSchema = exports_external.object({
|
|
49521
49530
|
type: exports_external.literal("resource"),
|
|
49522
49531
|
resource: exports_external.union([TextResourceContentsSchema, BlobResourceContentsSchema]),
|
|
49523
|
-
_meta: exports_external.
|
|
49524
|
-
})
|
|
49532
|
+
_meta: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
49533
|
+
});
|
|
49525
49534
|
var ResourceLinkSchema = ResourceSchema.extend({
|
|
49526
49535
|
type: exports_external.literal("resource_link")
|
|
49527
49536
|
});
|
|
@@ -49535,7 +49544,7 @@ var ContentBlockSchema = exports_external.union([
|
|
|
49535
49544
|
var PromptMessageSchema = exports_external.object({
|
|
49536
49545
|
role: exports_external.enum(["user", "assistant"]),
|
|
49537
49546
|
content: ContentBlockSchema
|
|
49538
|
-
})
|
|
49547
|
+
});
|
|
49539
49548
|
var GetPromptResultSchema = ResultSchema.extend({
|
|
49540
49549
|
description: exports_external.optional(exports_external.string()),
|
|
49541
49550
|
messages: exports_external.array(PromptMessageSchema)
|
|
@@ -49544,26 +49553,27 @@ var PromptListChangedNotificationSchema = NotificationSchema.extend({
|
|
|
49544
49553
|
method: exports_external.literal("notifications/prompts/list_changed")
|
|
49545
49554
|
});
|
|
49546
49555
|
var ToolAnnotationsSchema = exports_external.object({
|
|
49547
|
-
title: exports_external.
|
|
49548
|
-
readOnlyHint: exports_external.
|
|
49549
|
-
destructiveHint: exports_external.
|
|
49550
|
-
idempotentHint: exports_external.
|
|
49551
|
-
openWorldHint: exports_external.
|
|
49552
|
-
})
|
|
49556
|
+
title: exports_external.string().optional(),
|
|
49557
|
+
readOnlyHint: exports_external.boolean().optional(),
|
|
49558
|
+
destructiveHint: exports_external.boolean().optional(),
|
|
49559
|
+
idempotentHint: exports_external.boolean().optional(),
|
|
49560
|
+
openWorldHint: exports_external.boolean().optional()
|
|
49561
|
+
});
|
|
49553
49562
|
var ToolSchema = BaseMetadataSchema.extend({
|
|
49554
|
-
description: exports_external.
|
|
49563
|
+
description: exports_external.string().optional(),
|
|
49555
49564
|
inputSchema: exports_external.object({
|
|
49556
49565
|
type: exports_external.literal("object"),
|
|
49557
|
-
properties: exports_external.
|
|
49566
|
+
properties: exports_external.record(exports_external.string(), AssertObjectSchema).optional(),
|
|
49558
49567
|
required: exports_external.optional(exports_external.array(exports_external.string()))
|
|
49559
|
-
})
|
|
49560
|
-
outputSchema: exports_external.
|
|
49568
|
+
}),
|
|
49569
|
+
outputSchema: exports_external.object({
|
|
49561
49570
|
type: exports_external.literal("object"),
|
|
49562
|
-
properties: exports_external.
|
|
49563
|
-
required: exports_external.optional(exports_external.array(exports_external.string()))
|
|
49564
|
-
|
|
49571
|
+
properties: exports_external.record(exports_external.string(), AssertObjectSchema).optional(),
|
|
49572
|
+
required: exports_external.optional(exports_external.array(exports_external.string())),
|
|
49573
|
+
additionalProperties: exports_external.optional(exports_external.boolean())
|
|
49574
|
+
}).optional(),
|
|
49565
49575
|
annotations: exports_external.optional(ToolAnnotationsSchema),
|
|
49566
|
-
_meta: exports_external.
|
|
49576
|
+
_meta: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
49567
49577
|
}).merge(IconsSchema);
|
|
49568
49578
|
var ListToolsRequestSchema = PaginatedRequestSchema.extend({
|
|
49569
49579
|
method: exports_external.literal("tools/list")
|
|
@@ -49573,62 +49583,66 @@ var ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
|
49573
49583
|
});
|
|
49574
49584
|
var CallToolResultSchema = ResultSchema.extend({
|
|
49575
49585
|
content: exports_external.array(ContentBlockSchema).default([]),
|
|
49576
|
-
structuredContent: exports_external.
|
|
49586
|
+
structuredContent: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
|
|
49577
49587
|
isError: exports_external.optional(exports_external.boolean())
|
|
49578
49588
|
});
|
|
49579
49589
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
49580
49590
|
toolResult: exports_external.unknown()
|
|
49581
49591
|
}));
|
|
49592
|
+
var CallToolRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
49593
|
+
name: exports_external.string(),
|
|
49594
|
+
arguments: exports_external.optional(exports_external.record(exports_external.string(), exports_external.unknown()))
|
|
49595
|
+
});
|
|
49582
49596
|
var CallToolRequestSchema = RequestSchema.extend({
|
|
49583
49597
|
method: exports_external.literal("tools/call"),
|
|
49584
|
-
params:
|
|
49585
|
-
name: exports_external.string(),
|
|
49586
|
-
arguments: exports_external.optional(exports_external.record(exports_external.unknown()))
|
|
49587
|
-
})
|
|
49598
|
+
params: CallToolRequestParamsSchema
|
|
49588
49599
|
});
|
|
49589
49600
|
var ToolListChangedNotificationSchema = NotificationSchema.extend({
|
|
49590
49601
|
method: exports_external.literal("notifications/tools/list_changed")
|
|
49591
49602
|
});
|
|
49592
49603
|
var LoggingLevelSchema = exports_external.enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
49604
|
+
var SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
49605
|
+
level: LoggingLevelSchema
|
|
49606
|
+
});
|
|
49593
49607
|
var SetLevelRequestSchema = RequestSchema.extend({
|
|
49594
49608
|
method: exports_external.literal("logging/setLevel"),
|
|
49595
|
-
params:
|
|
49596
|
-
|
|
49597
|
-
|
|
49609
|
+
params: SetLevelRequestParamsSchema
|
|
49610
|
+
});
|
|
49611
|
+
var LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
|
|
49612
|
+
level: LoggingLevelSchema,
|
|
49613
|
+
logger: exports_external.string().optional(),
|
|
49614
|
+
data: exports_external.unknown()
|
|
49598
49615
|
});
|
|
49599
49616
|
var LoggingMessageNotificationSchema = NotificationSchema.extend({
|
|
49600
49617
|
method: exports_external.literal("notifications/message"),
|
|
49601
|
-
params:
|
|
49602
|
-
level: LoggingLevelSchema,
|
|
49603
|
-
logger: exports_external.optional(exports_external.string()),
|
|
49604
|
-
data: exports_external.unknown()
|
|
49605
|
-
})
|
|
49618
|
+
params: LoggingMessageNotificationParamsSchema
|
|
49606
49619
|
});
|
|
49607
49620
|
var ModelHintSchema = exports_external.object({
|
|
49608
49621
|
name: exports_external.string().optional()
|
|
49609
|
-
})
|
|
49622
|
+
});
|
|
49610
49623
|
var ModelPreferencesSchema = exports_external.object({
|
|
49611
49624
|
hints: exports_external.optional(exports_external.array(ModelHintSchema)),
|
|
49612
49625
|
costPriority: exports_external.optional(exports_external.number().min(0).max(1)),
|
|
49613
49626
|
speedPriority: exports_external.optional(exports_external.number().min(0).max(1)),
|
|
49614
49627
|
intelligencePriority: exports_external.optional(exports_external.number().min(0).max(1))
|
|
49615
|
-
})
|
|
49628
|
+
});
|
|
49616
49629
|
var SamplingMessageSchema = exports_external.object({
|
|
49617
49630
|
role: exports_external.enum(["user", "assistant"]),
|
|
49618
49631
|
content: exports_external.union([TextContentSchema, ImageContentSchema, AudioContentSchema])
|
|
49619
|
-
})
|
|
49632
|
+
});
|
|
49633
|
+
var CreateMessageRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
49634
|
+
messages: exports_external.array(SamplingMessageSchema),
|
|
49635
|
+
modelPreferences: ModelPreferencesSchema.optional(),
|
|
49636
|
+
systemPrompt: exports_external.string().optional(),
|
|
49637
|
+
includeContext: exports_external.enum(["none", "thisServer", "allServers"]).optional(),
|
|
49638
|
+
temperature: exports_external.number().optional(),
|
|
49639
|
+
maxTokens: exports_external.number().int(),
|
|
49640
|
+
stopSequences: exports_external.array(exports_external.string()).optional(),
|
|
49641
|
+
metadata: AssertObjectSchema.optional()
|
|
49642
|
+
});
|
|
49620
49643
|
var CreateMessageRequestSchema = RequestSchema.extend({
|
|
49621
49644
|
method: exports_external.literal("sampling/createMessage"),
|
|
49622
|
-
params:
|
|
49623
|
-
messages: exports_external.array(SamplingMessageSchema),
|
|
49624
|
-
systemPrompt: exports_external.optional(exports_external.string()),
|
|
49625
|
-
includeContext: exports_external.optional(exports_external.enum(["none", "thisServer", "allServers"])),
|
|
49626
|
-
temperature: exports_external.optional(exports_external.number()),
|
|
49627
|
-
maxTokens: exports_external.number().int(),
|
|
49628
|
-
stopSequences: exports_external.optional(exports_external.array(exports_external.string())),
|
|
49629
|
-
metadata: exports_external.optional(exports_external.object({}).passthrough()),
|
|
49630
|
-
modelPreferences: exports_external.optional(ModelPreferencesSchema)
|
|
49631
|
-
})
|
|
49645
|
+
params: CreateMessageRequestParamsSchema
|
|
49632
49646
|
});
|
|
49633
49647
|
var CreateMessageResultSchema = ResultSchema.extend({
|
|
49634
49648
|
model: exports_external.string(),
|
|
@@ -49638,69 +49652,130 @@ var CreateMessageResultSchema = ResultSchema.extend({
|
|
|
49638
49652
|
});
|
|
49639
49653
|
var BooleanSchemaSchema = exports_external.object({
|
|
49640
49654
|
type: exports_external.literal("boolean"),
|
|
49641
|
-
title: exports_external.
|
|
49642
|
-
description: exports_external.
|
|
49643
|
-
default: exports_external.
|
|
49644
|
-
})
|
|
49655
|
+
title: exports_external.string().optional(),
|
|
49656
|
+
description: exports_external.string().optional(),
|
|
49657
|
+
default: exports_external.boolean().optional()
|
|
49658
|
+
});
|
|
49645
49659
|
var StringSchemaSchema = exports_external.object({
|
|
49646
49660
|
type: exports_external.literal("string"),
|
|
49647
|
-
title: exports_external.
|
|
49648
|
-
description: exports_external.
|
|
49649
|
-
minLength: exports_external.
|
|
49650
|
-
maxLength: exports_external.
|
|
49651
|
-
format: exports_external.
|
|
49652
|
-
|
|
49661
|
+
title: exports_external.string().optional(),
|
|
49662
|
+
description: exports_external.string().optional(),
|
|
49663
|
+
minLength: exports_external.number().optional(),
|
|
49664
|
+
maxLength: exports_external.number().optional(),
|
|
49665
|
+
format: exports_external.enum(["email", "uri", "date", "date-time"]).optional(),
|
|
49666
|
+
default: exports_external.string().optional()
|
|
49667
|
+
});
|
|
49653
49668
|
var NumberSchemaSchema = exports_external.object({
|
|
49654
49669
|
type: exports_external.enum(["number", "integer"]),
|
|
49655
|
-
title: exports_external.
|
|
49656
|
-
description: exports_external.
|
|
49657
|
-
minimum: exports_external.
|
|
49658
|
-
maximum: exports_external.
|
|
49659
|
-
|
|
49660
|
-
|
|
49670
|
+
title: exports_external.string().optional(),
|
|
49671
|
+
description: exports_external.string().optional(),
|
|
49672
|
+
minimum: exports_external.number().optional(),
|
|
49673
|
+
maximum: exports_external.number().optional(),
|
|
49674
|
+
default: exports_external.number().optional()
|
|
49675
|
+
});
|
|
49676
|
+
var UntitledSingleSelectEnumSchemaSchema = exports_external.object({
|
|
49661
49677
|
type: exports_external.literal("string"),
|
|
49662
|
-
title: exports_external.
|
|
49663
|
-
description: exports_external.
|
|
49678
|
+
title: exports_external.string().optional(),
|
|
49679
|
+
description: exports_external.string().optional(),
|
|
49664
49680
|
enum: exports_external.array(exports_external.string()),
|
|
49665
|
-
|
|
49666
|
-
})
|
|
49667
|
-
var
|
|
49681
|
+
default: exports_external.string().optional()
|
|
49682
|
+
});
|
|
49683
|
+
var TitledSingleSelectEnumSchemaSchema = exports_external.object({
|
|
49684
|
+
type: exports_external.literal("string"),
|
|
49685
|
+
title: exports_external.string().optional(),
|
|
49686
|
+
description: exports_external.string().optional(),
|
|
49687
|
+
oneOf: exports_external.array(exports_external.object({
|
|
49688
|
+
const: exports_external.string(),
|
|
49689
|
+
title: exports_external.string()
|
|
49690
|
+
})),
|
|
49691
|
+
default: exports_external.string().optional()
|
|
49692
|
+
});
|
|
49693
|
+
var LegacyTitledEnumSchemaSchema = exports_external.object({
|
|
49694
|
+
type: exports_external.literal("string"),
|
|
49695
|
+
title: exports_external.string().optional(),
|
|
49696
|
+
description: exports_external.string().optional(),
|
|
49697
|
+
enum: exports_external.array(exports_external.string()),
|
|
49698
|
+
enumNames: exports_external.array(exports_external.string()).optional(),
|
|
49699
|
+
default: exports_external.string().optional()
|
|
49700
|
+
});
|
|
49701
|
+
var SingleSelectEnumSchemaSchema = exports_external.union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]);
|
|
49702
|
+
var UntitledMultiSelectEnumSchemaSchema = exports_external.object({
|
|
49703
|
+
type: exports_external.literal("array"),
|
|
49704
|
+
title: exports_external.string().optional(),
|
|
49705
|
+
description: exports_external.string().optional(),
|
|
49706
|
+
minItems: exports_external.number().optional(),
|
|
49707
|
+
maxItems: exports_external.number().optional(),
|
|
49708
|
+
items: exports_external.object({
|
|
49709
|
+
type: exports_external.literal("string"),
|
|
49710
|
+
enum: exports_external.array(exports_external.string())
|
|
49711
|
+
}),
|
|
49712
|
+
default: exports_external.array(exports_external.string()).optional()
|
|
49713
|
+
});
|
|
49714
|
+
var TitledMultiSelectEnumSchemaSchema = exports_external.object({
|
|
49715
|
+
type: exports_external.literal("array"),
|
|
49716
|
+
title: exports_external.string().optional(),
|
|
49717
|
+
description: exports_external.string().optional(),
|
|
49718
|
+
minItems: exports_external.number().optional(),
|
|
49719
|
+
maxItems: exports_external.number().optional(),
|
|
49720
|
+
items: exports_external.object({
|
|
49721
|
+
anyOf: exports_external.array(exports_external.object({
|
|
49722
|
+
const: exports_external.string(),
|
|
49723
|
+
title: exports_external.string()
|
|
49724
|
+
}))
|
|
49725
|
+
}),
|
|
49726
|
+
default: exports_external.array(exports_external.string()).optional()
|
|
49727
|
+
});
|
|
49728
|
+
var MultiSelectEnumSchemaSchema = exports_external.union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]);
|
|
49729
|
+
var EnumSchemaSchema = exports_external.union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]);
|
|
49730
|
+
var PrimitiveSchemaDefinitionSchema = exports_external.union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]);
|
|
49731
|
+
var ElicitRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
49732
|
+
message: exports_external.string(),
|
|
49733
|
+
requestedSchema: exports_external.object({
|
|
49734
|
+
type: exports_external.literal("object"),
|
|
49735
|
+
properties: exports_external.record(exports_external.string(), PrimitiveSchemaDefinitionSchema),
|
|
49736
|
+
required: exports_external.array(exports_external.string()).optional()
|
|
49737
|
+
})
|
|
49738
|
+
});
|
|
49668
49739
|
var ElicitRequestSchema = RequestSchema.extend({
|
|
49669
49740
|
method: exports_external.literal("elicitation/create"),
|
|
49670
|
-
params:
|
|
49671
|
-
message: exports_external.string(),
|
|
49672
|
-
requestedSchema: exports_external.object({
|
|
49673
|
-
type: exports_external.literal("object"),
|
|
49674
|
-
properties: exports_external.record(exports_external.string(), PrimitiveSchemaDefinitionSchema),
|
|
49675
|
-
required: exports_external.optional(exports_external.array(exports_external.string()))
|
|
49676
|
-
}).passthrough()
|
|
49677
|
-
})
|
|
49741
|
+
params: ElicitRequestParamsSchema
|
|
49678
49742
|
});
|
|
49679
49743
|
var ElicitResultSchema = ResultSchema.extend({
|
|
49680
49744
|
action: exports_external.enum(["accept", "decline", "cancel"]),
|
|
49681
|
-
content: exports_external.
|
|
49745
|
+
content: exports_external.record(exports_external.union([exports_external.string(), exports_external.number(), exports_external.boolean(), exports_external.array(exports_external.string())])).optional()
|
|
49682
49746
|
});
|
|
49683
49747
|
var ResourceTemplateReferenceSchema = exports_external.object({
|
|
49684
49748
|
type: exports_external.literal("ref/resource"),
|
|
49685
49749
|
uri: exports_external.string()
|
|
49686
|
-
})
|
|
49750
|
+
});
|
|
49687
49751
|
var PromptReferenceSchema = exports_external.object({
|
|
49688
49752
|
type: exports_external.literal("ref/prompt"),
|
|
49689
49753
|
name: exports_external.string()
|
|
49690
|
-
})
|
|
49754
|
+
});
|
|
49755
|
+
var CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
49756
|
+
ref: exports_external.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
|
49757
|
+
argument: exports_external.object({
|
|
49758
|
+
name: exports_external.string(),
|
|
49759
|
+
value: exports_external.string()
|
|
49760
|
+
}),
|
|
49761
|
+
context: exports_external.object({
|
|
49762
|
+
arguments: exports_external.record(exports_external.string(), exports_external.string()).optional()
|
|
49763
|
+
}).optional()
|
|
49764
|
+
});
|
|
49691
49765
|
var CompleteRequestSchema = RequestSchema.extend({
|
|
49692
49766
|
method: exports_external.literal("completion/complete"),
|
|
49693
|
-
params:
|
|
49694
|
-
ref: exports_external.union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
|
|
49695
|
-
argument: exports_external.object({
|
|
49696
|
-
name: exports_external.string(),
|
|
49697
|
-
value: exports_external.string()
|
|
49698
|
-
}).passthrough(),
|
|
49699
|
-
context: exports_external.optional(exports_external.object({
|
|
49700
|
-
arguments: exports_external.optional(exports_external.record(exports_external.string(), exports_external.string()))
|
|
49701
|
-
}))
|
|
49702
|
-
})
|
|
49767
|
+
params: CompleteRequestParamsSchema
|
|
49703
49768
|
});
|
|
49769
|
+
function assertCompleteRequestPrompt(request) {
|
|
49770
|
+
if (request.params.ref.type !== "ref/prompt") {
|
|
49771
|
+
throw new TypeError(`Expected CompleteRequestPrompt, but got ${request.params.ref.type}`);
|
|
49772
|
+
}
|
|
49773
|
+
}
|
|
49774
|
+
function assertCompleteRequestResourceTemplate(request) {
|
|
49775
|
+
if (request.params.ref.type !== "ref/resource") {
|
|
49776
|
+
throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${request.params.ref.type}`);
|
|
49777
|
+
}
|
|
49778
|
+
}
|
|
49704
49779
|
var CompleteResultSchema = ResultSchema.extend({
|
|
49705
49780
|
completion: exports_external.object({
|
|
49706
49781
|
values: exports_external.array(exports_external.string()).max(100),
|
|
@@ -49710,9 +49785,9 @@ var CompleteResultSchema = ResultSchema.extend({
|
|
|
49710
49785
|
});
|
|
49711
49786
|
var RootSchema = exports_external.object({
|
|
49712
49787
|
uri: exports_external.string().startsWith("file://"),
|
|
49713
|
-
name: exports_external.
|
|
49714
|
-
_meta: exports_external.
|
|
49715
|
-
})
|
|
49788
|
+
name: exports_external.string().optional(),
|
|
49789
|
+
_meta: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
49790
|
+
});
|
|
49716
49791
|
var ListRootsRequestSchema = RequestSchema.extend({
|
|
49717
49792
|
method: exports_external.literal("roots/list")
|
|
49718
49793
|
});
|
|
@@ -49776,7 +49851,7 @@ class McpError extends Error {
|
|
|
49776
49851
|
}
|
|
49777
49852
|
}
|
|
49778
49853
|
|
|
49779
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
49854
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.22.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
49780
49855
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
49781
49856
|
|
|
49782
49857
|
class Protocol {
|
|
@@ -50108,18 +50183,27 @@ class Protocol {
|
|
|
50108
50183
|
this._notificationHandlers.delete(method);
|
|
50109
50184
|
}
|
|
50110
50185
|
}
|
|
50186
|
+
function isPlainObject(value) {
|
|
50187
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
50188
|
+
}
|
|
50111
50189
|
function mergeCapabilities(base, additional) {
|
|
50112
|
-
|
|
50113
|
-
|
|
50114
|
-
|
|
50190
|
+
const result = { ...base };
|
|
50191
|
+
for (const key in additional) {
|
|
50192
|
+
const k = key;
|
|
50193
|
+
const addValue = additional[k];
|
|
50194
|
+
if (addValue === undefined)
|
|
50195
|
+
continue;
|
|
50196
|
+
const baseValue = result[k];
|
|
50197
|
+
if (isPlainObject(baseValue) && isPlainObject(addValue)) {
|
|
50198
|
+
result[k] = { ...baseValue, ...addValue };
|
|
50115
50199
|
} else {
|
|
50116
|
-
|
|
50200
|
+
result[k] = addValue;
|
|
50117
50201
|
}
|
|
50118
|
-
|
|
50119
|
-
|
|
50202
|
+
}
|
|
50203
|
+
return result;
|
|
50120
50204
|
}
|
|
50121
50205
|
|
|
50122
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
50206
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.22.0/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
50123
50207
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
50124
50208
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
50125
50209
|
function createDefaultAjvInstance() {
|
|
@@ -50160,7 +50244,7 @@ class AjvJsonSchemaValidator {
|
|
|
50160
50244
|
}
|
|
50161
50245
|
}
|
|
50162
50246
|
|
|
50163
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
50247
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.22.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
50164
50248
|
class Server extends Protocol {
|
|
50165
50249
|
constructor(_serverInfo, options) {
|
|
50166
50250
|
var _a, _b;
|
|
@@ -50252,9 +50336,9 @@ class Server extends Protocol {
|
|
|
50252
50336
|
}
|
|
50253
50337
|
assertRequestHandlerCapability(method) {
|
|
50254
50338
|
switch (method) {
|
|
50255
|
-
case "
|
|
50256
|
-
if (!this._capabilities.
|
|
50257
|
-
throw new Error(`Server does not support
|
|
50339
|
+
case "completion/complete":
|
|
50340
|
+
if (!this._capabilities.completions) {
|
|
50341
|
+
throw new Error(`Server does not support completions (required for ${method})`);
|
|
50258
50342
|
}
|
|
50259
50343
|
break;
|
|
50260
50344
|
case "logging/setLevel":
|
|
@@ -51596,7 +51680,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
51596
51680
|
}
|
|
51597
51681
|
return combined;
|
|
51598
51682
|
};
|
|
51599
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
51683
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.22.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
51600
51684
|
var McpZodTypeKind;
|
|
51601
51685
|
(function(McpZodTypeKind2) {
|
|
51602
51686
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
@@ -51649,7 +51733,65 @@ function processCreateParams2(params) {
|
|
|
51649
51733
|
return { errorMap: customMap, description };
|
|
51650
51734
|
}
|
|
51651
51735
|
|
|
51652
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
51736
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.22.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
51737
|
+
var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
|
|
51738
|
+
function validateToolName(name) {
|
|
51739
|
+
const warnings = [];
|
|
51740
|
+
if (name.length === 0) {
|
|
51741
|
+
return {
|
|
51742
|
+
isValid: false,
|
|
51743
|
+
warnings: ["Tool name cannot be empty"]
|
|
51744
|
+
};
|
|
51745
|
+
}
|
|
51746
|
+
if (name.length > 128) {
|
|
51747
|
+
return {
|
|
51748
|
+
isValid: false,
|
|
51749
|
+
warnings: [`Tool name exceeds maximum length of 128 characters (current: ${name.length})`]
|
|
51750
|
+
};
|
|
51751
|
+
}
|
|
51752
|
+
if (name.includes(" ")) {
|
|
51753
|
+
warnings.push("Tool name contains spaces, which may cause parsing issues");
|
|
51754
|
+
}
|
|
51755
|
+
if (name.includes(",")) {
|
|
51756
|
+
warnings.push("Tool name contains commas, which may cause parsing issues");
|
|
51757
|
+
}
|
|
51758
|
+
if (name.startsWith("-") || name.endsWith("-")) {
|
|
51759
|
+
warnings.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts");
|
|
51760
|
+
}
|
|
51761
|
+
if (name.startsWith(".") || name.endsWith(".")) {
|
|
51762
|
+
warnings.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts");
|
|
51763
|
+
}
|
|
51764
|
+
if (!TOOL_NAME_REGEX.test(name)) {
|
|
51765
|
+
const invalidChars = name.split("").filter((char) => !/[A-Za-z0-9._-]/.test(char)).filter((char, index, arr) => arr.indexOf(char) === index);
|
|
51766
|
+
warnings.push(`Tool name contains invalid characters: ${invalidChars.map((c) => `"${c}"`).join(", ")}`, "Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)");
|
|
51767
|
+
return {
|
|
51768
|
+
isValid: false,
|
|
51769
|
+
warnings
|
|
51770
|
+
};
|
|
51771
|
+
}
|
|
51772
|
+
return {
|
|
51773
|
+
isValid: true,
|
|
51774
|
+
warnings
|
|
51775
|
+
};
|
|
51776
|
+
}
|
|
51777
|
+
function issueToolNameWarning(name, warnings) {
|
|
51778
|
+
if (warnings.length > 0) {
|
|
51779
|
+
console.warn(`Tool name validation warning for "${name}":`);
|
|
51780
|
+
for (const warning of warnings) {
|
|
51781
|
+
console.warn(` - ${warning}`);
|
|
51782
|
+
}
|
|
51783
|
+
console.warn("Tool registration will proceed, but this may cause compatibility issues.");
|
|
51784
|
+
console.warn("Consider updating the tool name to conform to the MCP tool naming standard.");
|
|
51785
|
+
console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.");
|
|
51786
|
+
}
|
|
51787
|
+
}
|
|
51788
|
+
function validateAndWarnToolName(name) {
|
|
51789
|
+
const result = validateToolName(name);
|
|
51790
|
+
issueToolNameWarning(name, result.warnings);
|
|
51791
|
+
return result.isValid;
|
|
51792
|
+
}
|
|
51793
|
+
|
|
51794
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.22.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
51653
51795
|
class McpServer {
|
|
51654
51796
|
constructor(serverInfo, options) {
|
|
51655
51797
|
this._registeredResources = {};
|
|
@@ -51761,8 +51903,10 @@ class McpServer {
|
|
|
51761
51903
|
this.server.setRequestHandler(CompleteRequestSchema, async (request) => {
|
|
51762
51904
|
switch (request.params.ref.type) {
|
|
51763
51905
|
case "ref/prompt":
|
|
51906
|
+
assertCompleteRequestPrompt(request);
|
|
51764
51907
|
return this.handlePromptCompletion(request, request.params.ref);
|
|
51765
51908
|
case "ref/resource":
|
|
51909
|
+
assertCompleteRequestResourceTemplate(request);
|
|
51766
51910
|
return this.handleResourceCompletion(request, request.params.ref);
|
|
51767
51911
|
default:
|
|
51768
51912
|
throw new McpError(ErrorCode.InvalidParams, `Invalid completion reference: ${request.params.ref}`);
|
|
@@ -52050,11 +52194,12 @@ class McpServer {
|
|
|
52050
52194
|
return registeredPrompt;
|
|
52051
52195
|
}
|
|
52052
52196
|
_createRegisteredTool(name, title, description, inputSchema, outputSchema, annotations, _meta, callback) {
|
|
52197
|
+
validateAndWarnToolName(name);
|
|
52053
52198
|
const registeredTool = {
|
|
52054
52199
|
title,
|
|
52055
52200
|
description,
|
|
52056
|
-
inputSchema:
|
|
52057
|
-
outputSchema:
|
|
52201
|
+
inputSchema: getZodSchemaObject(inputSchema),
|
|
52202
|
+
outputSchema: getZodSchemaObject(outputSchema),
|
|
52058
52203
|
annotations,
|
|
52059
52204
|
_meta,
|
|
52060
52205
|
callback,
|
|
@@ -52064,6 +52209,9 @@ class McpServer {
|
|
|
52064
52209
|
remove: () => registeredTool.update({ name: null }),
|
|
52065
52210
|
update: (updates) => {
|
|
52066
52211
|
if (typeof updates.name !== "undefined" && updates.name !== name) {
|
|
52212
|
+
if (typeof updates.name === "string") {
|
|
52213
|
+
validateAndWarnToolName(updates.name);
|
|
52214
|
+
}
|
|
52067
52215
|
delete this._registeredTools[name];
|
|
52068
52216
|
if (updates.name)
|
|
52069
52217
|
this._registeredTools[updates.name] = registeredTool;
|
|
@@ -52185,6 +52333,15 @@ function isZodRawShape(obj) {
|
|
|
52185
52333
|
function isZodTypeLike(value) {
|
|
52186
52334
|
return value !== null && typeof value === "object" && "parse" in value && typeof value.parse === "function" && "safeParse" in value && typeof value.safeParse === "function";
|
|
52187
52335
|
}
|
|
52336
|
+
function getZodSchemaObject(schema) {
|
|
52337
|
+
if (!schema) {
|
|
52338
|
+
return;
|
|
52339
|
+
}
|
|
52340
|
+
if (isZodRawShape(schema)) {
|
|
52341
|
+
return exports_external.object(schema);
|
|
52342
|
+
}
|
|
52343
|
+
return schema;
|
|
52344
|
+
}
|
|
52188
52345
|
function promptArgumentsFromSchema(schema) {
|
|
52189
52346
|
return Object.entries(schema.shape).map(([name, field]) => ({
|
|
52190
52347
|
name,
|
|
@@ -52208,10 +52365,10 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
52208
52365
|
}
|
|
52209
52366
|
};
|
|
52210
52367
|
|
|
52211
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
52368
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.22.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
52212
52369
|
import process2 from "node:process";
|
|
52213
52370
|
|
|
52214
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
52371
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.22.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
52215
52372
|
class ReadBuffer {
|
|
52216
52373
|
append(chunk) {
|
|
52217
52374
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -52241,7 +52398,7 @@ function serializeMessage(message) {
|
|
|
52241
52398
|
`;
|
|
52242
52399
|
}
|
|
52243
52400
|
|
|
52244
|
-
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.
|
|
52401
|
+
// ../../node_modules/.bun/@modelcontextprotocol+sdk@1.22.0/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
52245
52402
|
class StdioServerTransport {
|
|
52246
52403
|
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
52247
52404
|
this._stdin = _stdin;
|
|
@@ -52968,7 +53125,7 @@ __export(exports_util, {
|
|
|
52968
53125
|
jsonStringifyReplacer: () => jsonStringifyReplacer,
|
|
52969
53126
|
joinValues: () => joinValues,
|
|
52970
53127
|
issue: () => issue,
|
|
52971
|
-
isPlainObject: () =>
|
|
53128
|
+
isPlainObject: () => isPlainObject2,
|
|
52972
53129
|
isObject: () => isObject,
|
|
52973
53130
|
hexToUint8Array: () => hexToUint8Array,
|
|
52974
53131
|
getSizableOrigin: () => getSizableOrigin,
|
|
@@ -53150,7 +53307,7 @@ var allowsEval = cached(() => {
|
|
|
53150
53307
|
return false;
|
|
53151
53308
|
}
|
|
53152
53309
|
});
|
|
53153
|
-
function
|
|
53310
|
+
function isPlainObject2(o) {
|
|
53154
53311
|
if (isObject(o) === false)
|
|
53155
53312
|
return false;
|
|
53156
53313
|
const ctor = o.constructor;
|
|
@@ -53165,7 +53322,7 @@ function isPlainObject(o) {
|
|
|
53165
53322
|
return true;
|
|
53166
53323
|
}
|
|
53167
53324
|
function shallowClone(o) {
|
|
53168
|
-
if (
|
|
53325
|
+
if (isPlainObject2(o))
|
|
53169
53326
|
return { ...o };
|
|
53170
53327
|
if (Array.isArray(o))
|
|
53171
53328
|
return [...o];
|
|
@@ -53348,7 +53505,7 @@ function omit(schema, mask) {
|
|
|
53348
53505
|
return clone(schema, def);
|
|
53349
53506
|
}
|
|
53350
53507
|
function extend(schema, shape) {
|
|
53351
|
-
if (!
|
|
53508
|
+
if (!isPlainObject2(shape)) {
|
|
53352
53509
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
53353
53510
|
}
|
|
53354
53511
|
const checks = schema._zod.def.checks;
|
|
@@ -53367,7 +53524,7 @@ function extend(schema, shape) {
|
|
|
53367
53524
|
return clone(schema, def);
|
|
53368
53525
|
}
|
|
53369
53526
|
function safeExtend(schema, shape) {
|
|
53370
|
-
if (!
|
|
53527
|
+
if (!isPlainObject2(shape)) {
|
|
53371
53528
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
53372
53529
|
}
|
|
53373
53530
|
const def = {
|
|
@@ -55524,7 +55681,7 @@ function mergeValues2(a, b) {
|
|
|
55524
55681
|
if (a instanceof Date && b instanceof Date && +a === +b) {
|
|
55525
55682
|
return { valid: true, data: a };
|
|
55526
55683
|
}
|
|
55527
|
-
if (
|
|
55684
|
+
if (isPlainObject2(a) && isPlainObject2(b)) {
|
|
55528
55685
|
const bKeys = Object.keys(b);
|
|
55529
55686
|
const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
55530
55687
|
const newObj = { ...a, ...b };
|
|
@@ -55654,7 +55811,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
55654
55811
|
$ZodType.init(inst, def);
|
|
55655
55812
|
inst._zod.parse = (payload, ctx) => {
|
|
55656
55813
|
const input = payload.value;
|
|
55657
|
-
if (!
|
|
55814
|
+
if (!isPlainObject2(input)) {
|
|
55658
55815
|
payload.issues.push({
|
|
55659
55816
|
expected: "record",
|
|
55660
55817
|
code: "invalid_type",
|
|
@@ -66258,7 +66415,7 @@ minimatch.Minimatch = Minimatch;
|
|
|
66258
66415
|
minimatch.escape = escape2;
|
|
66259
66416
|
minimatch.unescape = unescape2;
|
|
66260
66417
|
|
|
66261
|
-
// ../../node_modules/.bun/glob@11.0
|
|
66418
|
+
// ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/glob.js
|
|
66262
66419
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
66263
66420
|
|
|
66264
66421
|
// ../../node_modules/.bun/lru-cache@11.2.2/node_modules/lru-cache/dist/esm/index.js
|
|
@@ -69363,7 +69520,7 @@ class PathScurryDarwin extends PathScurryPosix {
|
|
|
69363
69520
|
var Path = process.platform === "win32" ? PathWin32 : PathPosix;
|
|
69364
69521
|
var PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
|
|
69365
69522
|
|
|
69366
|
-
// ../../node_modules/.bun/glob@11.0
|
|
69523
|
+
// ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/pattern.js
|
|
69367
69524
|
var isPatternList = (pl) => pl.length >= 1;
|
|
69368
69525
|
var isGlobList = (gl) => gl.length >= 1;
|
|
69369
69526
|
|
|
@@ -69481,7 +69638,7 @@ class Pattern {
|
|
|
69481
69638
|
}
|
|
69482
69639
|
}
|
|
69483
69640
|
|
|
69484
|
-
// ../../node_modules/.bun/glob@11.0
|
|
69641
|
+
// ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/ignore.js
|
|
69485
69642
|
var defaultPlatform2 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
69486
69643
|
|
|
69487
69644
|
class Ignore {
|
|
@@ -69569,7 +69726,7 @@ class Ignore {
|
|
|
69569
69726
|
}
|
|
69570
69727
|
}
|
|
69571
69728
|
|
|
69572
|
-
// ../../node_modules/.bun/glob@11.0
|
|
69729
|
+
// ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/processor.js
|
|
69573
69730
|
class HasWalkedCache {
|
|
69574
69731
|
store;
|
|
69575
69732
|
constructor(store = new Map) {
|
|
@@ -69787,7 +69944,7 @@ class Processor {
|
|
|
69787
69944
|
}
|
|
69788
69945
|
}
|
|
69789
69946
|
|
|
69790
|
-
// ../../node_modules/.bun/glob@11.0
|
|
69947
|
+
// ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/walker.js
|
|
69791
69948
|
var makeIgnore = (ignore, opts) => typeof ignore === "string" ? new Ignore([ignore], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore;
|
|
69792
69949
|
|
|
69793
69950
|
class GlobUtil {
|
|
@@ -70114,7 +70271,7 @@ class GlobStream extends GlobUtil {
|
|
|
70114
70271
|
}
|
|
70115
70272
|
}
|
|
70116
70273
|
|
|
70117
|
-
// ../../node_modules/.bun/glob@11.0
|
|
70274
|
+
// ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/glob.js
|
|
70118
70275
|
var defaultPlatform3 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
|
|
70119
70276
|
|
|
70120
70277
|
class Glob {
|
|
@@ -70288,7 +70445,7 @@ class Glob {
|
|
|
70288
70445
|
}
|
|
70289
70446
|
}
|
|
70290
70447
|
|
|
70291
|
-
// ../../node_modules/.bun/glob@11.0
|
|
70448
|
+
// ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/has-magic.js
|
|
70292
70449
|
var hasMagic = (pattern, options = {}) => {
|
|
70293
70450
|
if (!Array.isArray(pattern)) {
|
|
70294
70451
|
pattern = [pattern];
|
|
@@ -70300,7 +70457,7 @@ var hasMagic = (pattern, options = {}) => {
|
|
|
70300
70457
|
return false;
|
|
70301
70458
|
};
|
|
70302
70459
|
|
|
70303
|
-
// ../../node_modules/.bun/glob@11.0
|
|
70460
|
+
// ../../node_modules/.bun/glob@11.1.0/node_modules/glob/dist/esm/index.js
|
|
70304
70461
|
function globStreamSync(pattern, options = {}) {
|
|
70305
70462
|
return new Glob(pattern, options).streamSync();
|
|
70306
70463
|
}
|
|
@@ -73703,10 +73860,10 @@ function debugTimerEnd(name) {
|
|
|
73703
73860
|
console.timeEnd(name);
|
|
73704
73861
|
}
|
|
73705
73862
|
}
|
|
73706
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
73863
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/load-typedefs/collect-sources.js
|
|
73707
73864
|
var import_graphql26 = __toESM(require_graphql2(), 1);
|
|
73708
73865
|
|
|
73709
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
73866
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/utils/custom-loader.js
|
|
73710
73867
|
import { createRequire as createRequire2 } from "module";
|
|
73711
73868
|
import { join as joinPaths } from "path";
|
|
73712
73869
|
function getCustomLoaderByPath(path2, cwd) {
|
|
@@ -73737,7 +73894,7 @@ async function useCustomLoader(loaderPointer, cwd) {
|
|
|
73737
73894
|
return loader;
|
|
73738
73895
|
}
|
|
73739
73896
|
|
|
73740
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
73897
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/utils/helpers.js
|
|
73741
73898
|
var import_p_limit = __toESM(require_p_limit(), 1);
|
|
73742
73899
|
function stringToHash(str) {
|
|
73743
73900
|
let hash2 = 0;
|
|
@@ -73769,7 +73926,7 @@ function useLimit(concurrency) {
|
|
|
73769
73926
|
return import_p_limit.default(concurrency);
|
|
73770
73927
|
}
|
|
73771
73928
|
|
|
73772
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
73929
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/utils/queue.js
|
|
73773
73930
|
var import_p_limit2 = __toESM(require_p_limit(), 1);
|
|
73774
73931
|
function useQueue(options) {
|
|
73775
73932
|
const queue = [];
|
|
@@ -73784,7 +73941,7 @@ function useQueue(options) {
|
|
|
73784
73941
|
};
|
|
73785
73942
|
}
|
|
73786
73943
|
|
|
73787
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
73944
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/load-typedefs/load-file.js
|
|
73788
73945
|
import { env } from "process";
|
|
73789
73946
|
async function loadFile(pointer, options) {
|
|
73790
73947
|
debugTimerStart(`@graphql-tools/load: loadFile ${pointer}`);
|
|
@@ -73825,7 +73982,7 @@ async function loadFile(pointer, options) {
|
|
|
73825
73982
|
return results;
|
|
73826
73983
|
}
|
|
73827
73984
|
|
|
73828
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
73985
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/load-typedefs/collect-sources.js
|
|
73829
73986
|
var CONCURRENCY_LIMIT = 50;
|
|
73830
73987
|
async function collectSources({ pointerOptionMap, options }) {
|
|
73831
73988
|
debugTimerStart("@graphql-tools/load: collectSources");
|
|
@@ -73943,7 +74100,7 @@ function collectFallback({ queue, pointer, options, pointerOptions, addSource })
|
|
|
73943
74100
|
});
|
|
73944
74101
|
}
|
|
73945
74102
|
|
|
73946
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
74103
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/load-typedefs/options.js
|
|
73947
74104
|
import { cwd } from "process";
|
|
73948
74105
|
function applyDefaultOptions(options) {
|
|
73949
74106
|
options.cache = options.cache || {};
|
|
@@ -73951,7 +74108,7 @@ function applyDefaultOptions(options) {
|
|
|
73951
74108
|
options.sort = "sort" in options ? options.sort : true;
|
|
73952
74109
|
}
|
|
73953
74110
|
|
|
73954
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
74111
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/filter-document-kind.js
|
|
73955
74112
|
var import_graphql27 = __toESM(require_graphql2(), 1);
|
|
73956
74113
|
import { env as env2 } from "process";
|
|
73957
74114
|
var filterKind = (content, filterKinds) => {
|
|
@@ -73980,7 +74137,7 @@ var filterKind = (content, filterKinds) => {
|
|
|
73980
74137
|
return content;
|
|
73981
74138
|
};
|
|
73982
74139
|
|
|
73983
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
74140
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/load-typedefs/parse.js
|
|
73984
74141
|
function parseSource({ partialSource, options, pointerOptionMap, addValidSource }) {
|
|
73985
74142
|
if (partialSource) {
|
|
73986
74143
|
debugTimerStart(`@graphql-tools/load: parseSource ${partialSource.location}`);
|
|
@@ -74048,7 +74205,7 @@ function collectValidSources(input, addValidSource) {
|
|
|
74048
74205
|
}
|
|
74049
74206
|
}
|
|
74050
74207
|
|
|
74051
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
74208
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/utils/pointers.js
|
|
74052
74209
|
function normalizePointers(unnormalizedPointerOrPointers) {
|
|
74053
74210
|
debugTimerStart("@graphql-tools/load: normalizePointers");
|
|
74054
74211
|
const ignore = [];
|
|
@@ -74077,7 +74234,7 @@ function normalizePointers(unnormalizedPointerOrPointers) {
|
|
|
74077
74234
|
return { ignore, pointerOptionMap };
|
|
74078
74235
|
}
|
|
74079
74236
|
|
|
74080
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
74237
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/load-typedefs.js
|
|
74081
74238
|
var CONCURRENCY_LIMIT2 = 100;
|
|
74082
74239
|
async function loadTypedefs(pointerOrPointers, options) {
|
|
74083
74240
|
debugTimerStart("@graphql-tools/load: loadTypedefs");
|
|
@@ -74125,7 +74282,7 @@ class NoTypeDefinitionsFound extends Error {
|
|
|
74125
74282
|
}
|
|
74126
74283
|
}
|
|
74127
74284
|
|
|
74128
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
74285
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/schema.js
|
|
74129
74286
|
var import_graphql44 = __toESM(require_graphql2(), 1);
|
|
74130
74287
|
|
|
74131
74288
|
// ../../node_modules/.bun/@graphql-tools+schema@10.0.29+2e36366335d68c76/node_modules/@graphql-tools/schema/esm/assertResolversPresent.js
|
|
@@ -75450,12 +75607,12 @@ function mergeSchemas(config3) {
|
|
|
75450
75607
|
schemaExtensions: extractedSchemaExtensions
|
|
75451
75608
|
});
|
|
75452
75609
|
}
|
|
75453
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
75610
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/documents.js
|
|
75454
75611
|
var import_graphql43 = __toESM(require_graphql2(), 1);
|
|
75455
75612
|
var OPERATION_KINDS = [import_graphql43.Kind.OPERATION_DEFINITION, import_graphql43.Kind.FRAGMENT_DEFINITION];
|
|
75456
75613
|
var NON_OPERATION_KINDS = Object.keys(import_graphql43.Kind).reduce((prev, v) => [...prev, import_graphql43.Kind[v]], []).filter((v) => !OPERATION_KINDS.includes(v));
|
|
75457
75614
|
|
|
75458
|
-
// ../../node_modules/.bun/@graphql-tools+load@8.1.
|
|
75615
|
+
// ../../node_modules/.bun/@graphql-tools+load@8.1.6+2e36366335d68c76/node_modules/@graphql-tools/load/esm/schema.js
|
|
75459
75616
|
async function loadSchema(schemaPointers, options) {
|
|
75460
75617
|
const sources = await loadTypedefs(schemaPointers, {
|
|
75461
75618
|
...options,
|
|
@@ -75517,7 +75674,7 @@ function collectSchemaParts(sources) {
|
|
|
75517
75674
|
};
|
|
75518
75675
|
}
|
|
75519
75676
|
|
|
75520
|
-
// ../../node_modules/.bun/@graphql-tools+url-loader@9.0.
|
|
75677
|
+
// ../../node_modules/.bun/@graphql-tools+url-loader@9.0.4+261996cf13aeeaed/node_modules/@graphql-tools/url-loader/esm/index.js
|
|
75521
75678
|
var import_graphql54 = __toESM(require_graphql2(), 1);
|
|
75522
75679
|
var import_isomorphic_ws2 = __toESM(require_ws(), 1);
|
|
75523
75680
|
// ../../node_modules/.bun/@envelop+core@5.4.0/node_modules/@envelop/core/esm/document-string-map.js
|
|
@@ -77385,10 +77542,10 @@ function latest(contenders) {
|
|
|
77385
77542
|
});
|
|
77386
77543
|
}
|
|
77387
77544
|
|
|
77388
|
-
// ../../node_modules/.bun/@graphql-tools+executor-http@3.0.6+
|
|
77545
|
+
// ../../node_modules/.bun/@graphql-tools+executor-http@3.0.6+261996cf13aeeaed/node_modules/@graphql-tools/executor-http/dist/index.js
|
|
77389
77546
|
var import_graphql46 = __toESM(require_graphql2(), 1);
|
|
77390
77547
|
|
|
77391
|
-
// ../../node_modules/.bun/meros@1.3.2+
|
|
77548
|
+
// ../../node_modules/.bun/meros@1.3.2+4cbbb20073436eb8/node_modules/meros/browser/index.mjs
|
|
77392
77549
|
async function e(e2, t) {
|
|
77393
77550
|
if (!e2.ok || !e2.body || e2.bodyUsed)
|
|
77394
77551
|
return e2;
|
|
@@ -77438,7 +77595,7 @@ async function e(e2, t) {
|
|
|
77438
77595
|
}(e2.body, `--${l}`, t);
|
|
77439
77596
|
}
|
|
77440
77597
|
|
|
77441
|
-
// ../../node_modules/.bun/meros@1.3.2+
|
|
77598
|
+
// ../../node_modules/.bun/meros@1.3.2+4cbbb20073436eb8/node_modules/meros/node/index.mjs
|
|
77442
77599
|
async function e2(e3, t) {
|
|
77443
77600
|
let n = e3.headers["content-type"];
|
|
77444
77601
|
if (!n || !~n.indexOf("multipart/"))
|
|
@@ -77481,8 +77638,8 @@ async function e2(e3, t) {
|
|
|
77481
77638
|
}(e3, `--${i}`, t);
|
|
77482
77639
|
}
|
|
77483
77640
|
|
|
77484
|
-
// ../../node_modules/.bun/@graphql-tools+executor-http@3.0.6+
|
|
77485
|
-
function
|
|
77641
|
+
// ../../node_modules/.bun/@graphql-tools+executor-http@3.0.6+261996cf13aeeaed/node_modules/@graphql-tools/executor-http/dist/index.js
|
|
77642
|
+
function isPlainObject3(value) {
|
|
77486
77643
|
if (typeof value !== "object" || value === null) {
|
|
77487
77644
|
return false;
|
|
77488
77645
|
}
|
|
@@ -77505,7 +77662,7 @@ function extractFiles(value, isExtractable, path2 = "") {
|
|
|
77505
77662
|
return null;
|
|
77506
77663
|
}
|
|
77507
77664
|
const valueIsList = Array.isArray(value2) || typeof FileList !== "undefined" && value2 instanceof FileList;
|
|
77508
|
-
const valueIsPlainObject =
|
|
77665
|
+
const valueIsPlainObject = isPlainObject3(value2);
|
|
77509
77666
|
if (valueIsList || valueIsPlainObject) {
|
|
77510
77667
|
let clone2 = clones.get(value2);
|
|
77511
77668
|
const uncloned = !clone2;
|
|
@@ -82120,10 +82277,10 @@ function schemaFromExecutor(executor2, context, options) {
|
|
|
82120
82277
|
}), (introspection) => getSchemaFromIntrospection(introspection, options));
|
|
82121
82278
|
}
|
|
82122
82279
|
|
|
82123
|
-
// ../../node_modules/.bun/@graphql-tools+url-loader@9.0.
|
|
82280
|
+
// ../../node_modules/.bun/@graphql-tools+url-loader@9.0.4+261996cf13aeeaed/node_modules/@graphql-tools/url-loader/esm/defaultAsyncFetch.js
|
|
82124
82281
|
var defaultAsyncFetch = $fetch;
|
|
82125
82282
|
|
|
82126
|
-
// ../../node_modules/.bun/@graphql-tools+url-loader@9.0.
|
|
82283
|
+
// ../../node_modules/.bun/@graphql-tools+url-loader@9.0.4+261996cf13aeeaed/node_modules/@graphql-tools/url-loader/esm/defaultSyncFetch.js
|
|
82127
82284
|
var import_sync_fetch = __toESM(require_sync_fetch(), 1);
|
|
82128
82285
|
var defaultSyncFetch = (input, init) => {
|
|
82129
82286
|
if (typeof input === "string") {
|
|
@@ -82134,7 +82291,7 @@ var defaultSyncFetch = (input, init) => {
|
|
|
82134
82291
|
return import_sync_fetch.default(input, init);
|
|
82135
82292
|
};
|
|
82136
82293
|
|
|
82137
|
-
// ../../node_modules/.bun/@graphql-tools+url-loader@9.0.
|
|
82294
|
+
// ../../node_modules/.bun/@graphql-tools+url-loader@9.0.4+261996cf13aeeaed/node_modules/@graphql-tools/url-loader/esm/index.js
|
|
82138
82295
|
var asyncImport = (moduleName) => import(`${moduleName}`);
|
|
82139
82296
|
var syncImport = (moduleName) => __require(`${moduleName}`);
|
|
82140
82297
|
var SubscriptionProtocol;
|
|
@@ -83729,7 +83886,7 @@ var portalQueries = (server, env3) => {
|
|
|
83729
83886
|
var package_default = {
|
|
83730
83887
|
name: "@settlemint/sdk-mcp",
|
|
83731
83888
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
83732
|
-
version: "2.6.4-
|
|
83889
|
+
version: "2.6.4-prffd0842f",
|
|
83733
83890
|
type: "module",
|
|
83734
83891
|
private: false,
|
|
83735
83892
|
license: "FSL-1.1-MIT",
|
|
@@ -83769,11 +83926,11 @@ var package_default = {
|
|
|
83769
83926
|
},
|
|
83770
83927
|
dependencies: {
|
|
83771
83928
|
"@commander-js/extra-typings": "14.0.0",
|
|
83772
|
-
"@graphql-tools/load": "8.1.
|
|
83773
|
-
"@graphql-tools/url-loader": "9.0.
|
|
83774
|
-
"@modelcontextprotocol/sdk": "1.
|
|
83775
|
-
"@settlemint/sdk-js": "2.6.4-
|
|
83776
|
-
"@settlemint/sdk-utils": "2.6.4-
|
|
83929
|
+
"@graphql-tools/load": "8.1.6",
|
|
83930
|
+
"@graphql-tools/url-loader": "9.0.4",
|
|
83931
|
+
"@modelcontextprotocol/sdk": "1.22.0",
|
|
83932
|
+
"@settlemint/sdk-js": "2.6.4-prffd0842f",
|
|
83933
|
+
"@settlemint/sdk-utils": "2.6.4-prffd0842f",
|
|
83777
83934
|
commander: "14.0.2",
|
|
83778
83935
|
graphql: "16.12.0",
|
|
83779
83936
|
zod: "^4",
|
|
@@ -85109,7 +85266,7 @@ var isPromiseLikeValue = (value) => {
|
|
|
85109
85266
|
var casesExhausted = (value) => {
|
|
85110
85267
|
throw new Error(`Unhandled case: ${String(value)}`);
|
|
85111
85268
|
};
|
|
85112
|
-
var
|
|
85269
|
+
var isPlainObject4 = (value) => {
|
|
85113
85270
|
return typeof value === `object` && value !== null && !Array.isArray(value);
|
|
85114
85271
|
};
|
|
85115
85272
|
|
|
@@ -85154,7 +85311,7 @@ var parseGraphQLExecutionResult = (result) => {
|
|
|
85154
85311
|
_tag: `Batch`,
|
|
85155
85312
|
executionResults: result.map(parseExecutionResult)
|
|
85156
85313
|
};
|
|
85157
|
-
} else if (
|
|
85314
|
+
} else if (isPlainObject4(result)) {
|
|
85158
85315
|
return {
|
|
85159
85316
|
_tag: `Single`,
|
|
85160
85317
|
executionResult: parseExecutionResult(result)
|
|
@@ -85176,19 +85333,19 @@ var parseExecutionResult = (result) => {
|
|
|
85176
85333
|
let data = undefined;
|
|
85177
85334
|
let extensions = undefined;
|
|
85178
85335
|
if (`errors` in result) {
|
|
85179
|
-
if (!
|
|
85336
|
+
if (!isPlainObject4(result.errors) && !Array.isArray(result.errors)) {
|
|
85180
85337
|
throw new Error(`Invalid execution result: errors is not plain object OR array`);
|
|
85181
85338
|
}
|
|
85182
85339
|
errors5 = result.errors;
|
|
85183
85340
|
}
|
|
85184
85341
|
if (`data` in result) {
|
|
85185
|
-
if (!
|
|
85342
|
+
if (!isPlainObject4(result.data) && result.data !== null) {
|
|
85186
85343
|
throw new Error(`Invalid execution result: data is not plain object`);
|
|
85187
85344
|
}
|
|
85188
85345
|
data = result.data;
|
|
85189
85346
|
}
|
|
85190
85347
|
if (`extensions` in result) {
|
|
85191
|
-
if (!
|
|
85348
|
+
if (!isPlainObject4(result.extensions))
|
|
85192
85349
|
throw new Error(`Invalid execution result: extensions is not plain object`);
|
|
85193
85350
|
extensions = result.extensions;
|
|
85194
85351
|
}
|
|
@@ -89853,4 +90010,4 @@ await main().catch((error47) => {
|
|
|
89853
90010
|
process.exit(1);
|
|
89854
90011
|
});
|
|
89855
90012
|
|
|
89856
|
-
//# debugId=
|
|
90013
|
+
//# debugId=7F51B452A0AE2D9464756E2164756E21
|