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