@settlemint/sdk-mcp 2.4.0-mainb7c15b4f → 2.4.0-maind463f27f
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 +41 -37
- package/dist/mcp.js.map +6 -6
- package/package.json +4 -4
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);
|
|
@@ -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);
|
|
@@ -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-maind463f27f",
|
|
90393
90393
|
type: "module",
|
|
90394
90394
|
private: false,
|
|
90395
90395
|
license: "FSL-1.1-MIT",
|
|
@@ -90430,9 +90430,9 @@ var package_default = {
|
|
|
90430
90430
|
dependencies: {
|
|
90431
90431
|
"@graphql-tools/load": "8.1.0",
|
|
90432
90432
|
"@graphql-tools/url-loader": "8.0.31",
|
|
90433
|
-
"@modelcontextprotocol/sdk": "1.13.
|
|
90434
|
-
"@settlemint/sdk-js": "2.4.0-
|
|
90435
|
-
"@settlemint/sdk-utils": "2.4.0-
|
|
90433
|
+
"@modelcontextprotocol/sdk": "1.13.0",
|
|
90434
|
+
"@settlemint/sdk-js": "2.4.0-maind463f27f",
|
|
90435
|
+
"@settlemint/sdk-utils": "2.4.0-maind463f27f",
|
|
90436
90436
|
"@commander-js/extra-typings": "14.0.0",
|
|
90437
90437
|
commander: "14.0.0",
|
|
90438
90438
|
zod: "^3.25.0"
|
|
@@ -106589,6 +106589,21 @@ var promptsGet = (server, _env) => {
|
|
|
106589
106589
|
try {
|
|
106590
106590
|
const promptsDir = path2.resolve(__dirname, "../../prompts");
|
|
106591
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
|
+
}
|
|
106592
106607
|
const fileContent = await fs.readFile(promptPath, "utf-8");
|
|
106593
106608
|
return {
|
|
106594
106609
|
content: [
|
|
@@ -106602,19 +106617,6 @@ var promptsGet = (server, _env) => {
|
|
|
106602
106617
|
]
|
|
106603
106618
|
};
|
|
106604
106619
|
} catch (error41) {
|
|
106605
|
-
if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
|
|
106606
|
-
return {
|
|
106607
|
-
content: [
|
|
106608
|
-
{
|
|
106609
|
-
type: "text",
|
|
106610
|
-
name: "Prompt Not Found",
|
|
106611
|
-
description: `Prompt '${name2}' in category '${category}' not found`,
|
|
106612
|
-
mimeType: "text/plain",
|
|
106613
|
-
text: `Prompt '${name2}' in category '${category}' does not exist. Use the prompts-list tool to see available prompts.`
|
|
106614
|
-
}
|
|
106615
|
-
]
|
|
106616
|
-
};
|
|
106617
|
-
}
|
|
106618
106620
|
return {
|
|
106619
106621
|
content: [
|
|
106620
106622
|
{
|
|
@@ -106705,6 +106707,21 @@ var resourcesGet = (server, _env) => {
|
|
|
106705
106707
|
try {
|
|
106706
106708
|
const resourcesDir = path4.resolve(__dirname, "../../resources");
|
|
106707
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
|
+
}
|
|
106708
106725
|
const fileContent = await fs3.readFile(resourcePath, "utf-8");
|
|
106709
106726
|
return {
|
|
106710
106727
|
content: [
|
|
@@ -106718,19 +106735,6 @@ var resourcesGet = (server, _env) => {
|
|
|
106718
106735
|
]
|
|
106719
106736
|
};
|
|
106720
106737
|
} catch (error41) {
|
|
106721
|
-
if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
|
|
106722
|
-
return {
|
|
106723
|
-
content: [
|
|
106724
|
-
{
|
|
106725
|
-
type: "text",
|
|
106726
|
-
name: "Resource Not Found",
|
|
106727
|
-
description: `Resource '${name2}' not found`,
|
|
106728
|
-
mimeType: "text/plain",
|
|
106729
|
-
text: `Resource '${name2}' does not exist. Use the resources-list tool to see available resources.`
|
|
106730
|
-
}
|
|
106731
|
-
]
|
|
106732
|
-
};
|
|
106733
|
-
}
|
|
106734
106738
|
return {
|
|
106735
106739
|
content: [
|
|
106736
106740
|
{
|
|
@@ -106881,4 +106885,4 @@ await main().catch((error41) => {
|
|
|
106881
106885
|
process.exit(1);
|
|
106882
106886
|
});
|
|
106883
106887
|
|
|
106884
|
-
//# debugId=
|
|
106888
|
+
//# debugId=1469DDD4BEF72BE664756E2164756E21
|