@settlemint/sdk-mcp 2.4.0-pr392ba72e → 2.4.0-pr3a710612
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 +45 -43
- package/dist/mcp.js.map +8 -8
- package/package.json +5 -7
package/dist/mcp.js
CHANGED
|
@@ -73554,9 +73554,9 @@ ${formattedErrors}`);
|
|
|
73554
73554
|
throw error$37;
|
|
73555
73555
|
}
|
|
73556
73556
|
}
|
|
73557
|
-
var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_
|
|
73558
|
-
var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_
|
|
73559
|
-
var AccessTokenSchema = string$1().regex(/^
|
|
73557
|
+
var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.*$/);
|
|
73558
|
+
var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.*$/);
|
|
73559
|
+
var AccessTokenSchema = string$1().regex(/^sm_pat_.*|sm_aat_.*$/);
|
|
73560
73560
|
function tryParseJson(value, defaultValue = null) {
|
|
73561
73561
|
try {
|
|
73562
73562
|
const parsed = JSON.parse(value);
|
|
@@ -73564,7 +73564,7 @@ function tryParseJson(value, defaultValue = null) {
|
|
|
73564
73564
|
return defaultValue;
|
|
73565
73565
|
}
|
|
73566
73566
|
return parsed;
|
|
73567
|
-
} catch (
|
|
73567
|
+
} catch (err) {
|
|
73568
73568
|
return defaultValue;
|
|
73569
73569
|
}
|
|
73570
73570
|
}
|
|
@@ -90295,9 +90295,9 @@ ${formattedErrors}`);
|
|
|
90295
90295
|
throw error$372;
|
|
90296
90296
|
}
|
|
90297
90297
|
}
|
|
90298
|
-
var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_
|
|
90299
|
-
var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_
|
|
90300
|
-
var AccessTokenSchema2 = string$12().regex(/^
|
|
90298
|
+
var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.*$/);
|
|
90299
|
+
var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.*$/);
|
|
90300
|
+
var AccessTokenSchema2 = string$12().regex(/^sm_pat_.*|sm_aat_.*$/);
|
|
90301
90301
|
function tryParseJson2(value, defaultValue = null) {
|
|
90302
90302
|
try {
|
|
90303
90303
|
const parsed = JSON.parse(value);
|
|
@@ -90305,7 +90305,7 @@ function tryParseJson2(value, defaultValue = null) {
|
|
|
90305
90305
|
return defaultValue;
|
|
90306
90306
|
}
|
|
90307
90307
|
return parsed;
|
|
90308
|
-
} catch (
|
|
90308
|
+
} catch (err) {
|
|
90309
90309
|
return defaultValue;
|
|
90310
90310
|
}
|
|
90311
90311
|
}
|
|
@@ -90389,7 +90389,7 @@ var {
|
|
|
90389
90389
|
var package_default = {
|
|
90390
90390
|
name: "@settlemint/sdk-mcp",
|
|
90391
90391
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
90392
|
-
version: "2.4.0-
|
|
90392
|
+
version: "2.4.0-pr3a710612",
|
|
90393
90393
|
type: "module",
|
|
90394
90394
|
private: false,
|
|
90395
90395
|
license: "FSL-1.1-MIT",
|
|
@@ -90408,9 +90408,7 @@ var package_default = {
|
|
|
90408
90408
|
url: "https://github.com/settlemint/sdk/issues",
|
|
90409
90409
|
email: "support@settlemint.com"
|
|
90410
90410
|
},
|
|
90411
|
-
files: [
|
|
90412
|
-
"dist"
|
|
90413
|
-
],
|
|
90411
|
+
files: ["dist"],
|
|
90414
90412
|
exports: {
|
|
90415
90413
|
"./*": {
|
|
90416
90414
|
types: "./dist/*.d.ts",
|
|
@@ -90432,9 +90430,9 @@ var package_default = {
|
|
|
90432
90430
|
dependencies: {
|
|
90433
90431
|
"@graphql-tools/load": "8.1.0",
|
|
90434
90432
|
"@graphql-tools/url-loader": "8.0.31",
|
|
90435
|
-
"@modelcontextprotocol/sdk": "1.13.
|
|
90436
|
-
"@settlemint/sdk-js": "2.4.0-
|
|
90437
|
-
"@settlemint/sdk-utils": "2.4.0-
|
|
90433
|
+
"@modelcontextprotocol/sdk": "1.13.0",
|
|
90434
|
+
"@settlemint/sdk-js": "2.4.0-pr3a710612",
|
|
90435
|
+
"@settlemint/sdk-utils": "2.4.0-pr3a710612",
|
|
90438
90436
|
"@commander-js/extra-typings": "14.0.0",
|
|
90439
90437
|
commander: "14.0.0",
|
|
90440
90438
|
zod: "^3.25.0"
|
|
@@ -91265,7 +91263,7 @@ var processFieldTypes = (fields2, schema, collectedTypes) => {
|
|
|
91265
91263
|
}
|
|
91266
91264
|
};
|
|
91267
91265
|
var collectCustomTypes = (type, schema, collectedTypes = new Set) => {
|
|
91268
|
-
const typeName = type.toString().replace(/[[\]!]/g, "");
|
|
91266
|
+
const typeName = type.toString().replace(/[\[\]!]/g, "");
|
|
91269
91267
|
if (collectedTypes.has(typeName) || ["String", "Int", "Float", "Boolean", "ID"].includes(typeName)) {
|
|
91270
91268
|
return collectedTypes;
|
|
91271
91269
|
}
|
|
@@ -106591,6 +106589,21 @@ var promptsGet = (server, _env) => {
|
|
|
106591
106589
|
try {
|
|
106592
106590
|
const promptsDir = path2.resolve(__dirname, "../../prompts");
|
|
106593
106591
|
const promptPath = path2.join(promptsDir, category, `${name2}.ts`);
|
|
106592
|
+
try {
|
|
106593
|
+
await fs.access(promptPath);
|
|
106594
|
+
} catch (error41) {
|
|
106595
|
+
return {
|
|
106596
|
+
content: [
|
|
106597
|
+
{
|
|
106598
|
+
type: "text",
|
|
106599
|
+
name: "Prompt Not Found",
|
|
106600
|
+
description: `Prompt '${name2}' in category '${category}' not found`,
|
|
106601
|
+
mimeType: "text/plain",
|
|
106602
|
+
text: `Prompt '${name2}' in category '${category}' does not exist. Use the prompts-list tool to see available prompts.`
|
|
106603
|
+
}
|
|
106604
|
+
]
|
|
106605
|
+
};
|
|
106606
|
+
}
|
|
106594
106607
|
const fileContent = await fs.readFile(promptPath, "utf-8");
|
|
106595
106608
|
return {
|
|
106596
106609
|
content: [
|
|
@@ -106604,19 +106617,6 @@ var promptsGet = (server, _env) => {
|
|
|
106604
106617
|
]
|
|
106605
106618
|
};
|
|
106606
106619
|
} catch (error41) {
|
|
106607
|
-
if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
|
|
106608
|
-
return {
|
|
106609
|
-
content: [
|
|
106610
|
-
{
|
|
106611
|
-
type: "text",
|
|
106612
|
-
name: "Prompt Not Found",
|
|
106613
|
-
description: `Prompt '${name2}' in category '${category}' not found`,
|
|
106614
|
-
mimeType: "text/plain",
|
|
106615
|
-
text: `Prompt '${name2}' in category '${category}' does not exist. Use the prompts-list tool to see available prompts.`
|
|
106616
|
-
}
|
|
106617
|
-
]
|
|
106618
|
-
};
|
|
106619
|
-
}
|
|
106620
106620
|
return {
|
|
106621
106621
|
content: [
|
|
106622
106622
|
{
|
|
@@ -106707,6 +106707,21 @@ var resourcesGet = (server, _env) => {
|
|
|
106707
106707
|
try {
|
|
106708
106708
|
const resourcesDir = path4.resolve(__dirname, "../../resources");
|
|
106709
106709
|
const resourcePath = path4.join(resourcesDir, `${name2}.ts`);
|
|
106710
|
+
try {
|
|
106711
|
+
await fs3.access(resourcePath);
|
|
106712
|
+
} catch (error41) {
|
|
106713
|
+
return {
|
|
106714
|
+
content: [
|
|
106715
|
+
{
|
|
106716
|
+
type: "text",
|
|
106717
|
+
name: "Resource Not Found",
|
|
106718
|
+
description: `Resource '${name2}' not found`,
|
|
106719
|
+
mimeType: "text/plain",
|
|
106720
|
+
text: `Resource '${name2}' does not exist. Use the resources-list tool to see available resources.`
|
|
106721
|
+
}
|
|
106722
|
+
]
|
|
106723
|
+
};
|
|
106724
|
+
}
|
|
106710
106725
|
const fileContent = await fs3.readFile(resourcePath, "utf-8");
|
|
106711
106726
|
return {
|
|
106712
106727
|
content: [
|
|
@@ -106720,19 +106735,6 @@ var resourcesGet = (server, _env) => {
|
|
|
106720
106735
|
]
|
|
106721
106736
|
};
|
|
106722
106737
|
} catch (error41) {
|
|
106723
|
-
if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
|
|
106724
|
-
return {
|
|
106725
|
-
content: [
|
|
106726
|
-
{
|
|
106727
|
-
type: "text",
|
|
106728
|
-
name: "Resource Not Found",
|
|
106729
|
-
description: `Resource '${name2}' not found`,
|
|
106730
|
-
mimeType: "text/plain",
|
|
106731
|
-
text: `Resource '${name2}' does not exist. Use the resources-list tool to see available resources.`
|
|
106732
|
-
}
|
|
106733
|
-
]
|
|
106734
|
-
};
|
|
106735
|
-
}
|
|
106736
106738
|
return {
|
|
106737
106739
|
content: [
|
|
106738
106740
|
{
|
|
@@ -106883,4 +106885,4 @@ await main().catch((error41) => {
|
|
|
106883
106885
|
process.exit(1);
|
|
106884
106886
|
});
|
|
106885
106887
|
|
|
106886
|
-
//# debugId=
|
|
106888
|
+
//# debugId=ED438AEAB164625A64756E2164756E21
|