@settlemint/sdk-mcp 2.1.3-pr779bce18 → 2.1.3-prf97b3d3e
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 +36 -177
- package/dist/mcp.js.map +5 -5
- package/package.json +4 -4
package/dist/mcp.js
CHANGED
|
@@ -54595,17 +54595,14 @@ var JSONRPCRequestSchema = z.object({
|
|
|
54595
54595
|
jsonrpc: z.literal(JSONRPC_VERSION),
|
|
54596
54596
|
id: RequestIdSchema
|
|
54597
54597
|
}).merge(RequestSchema).strict();
|
|
54598
|
-
var isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success;
|
|
54599
54598
|
var JSONRPCNotificationSchema = z.object({
|
|
54600
54599
|
jsonrpc: z.literal(JSONRPC_VERSION)
|
|
54601
54600
|
}).merge(NotificationSchema).strict();
|
|
54602
|
-
var isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success;
|
|
54603
54601
|
var JSONRPCResponseSchema = z.object({
|
|
54604
54602
|
jsonrpc: z.literal(JSONRPC_VERSION),
|
|
54605
54603
|
id: RequestIdSchema,
|
|
54606
54604
|
result: ResultSchema
|
|
54607
54605
|
}).strict();
|
|
54608
|
-
var isJSONRPCResponse = (value) => JSONRPCResponseSchema.safeParse(value).success;
|
|
54609
54606
|
var ErrorCode;
|
|
54610
54607
|
(function(ErrorCode2) {
|
|
54611
54608
|
ErrorCode2[ErrorCode2["ConnectionClosed"] = -32000] = "ConnectionClosed";
|
|
@@ -54625,7 +54622,6 @@ var JSONRPCErrorSchema = z.object({
|
|
|
54625
54622
|
data: z.optional(z.unknown())
|
|
54626
54623
|
})
|
|
54627
54624
|
}).strict();
|
|
54628
|
-
var isJSONRPCError = (value) => JSONRPCErrorSchema.safeParse(value).success;
|
|
54629
54625
|
var JSONRPCMessageSchema = z.union([
|
|
54630
54626
|
JSONRPCRequestSchema,
|
|
54631
54627
|
JSONRPCNotificationSchema,
|
|
@@ -55076,15 +55072,13 @@ class Protocol {
|
|
|
55076
55072
|
this._transport.onerror = (error) => {
|
|
55077
55073
|
this._onerror(error);
|
|
55078
55074
|
};
|
|
55079
|
-
this._transport.onmessage = (message
|
|
55080
|
-
if (
|
|
55075
|
+
this._transport.onmessage = (message) => {
|
|
55076
|
+
if (!("method" in message)) {
|
|
55081
55077
|
this._onresponse(message);
|
|
55082
|
-
} else if (
|
|
55083
|
-
this._onrequest(message
|
|
55084
|
-
} else if (isJSONRPCNotification(message)) {
|
|
55085
|
-
this._onnotification(message);
|
|
55078
|
+
} else if ("id" in message) {
|
|
55079
|
+
this._onrequest(message);
|
|
55086
55080
|
} else {
|
|
55087
|
-
this.
|
|
55081
|
+
this._onnotification(message);
|
|
55088
55082
|
}
|
|
55089
55083
|
};
|
|
55090
55084
|
await this._transport.start();
|
|
@@ -55113,7 +55107,7 @@ class Protocol {
|
|
|
55113
55107
|
}
|
|
55114
55108
|
Promise.resolve().then(() => handler(notification)).catch((error) => this._onerror(new Error(`Uncaught error in notification handler: ${error}`)));
|
|
55115
55109
|
}
|
|
55116
|
-
_onrequest(request
|
|
55110
|
+
_onrequest(request) {
|
|
55117
55111
|
var _a, _b, _c;
|
|
55118
55112
|
const handler = (_a = this._requestHandlers.get(request.method)) !== null && _a !== undefined ? _a : this.fallbackRequestHandler;
|
|
55119
55113
|
if (handler === undefined) {
|
|
@@ -55129,14 +55123,11 @@ class Protocol {
|
|
|
55129
55123
|
}
|
|
55130
55124
|
const abortController = new AbortController;
|
|
55131
55125
|
this._requestHandlerAbortControllers.set(request.id, abortController);
|
|
55132
|
-
const
|
|
55126
|
+
const extra = {
|
|
55133
55127
|
signal: abortController.signal,
|
|
55134
|
-
sessionId: (_c = this._transport) === null || _c === undefined ? undefined : _c.sessionId
|
|
55135
|
-
sendNotification: (notification) => this.notification(notification, { relatedRequestId: request.id }),
|
|
55136
|
-
sendRequest: (r, resultSchema, options) => this.request(r, resultSchema, { ...options, relatedRequestId: request.id }),
|
|
55137
|
-
authInfo: extra === null || extra === undefined ? undefined : extra.authInfo
|
|
55128
|
+
sessionId: (_c = this._transport) === null || _c === undefined ? undefined : _c.sessionId
|
|
55138
55129
|
};
|
|
55139
|
-
Promise.resolve().then(() => handler(request,
|
|
55130
|
+
Promise.resolve().then(() => handler(request, extra)).then((result) => {
|
|
55140
55131
|
var _a2;
|
|
55141
55132
|
if (abortController.signal.aborted) {
|
|
55142
55133
|
return;
|
|
@@ -55193,7 +55184,7 @@ class Protocol {
|
|
|
55193
55184
|
this._responseHandlers.delete(messageId);
|
|
55194
55185
|
this._progressHandlers.delete(messageId);
|
|
55195
55186
|
this._cleanupTimeout(messageId);
|
|
55196
|
-
if (
|
|
55187
|
+
if ("result" in response) {
|
|
55197
55188
|
handler(response);
|
|
55198
55189
|
} else {
|
|
55199
55190
|
const error = new McpError(response.error.code, response.error.message, response.error.data);
|
|
@@ -55208,7 +55199,6 @@ class Protocol {
|
|
|
55208
55199
|
await ((_a = this._transport) === null || _a === undefined ? undefined : _a.close());
|
|
55209
55200
|
}
|
|
55210
55201
|
request(request, resultSchema, options) {
|
|
55211
|
-
const { relatedRequestId, resumptionToken, onresumptiontoken } = options !== null && options !== undefined ? options : {};
|
|
55212
55202
|
return new Promise((resolve, reject2) => {
|
|
55213
55203
|
var _a, _b, _c, _d, _e;
|
|
55214
55204
|
if (!this._transport) {
|
|
@@ -55244,7 +55234,7 @@ class Protocol {
|
|
|
55244
55234
|
requestId: messageId,
|
|
55245
55235
|
reason: String(reason)
|
|
55246
55236
|
}
|
|
55247
|
-
}
|
|
55237
|
+
}).catch((error) => this._onerror(new Error(`Failed to send cancellation: ${error}`)));
|
|
55248
55238
|
reject2(reason);
|
|
55249
55239
|
};
|
|
55250
55240
|
this._responseHandlers.set(messageId, (response) => {
|
|
@@ -55269,13 +55259,13 @@ class Protocol {
|
|
|
55269
55259
|
const timeout = (_d = options === null || options === undefined ? undefined : options.timeout) !== null && _d !== undefined ? _d : DEFAULT_REQUEST_TIMEOUT_MSEC;
|
|
55270
55260
|
const timeoutHandler = () => cancel(new McpError(ErrorCode.RequestTimeout, "Request timed out", { timeout }));
|
|
55271
55261
|
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);
|
|
55272
|
-
this._transport.send(jsonrpcRequest
|
|
55262
|
+
this._transport.send(jsonrpcRequest).catch((error) => {
|
|
55273
55263
|
this._cleanupTimeout(messageId);
|
|
55274
55264
|
reject2(error);
|
|
55275
55265
|
});
|
|
55276
55266
|
});
|
|
55277
55267
|
}
|
|
55278
|
-
async notification(notification
|
|
55268
|
+
async notification(notification) {
|
|
55279
55269
|
if (!this._transport) {
|
|
55280
55270
|
throw new Error("Not connected");
|
|
55281
55271
|
}
|
|
@@ -55284,14 +55274,12 @@ class Protocol {
|
|
|
55284
55274
|
...notification,
|
|
55285
55275
|
jsonrpc: "2.0"
|
|
55286
55276
|
};
|
|
55287
|
-
await this._transport.send(jsonrpcNotification
|
|
55277
|
+
await this._transport.send(jsonrpcNotification);
|
|
55288
55278
|
}
|
|
55289
55279
|
setRequestHandler(requestSchema, handler) {
|
|
55290
55280
|
const method = requestSchema.shape.method.value;
|
|
55291
55281
|
this.assertRequestHandlerCapability(method);
|
|
55292
|
-
this._requestHandlers.set(method, (request, extra) =>
|
|
55293
|
-
return Promise.resolve(handler(requestSchema.parse(request), extra));
|
|
55294
|
-
});
|
|
55282
|
+
this._requestHandlers.set(method, (request, extra) => Promise.resolve(handler(requestSchema.parse(request), extra)));
|
|
55295
55283
|
}
|
|
55296
55284
|
removeRequestHandler(method) {
|
|
55297
55285
|
this._requestHandlers.delete(method);
|
|
@@ -56753,12 +56741,10 @@ class McpServer {
|
|
|
56753
56741
|
this.server.assertCanSetRequestHandler(ListToolsRequestSchema.shape.method.value);
|
|
56754
56742
|
this.server.assertCanSetRequestHandler(CallToolRequestSchema.shape.method.value);
|
|
56755
56743
|
this.server.registerCapabilities({
|
|
56756
|
-
tools: {
|
|
56757
|
-
listChanged: true
|
|
56758
|
-
}
|
|
56744
|
+
tools: {}
|
|
56759
56745
|
});
|
|
56760
56746
|
this.server.setRequestHandler(ListToolsRequestSchema, () => ({
|
|
56761
|
-
tools: Object.entries(this._registeredTools).
|
|
56747
|
+
tools: Object.entries(this._registeredTools).map(([name, tool]) => {
|
|
56762
56748
|
return {
|
|
56763
56749
|
name,
|
|
56764
56750
|
description: tool.description,
|
|
@@ -56773,9 +56759,6 @@ class McpServer {
|
|
|
56773
56759
|
if (!tool) {
|
|
56774
56760
|
throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} not found`);
|
|
56775
56761
|
}
|
|
56776
|
-
if (!tool.enabled) {
|
|
56777
|
-
throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} disabled`);
|
|
56778
|
-
}
|
|
56779
56762
|
if (tool.inputSchema) {
|
|
56780
56763
|
const parseResult = await tool.inputSchema.safeParseAsync(request.params.arguments);
|
|
56781
56764
|
if (!parseResult.success) {
|
|
@@ -56835,10 +56818,7 @@ class McpServer {
|
|
|
56835
56818
|
async handlePromptCompletion(request, ref) {
|
|
56836
56819
|
const prompt = this._registeredPrompts[ref.name];
|
|
56837
56820
|
if (!prompt) {
|
|
56838
|
-
throw new McpError(ErrorCode.InvalidParams, `Prompt ${ref.name} not found`);
|
|
56839
|
-
}
|
|
56840
|
-
if (!prompt.enabled) {
|
|
56841
|
-
throw new McpError(ErrorCode.InvalidParams, `Prompt ${ref.name} disabled`);
|
|
56821
|
+
throw new McpError(ErrorCode.InvalidParams, `Prompt ${request.params.ref.name} not found`);
|
|
56842
56822
|
}
|
|
56843
56823
|
if (!prompt.argsSchema) {
|
|
56844
56824
|
return EMPTY_COMPLETION_RESULT;
|
|
@@ -56874,12 +56854,10 @@ class McpServer {
|
|
|
56874
56854
|
this.server.assertCanSetRequestHandler(ListResourceTemplatesRequestSchema.shape.method.value);
|
|
56875
56855
|
this.server.assertCanSetRequestHandler(ReadResourceRequestSchema.shape.method.value);
|
|
56876
56856
|
this.server.registerCapabilities({
|
|
56877
|
-
resources: {
|
|
56878
|
-
listChanged: true
|
|
56879
|
-
}
|
|
56857
|
+
resources: {}
|
|
56880
56858
|
});
|
|
56881
56859
|
this.server.setRequestHandler(ListResourcesRequestSchema, async (request, extra) => {
|
|
56882
|
-
const resources = Object.entries(this._registeredResources).
|
|
56860
|
+
const resources = Object.entries(this._registeredResources).map(([uri, resource]) => ({
|
|
56883
56861
|
uri,
|
|
56884
56862
|
name: resource.name,
|
|
56885
56863
|
...resource.metadata
|
|
@@ -56911,9 +56889,6 @@ class McpServer {
|
|
|
56911
56889
|
const uri = new URL(request.params.uri);
|
|
56912
56890
|
const resource = this._registeredResources[uri.toString()];
|
|
56913
56891
|
if (resource) {
|
|
56914
|
-
if (!resource.enabled) {
|
|
56915
|
-
throw new McpError(ErrorCode.InvalidParams, `Resource ${uri} disabled`);
|
|
56916
|
-
}
|
|
56917
56892
|
return resource.readCallback(uri, extra);
|
|
56918
56893
|
}
|
|
56919
56894
|
for (const template of Object.values(this._registeredResourceTemplates)) {
|
|
@@ -56934,12 +56909,10 @@ class McpServer {
|
|
|
56934
56909
|
this.server.assertCanSetRequestHandler(ListPromptsRequestSchema.shape.method.value);
|
|
56935
56910
|
this.server.assertCanSetRequestHandler(GetPromptRequestSchema.shape.method.value);
|
|
56936
56911
|
this.server.registerCapabilities({
|
|
56937
|
-
prompts: {
|
|
56938
|
-
listChanged: true
|
|
56939
|
-
}
|
|
56912
|
+
prompts: {}
|
|
56940
56913
|
});
|
|
56941
56914
|
this.server.setRequestHandler(ListPromptsRequestSchema, () => ({
|
|
56942
|
-
prompts: Object.entries(this._registeredPrompts).
|
|
56915
|
+
prompts: Object.entries(this._registeredPrompts).map(([name, prompt]) => {
|
|
56943
56916
|
return {
|
|
56944
56917
|
name,
|
|
56945
56918
|
description: prompt.description,
|
|
@@ -56952,9 +56925,6 @@ class McpServer {
|
|
|
56952
56925
|
if (!prompt) {
|
|
56953
56926
|
throw new McpError(ErrorCode.InvalidParams, `Prompt ${request.params.name} not found`);
|
|
56954
56927
|
}
|
|
56955
|
-
if (!prompt.enabled) {
|
|
56956
|
-
throw new McpError(ErrorCode.InvalidParams, `Prompt ${request.params.name} disabled`);
|
|
56957
|
-
}
|
|
56958
56928
|
if (prompt.argsSchema) {
|
|
56959
56929
|
const parseResult = await prompt.argsSchema.safeParseAsync(request.params.arguments);
|
|
56960
56930
|
if (!parseResult.success) {
|
|
@@ -56981,69 +56951,22 @@ class McpServer {
|
|
|
56981
56951
|
if (this._registeredResources[uriOrTemplate]) {
|
|
56982
56952
|
throw new Error(`Resource ${uriOrTemplate} is already registered`);
|
|
56983
56953
|
}
|
|
56984
|
-
|
|
56954
|
+
this._registeredResources[uriOrTemplate] = {
|
|
56985
56955
|
name,
|
|
56986
56956
|
metadata,
|
|
56987
|
-
readCallback
|
|
56988
|
-
enabled: true,
|
|
56989
|
-
disable: () => registeredResource.update({ enabled: false }),
|
|
56990
|
-
enable: () => registeredResource.update({ enabled: true }),
|
|
56991
|
-
remove: () => registeredResource.update({ uri: null }),
|
|
56992
|
-
update: (updates) => {
|
|
56993
|
-
if (typeof updates.uri !== "undefined" && updates.uri !== uriOrTemplate) {
|
|
56994
|
-
delete this._registeredResources[uriOrTemplate];
|
|
56995
|
-
if (updates.uri)
|
|
56996
|
-
this._registeredResources[updates.uri] = registeredResource;
|
|
56997
|
-
}
|
|
56998
|
-
if (typeof updates.name !== "undefined")
|
|
56999
|
-
registeredResource.name = updates.name;
|
|
57000
|
-
if (typeof updates.metadata !== "undefined")
|
|
57001
|
-
registeredResource.metadata = updates.metadata;
|
|
57002
|
-
if (typeof updates.callback !== "undefined")
|
|
57003
|
-
registeredResource.readCallback = updates.callback;
|
|
57004
|
-
if (typeof updates.enabled !== "undefined")
|
|
57005
|
-
registeredResource.enabled = updates.enabled;
|
|
57006
|
-
this.sendResourceListChanged();
|
|
57007
|
-
}
|
|
56957
|
+
readCallback
|
|
57008
56958
|
};
|
|
57009
|
-
this._registeredResources[uriOrTemplate] = registeredResource;
|
|
57010
|
-
this.setResourceRequestHandlers();
|
|
57011
|
-
this.sendResourceListChanged();
|
|
57012
|
-
return registeredResource;
|
|
57013
56959
|
} else {
|
|
57014
56960
|
if (this._registeredResourceTemplates[name]) {
|
|
57015
56961
|
throw new Error(`Resource template ${name} is already registered`);
|
|
57016
56962
|
}
|
|
57017
|
-
|
|
56963
|
+
this._registeredResourceTemplates[name] = {
|
|
57018
56964
|
resourceTemplate: uriOrTemplate,
|
|
57019
56965
|
metadata,
|
|
57020
|
-
readCallback
|
|
57021
|
-
enabled: true,
|
|
57022
|
-
disable: () => registeredResourceTemplate.update({ enabled: false }),
|
|
57023
|
-
enable: () => registeredResourceTemplate.update({ enabled: true }),
|
|
57024
|
-
remove: () => registeredResourceTemplate.update({ name: null }),
|
|
57025
|
-
update: (updates) => {
|
|
57026
|
-
if (typeof updates.name !== "undefined" && updates.name !== name) {
|
|
57027
|
-
delete this._registeredResourceTemplates[name];
|
|
57028
|
-
if (updates.name)
|
|
57029
|
-
this._registeredResourceTemplates[updates.name] = registeredResourceTemplate;
|
|
57030
|
-
}
|
|
57031
|
-
if (typeof updates.template !== "undefined")
|
|
57032
|
-
registeredResourceTemplate.resourceTemplate = updates.template;
|
|
57033
|
-
if (typeof updates.metadata !== "undefined")
|
|
57034
|
-
registeredResourceTemplate.metadata = updates.metadata;
|
|
57035
|
-
if (typeof updates.callback !== "undefined")
|
|
57036
|
-
registeredResourceTemplate.readCallback = updates.callback;
|
|
57037
|
-
if (typeof updates.enabled !== "undefined")
|
|
57038
|
-
registeredResourceTemplate.enabled = updates.enabled;
|
|
57039
|
-
this.sendResourceListChanged();
|
|
57040
|
-
}
|
|
56966
|
+
readCallback
|
|
57041
56967
|
};
|
|
57042
|
-
this._registeredResourceTemplates[name] = registeredResourceTemplate;
|
|
57043
|
-
this.setResourceRequestHandlers();
|
|
57044
|
-
this.sendResourceListChanged();
|
|
57045
|
-
return registeredResourceTemplate;
|
|
57046
56968
|
}
|
|
56969
|
+
this.setResourceRequestHandlers();
|
|
57047
56970
|
}
|
|
57048
56971
|
tool(name, ...rest) {
|
|
57049
56972
|
if (this._registeredTools[name]) {
|
|
@@ -57058,35 +56981,12 @@ class McpServer {
|
|
|
57058
56981
|
paramsSchema = rest.shift();
|
|
57059
56982
|
}
|
|
57060
56983
|
const cb = rest[0];
|
|
57061
|
-
|
|
56984
|
+
this._registeredTools[name] = {
|
|
57062
56985
|
description,
|
|
57063
56986
|
inputSchema: paramsSchema === undefined ? undefined : z.object(paramsSchema),
|
|
57064
|
-
callback: cb
|
|
57065
|
-
enabled: true,
|
|
57066
|
-
disable: () => registeredTool.update({ enabled: false }),
|
|
57067
|
-
enable: () => registeredTool.update({ enabled: true }),
|
|
57068
|
-
remove: () => registeredTool.update({ name: null }),
|
|
57069
|
-
update: (updates) => {
|
|
57070
|
-
if (typeof updates.name !== "undefined" && updates.name !== name) {
|
|
57071
|
-
delete this._registeredTools[name];
|
|
57072
|
-
if (updates.name)
|
|
57073
|
-
this._registeredTools[updates.name] = registeredTool;
|
|
57074
|
-
}
|
|
57075
|
-
if (typeof updates.description !== "undefined")
|
|
57076
|
-
registeredTool.description = updates.description;
|
|
57077
|
-
if (typeof updates.paramsSchema !== "undefined")
|
|
57078
|
-
registeredTool.inputSchema = z.object(updates.paramsSchema);
|
|
57079
|
-
if (typeof updates.callback !== "undefined")
|
|
57080
|
-
registeredTool.callback = updates.callback;
|
|
57081
|
-
if (typeof updates.enabled !== "undefined")
|
|
57082
|
-
registeredTool.enabled = updates.enabled;
|
|
57083
|
-
this.sendToolListChanged();
|
|
57084
|
-
}
|
|
56987
|
+
callback: cb
|
|
57085
56988
|
};
|
|
57086
|
-
this._registeredTools[name] = registeredTool;
|
|
57087
56989
|
this.setToolRequestHandlers();
|
|
57088
|
-
this.sendToolListChanged();
|
|
57089
|
-
return registeredTool;
|
|
57090
56990
|
}
|
|
57091
56991
|
prompt(name, ...rest) {
|
|
57092
56992
|
if (this._registeredPrompts[name]) {
|
|
@@ -57101,53 +57001,12 @@ class McpServer {
|
|
|
57101
57001
|
argsSchema = rest.shift();
|
|
57102
57002
|
}
|
|
57103
57003
|
const cb = rest[0];
|
|
57104
|
-
|
|
57004
|
+
this._registeredPrompts[name] = {
|
|
57105
57005
|
description,
|
|
57106
57006
|
argsSchema: argsSchema === undefined ? undefined : z.object(argsSchema),
|
|
57107
|
-
callback: cb
|
|
57108
|
-
enabled: true,
|
|
57109
|
-
disable: () => registeredPrompt.update({ enabled: false }),
|
|
57110
|
-
enable: () => registeredPrompt.update({ enabled: true }),
|
|
57111
|
-
remove: () => registeredPrompt.update({ name: null }),
|
|
57112
|
-
update: (updates) => {
|
|
57113
|
-
if (typeof updates.name !== "undefined" && updates.name !== name) {
|
|
57114
|
-
delete this._registeredPrompts[name];
|
|
57115
|
-
if (updates.name)
|
|
57116
|
-
this._registeredPrompts[updates.name] = registeredPrompt;
|
|
57117
|
-
}
|
|
57118
|
-
if (typeof updates.description !== "undefined")
|
|
57119
|
-
registeredPrompt.description = updates.description;
|
|
57120
|
-
if (typeof updates.argsSchema !== "undefined")
|
|
57121
|
-
registeredPrompt.argsSchema = z.object(updates.argsSchema);
|
|
57122
|
-
if (typeof updates.callback !== "undefined")
|
|
57123
|
-
registeredPrompt.callback = updates.callback;
|
|
57124
|
-
if (typeof updates.enabled !== "undefined")
|
|
57125
|
-
registeredPrompt.enabled = updates.enabled;
|
|
57126
|
-
this.sendPromptListChanged();
|
|
57127
|
-
}
|
|
57007
|
+
callback: cb
|
|
57128
57008
|
};
|
|
57129
|
-
this._registeredPrompts[name] = registeredPrompt;
|
|
57130
57009
|
this.setPromptRequestHandlers();
|
|
57131
|
-
this.sendPromptListChanged();
|
|
57132
|
-
return registeredPrompt;
|
|
57133
|
-
}
|
|
57134
|
-
isConnected() {
|
|
57135
|
-
return this.server.transport !== undefined;
|
|
57136
|
-
}
|
|
57137
|
-
sendResourceListChanged() {
|
|
57138
|
-
if (this.isConnected()) {
|
|
57139
|
-
this.server.sendResourceListChanged();
|
|
57140
|
-
}
|
|
57141
|
-
}
|
|
57142
|
-
sendToolListChanged() {
|
|
57143
|
-
if (this.isConnected()) {
|
|
57144
|
-
this.server.sendToolListChanged();
|
|
57145
|
-
}
|
|
57146
|
-
}
|
|
57147
|
-
sendPromptListChanged() {
|
|
57148
|
-
if (this.isConnected()) {
|
|
57149
|
-
this.server.sendPromptListChanged();
|
|
57150
|
-
}
|
|
57151
57010
|
}
|
|
57152
57011
|
}
|
|
57153
57012
|
var EMPTY_OBJECT_JSON_SCHEMA = {
|
|
@@ -62835,7 +62694,7 @@ var {
|
|
|
62835
62694
|
var package_default = {
|
|
62836
62695
|
name: "@settlemint/sdk-mcp",
|
|
62837
62696
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
62838
|
-
version: "2.1.3-
|
|
62697
|
+
version: "2.1.3-prf97b3d3e",
|
|
62839
62698
|
type: "module",
|
|
62840
62699
|
private: false,
|
|
62841
62700
|
license: "FSL-1.1-MIT",
|
|
@@ -62876,9 +62735,9 @@ var package_default = {
|
|
|
62876
62735
|
dependencies: {
|
|
62877
62736
|
"@graphql-tools/load": "8.1.0",
|
|
62878
62737
|
"@graphql-tools/url-loader": "8.0.31",
|
|
62879
|
-
"@modelcontextprotocol/sdk": "1.
|
|
62880
|
-
"@settlemint/sdk-js": "2.1.3-
|
|
62881
|
-
"@settlemint/sdk-utils": "2.1.3-
|
|
62738
|
+
"@modelcontextprotocol/sdk": "1.9.0",
|
|
62739
|
+
"@settlemint/sdk-js": "2.1.3-prf97b3d3e",
|
|
62740
|
+
"@settlemint/sdk-utils": "2.1.3-prf97b3d3e",
|
|
62882
62741
|
"@commander-js/extra-typings": "11.1.0",
|
|
62883
62742
|
commander: "11.1.0",
|
|
62884
62743
|
zod: "3.24.2"
|
|
@@ -68296,4 +68155,4 @@ await main().catch((error2) => {
|
|
|
68296
68155
|
process.exit(1);
|
|
68297
68156
|
});
|
|
68298
68157
|
|
|
68299
|
-
//# debugId=
|
|
68158
|
+
//# debugId=334C7A73D5695A6564756E2164756E21
|