@settlemint/sdk-mcp 2.0.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mcp.js +40 -21
- package/dist/mcp.js.map +8 -8
- package/package.json +5 -5
package/dist/mcp.js
CHANGED
|
@@ -42648,17 +42648,24 @@ function prepareResult({ options, pointerOptionMap, validSources }) {
|
|
|
42648
42648
|
debugTimerStart("@graphql-tools/load: prepareResult");
|
|
42649
42649
|
const pointerList = Object.keys(pointerOptionMap);
|
|
42650
42650
|
if (pointerList.length > 0 && validSources.length === 0) {
|
|
42651
|
-
throw new
|
|
42652
|
-
Unable to find any GraphQL type definitions for the following pointers:
|
|
42653
|
-
${pointerList.map((p) => `
|
|
42654
|
-
- ${p}
|
|
42655
|
-
`)}`);
|
|
42651
|
+
throw new NoTypeDefinitionsFound(pointerList);
|
|
42656
42652
|
}
|
|
42657
42653
|
const sortedResult = options.sort ? validSources.sort((left, right) => compareStrings(left.location, right.location)) : validSources;
|
|
42658
42654
|
debugTimerEnd("@graphql-tools/load: prepareResult");
|
|
42659
42655
|
return sortedResult;
|
|
42660
42656
|
}
|
|
42661
42657
|
|
|
42658
|
+
class NoTypeDefinitionsFound extends Error {
|
|
42659
|
+
constructor(pointerList) {
|
|
42660
|
+
super(`
|
|
42661
|
+
Unable to find any GraphQL type definitions for the following pointers:
|
|
42662
|
+
${pointerList.map((p) => `
|
|
42663
|
+
- ${p}
|
|
42664
|
+
`)}`);
|
|
42665
|
+
this.name = "NoTypeDefinitionsFound";
|
|
42666
|
+
}
|
|
42667
|
+
}
|
|
42668
|
+
|
|
42662
42669
|
// ../../node_modules/@graphql-tools/load/esm/schema.js
|
|
42663
42670
|
var import_graphql42 = __toESM(require_graphql2(), 1);
|
|
42664
42671
|
|
|
@@ -54582,6 +54589,7 @@ var InitializeRequestSchema = RequestSchema.extend({
|
|
|
54582
54589
|
var ServerCapabilitiesSchema = z.object({
|
|
54583
54590
|
experimental: z.optional(z.object({}).passthrough()),
|
|
54584
54591
|
logging: z.optional(z.object({}).passthrough()),
|
|
54592
|
+
completions: z.optional(z.object({}).passthrough()),
|
|
54585
54593
|
prompts: z.optional(z.object({
|
|
54586
54594
|
listChanged: z.optional(z.boolean())
|
|
54587
54595
|
}).passthrough()),
|
|
@@ -54719,6 +54727,11 @@ var ImageContentSchema = z.object({
|
|
|
54719
54727
|
data: z.string().base64(),
|
|
54720
54728
|
mimeType: z.string()
|
|
54721
54729
|
}).passthrough();
|
|
54730
|
+
var AudioContentSchema = z.object({
|
|
54731
|
+
type: z.literal("audio"),
|
|
54732
|
+
data: z.string().base64(),
|
|
54733
|
+
mimeType: z.string()
|
|
54734
|
+
}).passthrough();
|
|
54722
54735
|
var EmbeddedResourceSchema = z.object({
|
|
54723
54736
|
type: z.literal("resource"),
|
|
54724
54737
|
resource: z.union([TextResourceContentsSchema, BlobResourceContentsSchema])
|
|
@@ -54728,6 +54741,7 @@ var PromptMessageSchema = z.object({
|
|
|
54728
54741
|
content: z.union([
|
|
54729
54742
|
TextContentSchema,
|
|
54730
54743
|
ImageContentSchema,
|
|
54744
|
+
AudioContentSchema,
|
|
54731
54745
|
EmbeddedResourceSchema
|
|
54732
54746
|
])
|
|
54733
54747
|
}).passthrough();
|
|
@@ -54753,7 +54767,7 @@ var ListToolsResultSchema = PaginatedResultSchema.extend({
|
|
|
54753
54767
|
tools: z.array(ToolSchema)
|
|
54754
54768
|
});
|
|
54755
54769
|
var CallToolResultSchema = ResultSchema.extend({
|
|
54756
|
-
content: z.array(z.union([TextContentSchema, ImageContentSchema, EmbeddedResourceSchema])),
|
|
54770
|
+
content: z.array(z.union([TextContentSchema, ImageContentSchema, AudioContentSchema, EmbeddedResourceSchema])),
|
|
54757
54771
|
isError: z.boolean().default(false).optional()
|
|
54758
54772
|
});
|
|
54759
54773
|
var CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
|
|
@@ -54804,7 +54818,7 @@ var ModelPreferencesSchema = z.object({
|
|
|
54804
54818
|
}).passthrough();
|
|
54805
54819
|
var SamplingMessageSchema = z.object({
|
|
54806
54820
|
role: z.enum(["user", "assistant"]),
|
|
54807
|
-
content: z.union([TextContentSchema, ImageContentSchema])
|
|
54821
|
+
content: z.union([TextContentSchema, ImageContentSchema, AudioContentSchema])
|
|
54808
54822
|
}).passthrough();
|
|
54809
54823
|
var CreateMessageRequestSchema = RequestSchema.extend({
|
|
54810
54824
|
method: z.literal("sampling/createMessage"),
|
|
@@ -54825,7 +54839,8 @@ var CreateMessageResultSchema = ResultSchema.extend({
|
|
|
54825
54839
|
role: z.enum(["user", "assistant"]),
|
|
54826
54840
|
content: z.discriminatedUnion("type", [
|
|
54827
54841
|
TextContentSchema,
|
|
54828
|
-
ImageContentSchema
|
|
54842
|
+
ImageContentSchema,
|
|
54843
|
+
AudioContentSchema
|
|
54829
54844
|
])
|
|
54830
54845
|
});
|
|
54831
54846
|
var ResourceReferenceSchema = z.object({
|
|
@@ -54950,12 +54965,13 @@ class Protocol {
|
|
|
54950
54965
|
});
|
|
54951
54966
|
this.setRequestHandler(PingRequestSchema, (_request) => ({}));
|
|
54952
54967
|
}
|
|
54953
|
-
_setupTimeout(messageId, timeout, maxTotalTimeout, onTimeout) {
|
|
54968
|
+
_setupTimeout(messageId, timeout, maxTotalTimeout, onTimeout, resetTimeoutOnProgress = false) {
|
|
54954
54969
|
this._timeoutInfo.set(messageId, {
|
|
54955
54970
|
timeoutId: setTimeout(onTimeout, timeout),
|
|
54956
54971
|
startTime: Date.now(),
|
|
54957
54972
|
timeout,
|
|
54958
54973
|
maxTotalTimeout,
|
|
54974
|
+
resetTimeoutOnProgress,
|
|
54959
54975
|
onTimeout
|
|
54960
54976
|
});
|
|
54961
54977
|
}
|
|
@@ -55078,7 +55094,8 @@ class Protocol {
|
|
|
55078
55094
|
return;
|
|
55079
55095
|
}
|
|
55080
55096
|
const responseHandler = this._responseHandlers.get(messageId);
|
|
55081
|
-
|
|
55097
|
+
const timeoutInfo = this._timeoutInfo.get(messageId);
|
|
55098
|
+
if (timeoutInfo && responseHandler && timeoutInfo.resetTimeoutOnProgress) {
|
|
55082
55099
|
try {
|
|
55083
55100
|
this._resetTimeout(messageId);
|
|
55084
55101
|
} catch (error) {
|
|
@@ -55114,7 +55131,7 @@ class Protocol {
|
|
|
55114
55131
|
}
|
|
55115
55132
|
request(request, resultSchema, options) {
|
|
55116
55133
|
return new Promise((resolve, reject2) => {
|
|
55117
|
-
var _a, _b, _c, _d;
|
|
55134
|
+
var _a, _b, _c, _d, _e;
|
|
55118
55135
|
if (!this._transport) {
|
|
55119
55136
|
reject2(new Error("Not connected"));
|
|
55120
55137
|
return;
|
|
@@ -55172,7 +55189,7 @@ class Protocol {
|
|
|
55172
55189
|
});
|
|
55173
55190
|
const timeout = (_d = options === null || options === undefined ? undefined : options.timeout) !== null && _d !== undefined ? _d : DEFAULT_REQUEST_TIMEOUT_MSEC;
|
|
55174
55191
|
const timeoutHandler = () => cancel(new McpError(ErrorCode.RequestTimeout, "Request timed out", { timeout }));
|
|
55175
|
-
this._setupTimeout(messageId, timeout, options === null || options === undefined ? undefined : options.maxTotalTimeout, timeoutHandler);
|
|
55192
|
+
this._setupTimeout(messageId, timeout, options === null || options === undefined ? undefined : options.maxTotalTimeout, timeoutHandler, (_e = options === null || options === undefined ? undefined : options.resetTimeoutOnProgress) !== null && _e !== undefined ? _e : false);
|
|
55176
55193
|
this._transport.send(jsonrpcRequest).catch((error) => {
|
|
55177
55194
|
this._cleanupTimeout(messageId);
|
|
55178
55195
|
reject2(error);
|
|
@@ -56966,7 +56983,7 @@ class ReadBuffer {
|
|
|
56966
56983
|
if (index === -1) {
|
|
56967
56984
|
return null;
|
|
56968
56985
|
}
|
|
56969
|
-
const line = this._buffer.toString("utf8", 0, index);
|
|
56986
|
+
const line = this._buffer.toString("utf8", 0, index).replace(/\r$/, "");
|
|
56970
56987
|
this._buffer = this._buffer.subarray(index + 1);
|
|
56971
56988
|
return deserializeMessage(line);
|
|
56972
56989
|
}
|
|
@@ -62475,7 +62492,8 @@ var DotEnvSchema = z.object({
|
|
|
62475
62492
|
SETTLEMINT_BLOCKSCOUT: UniqueNameSchema.optional(),
|
|
62476
62493
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: UrlSchema.optional(),
|
|
62477
62494
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema.optional(),
|
|
62478
|
-
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional()
|
|
62495
|
+
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
62496
|
+
SETTLEMINT_LOG_LEVEL: z.enum(["debug", "info", "warn", "error", "none"]).default("warn")
|
|
62479
62497
|
});
|
|
62480
62498
|
var DotEnvSchemaPartial = DotEnvSchema.partial();
|
|
62481
62499
|
var IdSchema = z.union([
|
|
@@ -62579,7 +62597,8 @@ var DotEnvSchema2 = z.object({
|
|
|
62579
62597
|
SETTLEMINT_BLOCKSCOUT: UniqueNameSchema2.optional(),
|
|
62580
62598
|
SETTLEMINT_BLOCKSCOUT_GRAPHQL_ENDPOINT: UrlSchema2.optional(),
|
|
62581
62599
|
SETTLEMINT_BLOCKSCOUT_UI_ENDPOINT: UrlSchema2.optional(),
|
|
62582
|
-
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional()
|
|
62600
|
+
SETTLEMINT_NEW_PROJECT_NAME: z.string().optional(),
|
|
62601
|
+
SETTLEMINT_LOG_LEVEL: z.enum(["debug", "info", "warn", "error", "none"]).default("warn")
|
|
62583
62602
|
});
|
|
62584
62603
|
var DotEnvSchemaPartial2 = DotEnvSchema2.partial();
|
|
62585
62604
|
var IdSchema2 = z.union([
|
|
@@ -62606,7 +62625,7 @@ var {
|
|
|
62606
62625
|
var package_default = {
|
|
62607
62626
|
name: "@settlemint/sdk-mcp",
|
|
62608
62627
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
62609
|
-
version: "2.
|
|
62628
|
+
version: "2.1.1",
|
|
62610
62629
|
type: "module",
|
|
62611
62630
|
private: false,
|
|
62612
62631
|
license: "FSL-1.1-MIT",
|
|
@@ -62645,11 +62664,11 @@ var package_default = {
|
|
|
62645
62664
|
prepack: "cp ../../LICENSE ."
|
|
62646
62665
|
},
|
|
62647
62666
|
dependencies: {
|
|
62648
|
-
"@graphql-tools/load": "8.0
|
|
62667
|
+
"@graphql-tools/load": "8.1.0",
|
|
62649
62668
|
"@graphql-tools/url-loader": "8.0.31",
|
|
62650
|
-
"@modelcontextprotocol/sdk": "1.
|
|
62651
|
-
"@settlemint/sdk-js": "2.
|
|
62652
|
-
"@settlemint/sdk-utils": "2.
|
|
62669
|
+
"@modelcontextprotocol/sdk": "1.9.0",
|
|
62670
|
+
"@settlemint/sdk-js": "2.1.1",
|
|
62671
|
+
"@settlemint/sdk-utils": "2.1.1",
|
|
62653
62672
|
"@commander-js/extra-typings": "11.1.0",
|
|
62654
62673
|
commander: "11.1.0",
|
|
62655
62674
|
zod: "3.24.2"
|
|
@@ -68071,4 +68090,4 @@ await main().catch((error2) => {
|
|
|
68071
68090
|
process.exit(1);
|
|
68072
68091
|
});
|
|
68073
68092
|
|
|
68074
|
-
//# debugId=
|
|
68093
|
+
//# debugId=29A96A4A2B64D19364756E2164756E21
|