@settlemint/sdk-mcp 1.2.0 → 1.2.1-pr0c6900d2
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 +101 -358
- package/dist/mcp.js.map +13 -21
- package/package.json +4 -4
package/dist/mcp.js
CHANGED
|
@@ -62582,7 +62582,7 @@ var {
|
|
|
62582
62582
|
var package_default = {
|
|
62583
62583
|
name: "@settlemint/sdk-mcp",
|
|
62584
62584
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
62585
|
-
version: "1.2.
|
|
62585
|
+
version: "1.2.1-pr0c6900d2",
|
|
62586
62586
|
type: "module",
|
|
62587
62587
|
private: false,
|
|
62588
62588
|
license: "FSL-1.1-MIT",
|
|
@@ -62624,9 +62624,9 @@ var package_default = {
|
|
|
62624
62624
|
"@graphql-tools/load": "8.0.17",
|
|
62625
62625
|
"@graphql-tools/url-loader": "8.0.29",
|
|
62626
62626
|
"@modelcontextprotocol/sdk": "1.7.0",
|
|
62627
|
-
"@settlemint/sdk-js": "1.2.
|
|
62628
|
-
"@settlemint/sdk-utils": "1.2.
|
|
62629
|
-
"@commander-js/extra-typings": "
|
|
62627
|
+
"@settlemint/sdk-js": "1.2.1-pr0c6900d2",
|
|
62628
|
+
"@settlemint/sdk-utils": "1.2.1-pr0c6900d2",
|
|
62629
|
+
"@commander-js/extra-typings": "13.1.0",
|
|
62630
62630
|
commander: "11.1.0",
|
|
62631
62631
|
zod: "3.24.2"
|
|
62632
62632
|
},
|
|
@@ -66373,124 +66373,6 @@ function createSettleMintClient(options) {
|
|
|
66373
66373
|
};
|
|
66374
66374
|
}
|
|
66375
66375
|
|
|
66376
|
-
// src/tools/platform/application-access-token/create.ts
|
|
66377
|
-
var platformApplicationAccessTokenCreate = (server, env3, pat) => {
|
|
66378
|
-
const instance = env3.SETTLEMINT_INSTANCE;
|
|
66379
|
-
if (!instance) {
|
|
66380
|
-
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
66381
|
-
}
|
|
66382
|
-
const client = createSettleMintClient({
|
|
66383
|
-
accessToken: pat,
|
|
66384
|
-
instance
|
|
66385
|
-
});
|
|
66386
|
-
const scopeSchema = z.object({
|
|
66387
|
-
type: z.enum(["ALL", "SPECIFIC"]).describe("Scope type (ALL or SPECIFIC)"),
|
|
66388
|
-
values: z.array(z.string()).describe("Specific values if type is SPECIFIC")
|
|
66389
|
-
});
|
|
66390
|
-
server.tool("platform-application-access-token-create", {
|
|
66391
|
-
applicationUniqueName: z.string().describe("Unique name of the application to create the access token for"),
|
|
66392
|
-
name: z.string().describe("Name of the access token"),
|
|
66393
|
-
validityPeriod: z.enum(["CUSTOM", "DAYS_7", "DAYS_30", "DAYS_60", "DAYS_90", "NONE"]).describe("Validity period for the access token"),
|
|
66394
|
-
blockchainNetworkScope: scopeSchema.describe("Blockchain network scope"),
|
|
66395
|
-
blockchainNodeScope: scopeSchema.describe("Blockchain node scope"),
|
|
66396
|
-
customDeploymentScope: scopeSchema.describe("Custom deployment scope"),
|
|
66397
|
-
insightsScope: scopeSchema.describe("Insights scope"),
|
|
66398
|
-
integrationScope: scopeSchema.describe("Integration scope"),
|
|
66399
|
-
loadBalancerScope: scopeSchema.describe("Load balancer scope"),
|
|
66400
|
-
middlewareScope: scopeSchema.describe("Middleware scope"),
|
|
66401
|
-
privateKeyScope: scopeSchema.describe("Private key scope"),
|
|
66402
|
-
smartContractSetScope: scopeSchema.describe("Smart contract set scope"),
|
|
66403
|
-
storageScope: scopeSchema.describe("Storage scope")
|
|
66404
|
-
}, async (params) => {
|
|
66405
|
-
const token = await client.applicationAccessToken.create({
|
|
66406
|
-
applicationUniqueName: params.applicationUniqueName,
|
|
66407
|
-
name: params.name,
|
|
66408
|
-
validityPeriod: params.validityPeriod,
|
|
66409
|
-
blockchainNetworkScope: params.blockchainNetworkScope,
|
|
66410
|
-
blockchainNodeScope: params.blockchainNodeScope,
|
|
66411
|
-
customDeploymentScope: params.customDeploymentScope,
|
|
66412
|
-
insightsScope: params.insightsScope,
|
|
66413
|
-
integrationScope: params.integrationScope,
|
|
66414
|
-
loadBalancerScope: params.loadBalancerScope,
|
|
66415
|
-
middlewareScope: params.middlewareScope,
|
|
66416
|
-
privateKeyScope: params.privateKeyScope,
|
|
66417
|
-
smartContractSetScope: params.smartContractSetScope,
|
|
66418
|
-
storageScope: params.storageScope
|
|
66419
|
-
});
|
|
66420
|
-
return {
|
|
66421
|
-
content: [
|
|
66422
|
-
{
|
|
66423
|
-
type: "text",
|
|
66424
|
-
name: "Application Access Token Created",
|
|
66425
|
-
description: `Created access token: ${params.name} for application: ${params.applicationUniqueName}`,
|
|
66426
|
-
mimeType: "text/plain",
|
|
66427
|
-
text: token
|
|
66428
|
-
}
|
|
66429
|
-
]
|
|
66430
|
-
};
|
|
66431
|
-
});
|
|
66432
|
-
};
|
|
66433
|
-
|
|
66434
|
-
// src/tools/platform/application/create.ts
|
|
66435
|
-
var platformApplicationCreate = (server, env3, pat) => {
|
|
66436
|
-
const instance = env3.SETTLEMINT_INSTANCE;
|
|
66437
|
-
if (!instance) {
|
|
66438
|
-
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
66439
|
-
}
|
|
66440
|
-
const client = createSettleMintClient({
|
|
66441
|
-
accessToken: pat,
|
|
66442
|
-
instance
|
|
66443
|
-
});
|
|
66444
|
-
server.tool("platform-application-create", {
|
|
66445
|
-
name: z.string().describe("Name of the application"),
|
|
66446
|
-
workspaceUniqueName: z.string().describe("Unique name of the workspace to create the application in")
|
|
66447
|
-
}, async (params) => {
|
|
66448
|
-
const application = await client.application.create({
|
|
66449
|
-
name: params.name,
|
|
66450
|
-
workspaceUniqueName: params.workspaceUniqueName
|
|
66451
|
-
});
|
|
66452
|
-
return {
|
|
66453
|
-
content: [
|
|
66454
|
-
{
|
|
66455
|
-
type: "text",
|
|
66456
|
-
name: "Application Created",
|
|
66457
|
-
description: `Created application: ${params.name} in workspace: ${params.workspaceUniqueName}`,
|
|
66458
|
-
mimeType: "application/json",
|
|
66459
|
-
text: JSON.stringify(application, null, 2)
|
|
66460
|
-
}
|
|
66461
|
-
]
|
|
66462
|
-
};
|
|
66463
|
-
});
|
|
66464
|
-
};
|
|
66465
|
-
|
|
66466
|
-
// src/tools/platform/application/delete.ts
|
|
66467
|
-
var platformApplicationDelete = (server, env3, pat) => {
|
|
66468
|
-
const instance = env3.SETTLEMINT_INSTANCE;
|
|
66469
|
-
if (!instance) {
|
|
66470
|
-
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
66471
|
-
}
|
|
66472
|
-
const client = createSettleMintClient({
|
|
66473
|
-
accessToken: pat,
|
|
66474
|
-
instance
|
|
66475
|
-
});
|
|
66476
|
-
server.tool("platform-application-delete", {
|
|
66477
|
-
applicationId: z.string().describe("ID of the application to delete")
|
|
66478
|
-
}, async (params) => {
|
|
66479
|
-
const application = await client.application.delete(params.applicationId);
|
|
66480
|
-
return {
|
|
66481
|
-
content: [
|
|
66482
|
-
{
|
|
66483
|
-
type: "text",
|
|
66484
|
-
name: "Application Deleted",
|
|
66485
|
-
description: `Deleted application with ID: ${params.applicationId}`,
|
|
66486
|
-
mimeType: "application/json",
|
|
66487
|
-
text: JSON.stringify(application, null, 2)
|
|
66488
|
-
}
|
|
66489
|
-
]
|
|
66490
|
-
};
|
|
66491
|
-
});
|
|
66492
|
-
};
|
|
66493
|
-
|
|
66494
66376
|
// src/tools/platform/application/list.ts
|
|
66495
66377
|
var platformApplicationList = (server, env3, pat) => {
|
|
66496
66378
|
const instance = env3.SETTLEMINT_INSTANCE;
|
|
@@ -66561,6 +66443,7 @@ var platformBlockchainNetworkCreate = (server, env3, pat) => {
|
|
|
66561
66443
|
applicationUniqueName: z.string().describe("Unique name of the application to create the network in").optional(),
|
|
66562
66444
|
name: z.string().describe("Name of the blockchain network"),
|
|
66563
66445
|
type: z.enum(["DEDICATED", "SHARED"]).describe("Type of the blockchain network (DEDICATED or SHARED)"),
|
|
66446
|
+
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the blockchain network"),
|
|
66564
66447
|
provider: z.string().describe("Provider for the blockchain network"),
|
|
66565
66448
|
region: z.string().describe("Region for the blockchain network"),
|
|
66566
66449
|
nodeName: z.string().describe("Name for the initial node"),
|
|
@@ -66605,38 +66488,6 @@ var platformBlockchainNetworkCreate = (server, env3, pat) => {
|
|
|
66605
66488
|
});
|
|
66606
66489
|
};
|
|
66607
66490
|
|
|
66608
|
-
// src/tools/platform/blockchain-network/delete.ts
|
|
66609
|
-
var platformBlockchainNetworkDelete = (server, env3, pat) => {
|
|
66610
|
-
const instance = env3.SETTLEMINT_INSTANCE;
|
|
66611
|
-
if (!instance) {
|
|
66612
|
-
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
66613
|
-
}
|
|
66614
|
-
const client = createSettleMintClient({
|
|
66615
|
-
accessToken: pat,
|
|
66616
|
-
instance
|
|
66617
|
-
});
|
|
66618
|
-
server.tool("platform-blockchain-network-delete", {
|
|
66619
|
-
networkUniqueName: z.string().describe("Unique name of the blockchain network to delete").optional()
|
|
66620
|
-
}, async (params) => {
|
|
66621
|
-
const networkUniqueName = env3.SETTLEMINT_BLOCKCHAIN_NETWORK || params.networkUniqueName;
|
|
66622
|
-
if (!networkUniqueName) {
|
|
66623
|
-
throw new Error("Blockchain network unique name is required. Set SETTLEMINT_BLOCKCHAIN_NETWORK environment variable or provide networkUniqueName parameter.");
|
|
66624
|
-
}
|
|
66625
|
-
const network = await client.blockchainNetwork.delete(networkUniqueName);
|
|
66626
|
-
return {
|
|
66627
|
-
content: [
|
|
66628
|
-
{
|
|
66629
|
-
type: "text",
|
|
66630
|
-
name: "Blockchain Network Deleted",
|
|
66631
|
-
description: `Deleted blockchain network: ${networkUniqueName}`,
|
|
66632
|
-
mimeType: "application/json",
|
|
66633
|
-
text: JSON.stringify(network, null, 2)
|
|
66634
|
-
}
|
|
66635
|
-
]
|
|
66636
|
-
};
|
|
66637
|
-
});
|
|
66638
|
-
};
|
|
66639
|
-
|
|
66640
66491
|
// src/tools/platform/blockchain-network/list.ts
|
|
66641
66492
|
var platformBlockchainNetworkList = (server, env3, pat) => {
|
|
66642
66493
|
const instance = env3.SETTLEMINT_INSTANCE;
|
|
@@ -66748,6 +66599,7 @@ var platformBlockchainNodeCreate = (server, env3, pat) => {
|
|
|
66748
66599
|
blockchainNetworkUniqueName: z.string().describe("Unique name of the blockchain network for the node"),
|
|
66749
66600
|
name: z.string().describe("Name of the blockchain node"),
|
|
66750
66601
|
type: z.enum(["DEDICATED", "SHARED"]).describe("Type of the blockchain node (DEDICATED or SHARED)"),
|
|
66602
|
+
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the blockchain node"),
|
|
66751
66603
|
nodeType: z.enum(["NON_VALIDATOR", "NOTARY", "ORDERER", "PEER", "UNSPECIFIED", "VALIDATOR"]).describe("The type of the blockchain node (NON_VALIDATOR, NOTARY, ORDERER, PEER, UNSPECIFIED, or VALIDATOR)").optional(),
|
|
66752
66604
|
provider: z.string().describe("Provider for the blockchain node"),
|
|
66753
66605
|
region: z.string().describe("Region for the blockchain node")
|
|
@@ -66859,6 +66711,85 @@ var platformBlockchainNodeRestart = (server, env3, pat) => {
|
|
|
66859
66711
|
});
|
|
66860
66712
|
};
|
|
66861
66713
|
|
|
66714
|
+
// src/tools/platform/custom-deployment/create.ts
|
|
66715
|
+
var platformCustomDeploymentCreate = (server, env3, pat) => {
|
|
66716
|
+
const instance = env3.SETTLEMINT_INSTANCE;
|
|
66717
|
+
if (!instance) {
|
|
66718
|
+
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
66719
|
+
}
|
|
66720
|
+
const client = createSettleMintClient({
|
|
66721
|
+
accessToken: pat,
|
|
66722
|
+
instance
|
|
66723
|
+
});
|
|
66724
|
+
server.tool("platform-custom-deployment-create", {
|
|
66725
|
+
applicationUniqueName: z.string().describe("Unique name of the application to create the custom deployment in"),
|
|
66726
|
+
name: z.string().describe("Name of the custom deployment"),
|
|
66727
|
+
imageTag: z.string().describe("The tag of the Docker image"),
|
|
66728
|
+
imageName: z.string().describe("The name of the Docker image"),
|
|
66729
|
+
imageRepository: z.string().describe("The repository of the Docker image"),
|
|
66730
|
+
port: z.number().describe("The port number for the custom deployment"),
|
|
66731
|
+
environmentVariables: z.record(z.string(), z.any()).optional().describe("Environment variables for the custom deployment"),
|
|
66732
|
+
provider: z.string().describe("Provider for the custom deployment"),
|
|
66733
|
+
region: z.string().describe("Region for the custom deployment"),
|
|
66734
|
+
type: z.enum(["DEDICATED", "SHARED"]).optional().describe("Type of the custom deployment (DEDICATED or SHARED)"),
|
|
66735
|
+
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).optional().describe("Size of the custom deployment")
|
|
66736
|
+
}, async (params) => {
|
|
66737
|
+
const customDeployment = await client.customDeployment.create({
|
|
66738
|
+
applicationUniqueName: params.applicationUniqueName,
|
|
66739
|
+
name: params.name,
|
|
66740
|
+
imageTag: params.imageTag,
|
|
66741
|
+
imageName: params.imageName,
|
|
66742
|
+
imageRepository: params.imageRepository,
|
|
66743
|
+
port: params.port,
|
|
66744
|
+
environmentVariables: params.environmentVariables,
|
|
66745
|
+
provider: params.provider,
|
|
66746
|
+
region: params.region,
|
|
66747
|
+
...params.type && { type: params.type },
|
|
66748
|
+
...params.size && { size: params.size }
|
|
66749
|
+
});
|
|
66750
|
+
return {
|
|
66751
|
+
content: [
|
|
66752
|
+
{
|
|
66753
|
+
type: "text",
|
|
66754
|
+
name: "Custom Deployment Created",
|
|
66755
|
+
description: `Created custom deployment: ${params.name} in application: ${params.applicationUniqueName}`,
|
|
66756
|
+
mimeType: "application/json",
|
|
66757
|
+
text: JSON.stringify(customDeployment, null, 2)
|
|
66758
|
+
}
|
|
66759
|
+
]
|
|
66760
|
+
};
|
|
66761
|
+
});
|
|
66762
|
+
};
|
|
66763
|
+
|
|
66764
|
+
// src/tools/platform/custom-deployment/edit.ts
|
|
66765
|
+
var platformCustomDeploymentEdit = (server, env3, pat) => {
|
|
66766
|
+
const instance = env3.SETTLEMINT_INSTANCE;
|
|
66767
|
+
if (!instance) {
|
|
66768
|
+
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
66769
|
+
}
|
|
66770
|
+
const client = createSettleMintClient({
|
|
66771
|
+
accessToken: pat,
|
|
66772
|
+
instance
|
|
66773
|
+
});
|
|
66774
|
+
server.tool("platform-custom-deployment-edit", {
|
|
66775
|
+
customDeploymentUniqueName: z.string().describe("Unique name of the custom deployment to edit"),
|
|
66776
|
+
imageTag: z.string().describe("The new tag of the Docker image")
|
|
66777
|
+
}, async (params) => {
|
|
66778
|
+
const customDeployment = await client.customDeployment.update(params.customDeploymentUniqueName, params.imageTag);
|
|
66779
|
+
return {
|
|
66780
|
+
content: [
|
|
66781
|
+
{
|
|
66782
|
+
type: "text",
|
|
66783
|
+
name: "Custom Deployment Updated",
|
|
66784
|
+
description: `Updated custom deployment: ${params.customDeploymentUniqueName} to tag: ${params.imageTag}`,
|
|
66785
|
+
mimeType: "application/json",
|
|
66786
|
+
text: JSON.stringify(customDeployment, null, 2)
|
|
66787
|
+
}
|
|
66788
|
+
]
|
|
66789
|
+
};
|
|
66790
|
+
});
|
|
66791
|
+
};
|
|
66792
|
+
|
|
66862
66793
|
// src/tools/platform/custom-deployment/list.ts
|
|
66863
66794
|
var platformCustomDeploymentList = (server, env3, pat) => {
|
|
66864
66795
|
const instance = env3.SETTLEMINT_INSTANCE;
|
|
@@ -66915,8 +66846,8 @@ var platformCustomDeploymentRead = (server, env3, pat) => {
|
|
|
66915
66846
|
});
|
|
66916
66847
|
};
|
|
66917
66848
|
|
|
66918
|
-
// src/tools/platform/
|
|
66919
|
-
var
|
|
66849
|
+
// src/tools/platform/custom-deployment/restart.ts
|
|
66850
|
+
var platformCustomDeploymentRestart = (server, env3, pat) => {
|
|
66920
66851
|
const instance = env3.SETTLEMINT_INSTANCE;
|
|
66921
66852
|
if (!instance) {
|
|
66922
66853
|
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
@@ -66925,18 +66856,18 @@ var platformFoundryEnv = (server, env3, pat) => {
|
|
|
66925
66856
|
accessToken: pat,
|
|
66926
66857
|
instance
|
|
66927
66858
|
});
|
|
66928
|
-
server.tool("platform-
|
|
66929
|
-
|
|
66859
|
+
server.tool("platform-custom-deployment-restart", {
|
|
66860
|
+
customDeploymentUniqueName: z.string().describe("Unique name of the custom deployment to restart")
|
|
66930
66861
|
}, async (params) => {
|
|
66931
|
-
const
|
|
66862
|
+
const customDeployment = await client.customDeployment.restart(params.customDeploymentUniqueName);
|
|
66932
66863
|
return {
|
|
66933
66864
|
content: [
|
|
66934
66865
|
{
|
|
66935
66866
|
type: "text",
|
|
66936
|
-
name: "
|
|
66937
|
-
description: `
|
|
66867
|
+
name: "Custom Deployment Restarted",
|
|
66868
|
+
description: `Restarted custom deployment: ${params.customDeploymentUniqueName}`,
|
|
66938
66869
|
mimeType: "application/json",
|
|
66939
|
-
text: JSON.stringify(
|
|
66870
|
+
text: JSON.stringify(customDeployment, null, 2)
|
|
66940
66871
|
}
|
|
66941
66872
|
]
|
|
66942
66873
|
};
|
|
@@ -66957,6 +66888,7 @@ var platformInsightsCreate = (server, env3, pat) => {
|
|
|
66957
66888
|
applicationUniqueName: z.string().describe("Unique name of the application to create the insights in"),
|
|
66958
66889
|
name: z.string().describe("Name of the insights"),
|
|
66959
66890
|
type: z.enum(["DEDICATED", "SHARED"]).describe("Type of the insights (DEDICATED or SHARED)"),
|
|
66891
|
+
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the insights"),
|
|
66960
66892
|
provider: z.string().describe("Provider for the insights"),
|
|
66961
66893
|
region: z.string().describe("Region for the insights"),
|
|
66962
66894
|
insightsCategory: z.enum(["BLOCKCHAIN_EXPLORER", "HYPERLEDGER_EXPLORER", "OTTERSCAN_BLOCKCHAIN_EXPLORER"]).describe("Category of insights"),
|
|
@@ -67083,6 +67015,7 @@ var platformIntegrationToolCreate = (server, env3, pat) => {
|
|
|
67083
67015
|
applicationUniqueName: z.string().describe("Unique name of the application to create the integration tool in"),
|
|
67084
67016
|
name: z.string().describe("Name of the integration tool"),
|
|
67085
67017
|
type: z.enum(["DEDICATED", "SHARED"]).describe("Type of the integration tool (DEDICATED or SHARED)"),
|
|
67018
|
+
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the integration tool"),
|
|
67086
67019
|
provider: z.string().describe("Provider for the integration tool"),
|
|
67087
67020
|
region: z.string().describe("Region for the integration tool"),
|
|
67088
67021
|
integrationType: z.enum(["CHAINLINK", "HASURA", "INTEGRATION_STUDIO"]).describe("Type of integration")
|
|
@@ -67207,6 +67140,7 @@ var platformMiddlewareCreate = (server, env3, pat) => {
|
|
|
67207
67140
|
applicationUniqueName: z.string().describe("Unique name of the application to create the middleware in"),
|
|
67208
67141
|
name: z.string().describe("Name of the middleware"),
|
|
67209
67142
|
type: z.enum(["DEDICATED", "SHARED"]).describe("Type of the middleware (DEDICATED or SHARED)"),
|
|
67143
|
+
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the middleware"),
|
|
67210
67144
|
provider: z.string().describe("Provider for the middleware"),
|
|
67211
67145
|
region: z.string().describe("Region for the middleware"),
|
|
67212
67146
|
interface: z.enum(["ATTESTATION_INDEXER", "BESU", "FIREFLY_FABCONNECT", "GRAPH", "HA_GRAPH", "SMART_CONTRACT_PORTAL"]).describe("Interface type for the middleware"),
|
|
@@ -67235,35 +67169,6 @@ var platformMiddlewareCreate = (server, env3, pat) => {
|
|
|
67235
67169
|
});
|
|
67236
67170
|
};
|
|
67237
67171
|
|
|
67238
|
-
// src/tools/platform/middleware/graph-subgraphs.ts
|
|
67239
|
-
var platformMiddlewareGraphSubgraphs = (server, env3, pat) => {
|
|
67240
|
-
const instance = env3.SETTLEMINT_INSTANCE;
|
|
67241
|
-
if (!instance) {
|
|
67242
|
-
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
67243
|
-
}
|
|
67244
|
-
const client = createSettleMintClient({
|
|
67245
|
-
accessToken: pat,
|
|
67246
|
-
instance
|
|
67247
|
-
});
|
|
67248
|
-
server.tool("platform-middleware-graph-subgraphs", {
|
|
67249
|
-
middlewareUniqueName: z.string().describe("Unique name of the middleware to retrieve graph subgraphs from"),
|
|
67250
|
-
noCache: z.boolean().optional().describe("Whether to bypass cache when retrieving subgraphs")
|
|
67251
|
-
}, async (params) => {
|
|
67252
|
-
const middlewareWithSubgraphs = await client.middleware.graphSubgraphs(params.middlewareUniqueName, params.noCache);
|
|
67253
|
-
return {
|
|
67254
|
-
content: [
|
|
67255
|
-
{
|
|
67256
|
-
type: "text",
|
|
67257
|
-
name: "Middleware Graph Subgraphs",
|
|
67258
|
-
description: `Graph subgraphs for middleware: ${params.middlewareUniqueName}`,
|
|
67259
|
-
mimeType: "application/json",
|
|
67260
|
-
text: JSON.stringify(middlewareWithSubgraphs, null, 2)
|
|
67261
|
-
}
|
|
67262
|
-
]
|
|
67263
|
-
};
|
|
67264
|
-
});
|
|
67265
|
-
};
|
|
67266
|
-
|
|
67267
67172
|
// src/tools/platform/middleware/list.ts
|
|
67268
67173
|
var platformMiddlewareList = (server, env3, pat) => {
|
|
67269
67174
|
const instance = env3.SETTLEMINT_INSTANCE;
|
|
@@ -67348,32 +67253,6 @@ var platformMiddlewareRestart = (server, env3, pat) => {
|
|
|
67348
67253
|
});
|
|
67349
67254
|
};
|
|
67350
67255
|
|
|
67351
|
-
// src/tools/platform/platform/config.ts
|
|
67352
|
-
var platformPlatformConfig = (server, env3, pat) => {
|
|
67353
|
-
const instance = env3.SETTLEMINT_INSTANCE;
|
|
67354
|
-
if (!instance) {
|
|
67355
|
-
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
67356
|
-
}
|
|
67357
|
-
const client = createSettleMintClient({
|
|
67358
|
-
accessToken: pat,
|
|
67359
|
-
instance
|
|
67360
|
-
});
|
|
67361
|
-
server.tool("platform-platform-config", {}, async () => {
|
|
67362
|
-
const config3 = await client.platform.config();
|
|
67363
|
-
return {
|
|
67364
|
-
content: [
|
|
67365
|
-
{
|
|
67366
|
-
type: "text",
|
|
67367
|
-
name: "Platform Configuration",
|
|
67368
|
-
description: "Platform configuration details",
|
|
67369
|
-
mimeType: "application/json",
|
|
67370
|
-
text: JSON.stringify(config3, null, 2)
|
|
67371
|
-
}
|
|
67372
|
-
]
|
|
67373
|
-
};
|
|
67374
|
-
});
|
|
67375
|
-
};
|
|
67376
|
-
|
|
67377
67256
|
// src/tools/platform/private-key/create.ts
|
|
67378
67257
|
var platformPrivateKeyCreate = (server, env3, pat) => {
|
|
67379
67258
|
const instance = env3.SETTLEMINT_INSTANCE;
|
|
@@ -67508,6 +67387,7 @@ var platformStorageCreate = (server, env3, pat) => {
|
|
|
67508
67387
|
applicationUniqueName: z.string().describe("Unique name of the application to create the storage in"),
|
|
67509
67388
|
name: z.string().describe("Name of the storage"),
|
|
67510
67389
|
type: z.enum(["DEDICATED", "SHARED"]).describe("Type of the storage (DEDICATED or SHARED)"),
|
|
67390
|
+
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the storage"),
|
|
67511
67391
|
provider: z.string().describe("Provider for the storage"),
|
|
67512
67392
|
region: z.string().describe("Region for the storage"),
|
|
67513
67393
|
storageProtocol: z.enum(["IPFS", "MINIO"]).describe("Storage protocol (IPFS or MINIO)")
|
|
@@ -67618,135 +67498,6 @@ var platformStorageRestart = (server, env3, pat) => {
|
|
|
67618
67498
|
});
|
|
67619
67499
|
};
|
|
67620
67500
|
|
|
67621
|
-
// src/tools/platform/wallet/pincode-verification-response.ts
|
|
67622
|
-
var platformWalletPincodeVerificationResponse = (server, env3, pat) => {
|
|
67623
|
-
const instance = env3.SETTLEMINT_INSTANCE;
|
|
67624
|
-
if (!instance) {
|
|
67625
|
-
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
67626
|
-
}
|
|
67627
|
-
const client = createSettleMintClient({
|
|
67628
|
-
accessToken: pat,
|
|
67629
|
-
instance
|
|
67630
|
-
});
|
|
67631
|
-
server.tool("platform-wallet-pincode-verification-response", {
|
|
67632
|
-
userWalletAddress: z.string().describe("User wallet address"),
|
|
67633
|
-
pincode: z.string().describe("Pincode for verification"),
|
|
67634
|
-
nodeId: z.string().describe("Node ID")
|
|
67635
|
-
}, async (params) => {
|
|
67636
|
-
const response = await client.wallet.pincodeVerificationResponse({
|
|
67637
|
-
userWalletAddress: params.userWalletAddress,
|
|
67638
|
-
pincode: params.pincode,
|
|
67639
|
-
nodeId: params.nodeId
|
|
67640
|
-
});
|
|
67641
|
-
return {
|
|
67642
|
-
content: [
|
|
67643
|
-
{
|
|
67644
|
-
type: "text",
|
|
67645
|
-
name: "Pincode Verification Response",
|
|
67646
|
-
description: "Generated pincode verification response",
|
|
67647
|
-
mimeType: "text/plain",
|
|
67648
|
-
text: response
|
|
67649
|
-
}
|
|
67650
|
-
]
|
|
67651
|
-
};
|
|
67652
|
-
});
|
|
67653
|
-
};
|
|
67654
|
-
|
|
67655
|
-
// src/tools/platform/workspace/add-credits.ts
|
|
67656
|
-
var platformWorkspaceAddCredits = (server, env3, pat) => {
|
|
67657
|
-
const instance = env3.SETTLEMINT_INSTANCE;
|
|
67658
|
-
if (!instance) {
|
|
67659
|
-
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
67660
|
-
}
|
|
67661
|
-
const client = createSettleMintClient({
|
|
67662
|
-
accessToken: pat,
|
|
67663
|
-
instance
|
|
67664
|
-
});
|
|
67665
|
-
server.tool("platform-workspace-add-credits", {
|
|
67666
|
-
workspaceId: z.string().describe("ID of the workspace to add credits to"),
|
|
67667
|
-
amount: z.number().describe("Amount of credits to add")
|
|
67668
|
-
}, async (params) => {
|
|
67669
|
-
const result = await client.workspace.addCredits(params.workspaceId, params.amount);
|
|
67670
|
-
return {
|
|
67671
|
-
content: [
|
|
67672
|
-
{
|
|
67673
|
-
type: "text",
|
|
67674
|
-
name: "Credits Added",
|
|
67675
|
-
description: `Added ${params.amount} credits to workspace: ${params.workspaceId}`,
|
|
67676
|
-
mimeType: "application/json",
|
|
67677
|
-
text: JSON.stringify({ success: result }, null, 2)
|
|
67678
|
-
}
|
|
67679
|
-
]
|
|
67680
|
-
};
|
|
67681
|
-
});
|
|
67682
|
-
};
|
|
67683
|
-
|
|
67684
|
-
// src/tools/platform/workspace/create.ts
|
|
67685
|
-
var platformWorkspaceCreate = (server, env3, pat) => {
|
|
67686
|
-
const instance = env3.SETTLEMINT_INSTANCE;
|
|
67687
|
-
if (!instance) {
|
|
67688
|
-
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
67689
|
-
}
|
|
67690
|
-
const client = createSettleMintClient({
|
|
67691
|
-
accessToken: pat,
|
|
67692
|
-
instance
|
|
67693
|
-
});
|
|
67694
|
-
server.tool("platform-workspace-create", {
|
|
67695
|
-
name: z.string().describe("Name of the workspace"),
|
|
67696
|
-
addressLine1: z.string().optional().describe("Address line 1"),
|
|
67697
|
-
addressLine2: z.string().optional().describe("Address line 2"),
|
|
67698
|
-
city: z.string().optional().describe("City"),
|
|
67699
|
-
companyName: z.string().optional().describe("Company name"),
|
|
67700
|
-
country: z.string().optional().describe("Country"),
|
|
67701
|
-
parentId: z.string().optional().describe("Parent workspace ID"),
|
|
67702
|
-
paymentMethodId: z.string().optional().describe("Payment method ID"),
|
|
67703
|
-
postalCode: z.string().optional().describe("Postal code"),
|
|
67704
|
-
taxIdType: z.string().optional().describe("Tax ID type"),
|
|
67705
|
-
taxIdValue: z.string().optional().describe("Tax ID value")
|
|
67706
|
-
}, async (params) => {
|
|
67707
|
-
const workspace = await client.workspace.create(params);
|
|
67708
|
-
return {
|
|
67709
|
-
content: [
|
|
67710
|
-
{
|
|
67711
|
-
type: "text",
|
|
67712
|
-
name: "Workspace Created",
|
|
67713
|
-
description: `Created workspace: ${params.name}`,
|
|
67714
|
-
mimeType: "application/json",
|
|
67715
|
-
text: JSON.stringify(workspace, null, 2)
|
|
67716
|
-
}
|
|
67717
|
-
]
|
|
67718
|
-
};
|
|
67719
|
-
});
|
|
67720
|
-
};
|
|
67721
|
-
|
|
67722
|
-
// src/tools/platform/workspace/delete.ts
|
|
67723
|
-
var platformWorkspaceDelete = (server, env3, pat) => {
|
|
67724
|
-
const instance = env3.SETTLEMINT_INSTANCE;
|
|
67725
|
-
if (!instance) {
|
|
67726
|
-
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
67727
|
-
}
|
|
67728
|
-
const client = createSettleMintClient({
|
|
67729
|
-
accessToken: pat,
|
|
67730
|
-
instance
|
|
67731
|
-
});
|
|
67732
|
-
server.tool("platform-workspace-delete", {
|
|
67733
|
-
workspaceUniqueName: z.string().describe("Unique name of the workspace to delete")
|
|
67734
|
-
}, async (params) => {
|
|
67735
|
-
const workspace = await client.workspace.delete(params.workspaceUniqueName);
|
|
67736
|
-
return {
|
|
67737
|
-
content: [
|
|
67738
|
-
{
|
|
67739
|
-
type: "text",
|
|
67740
|
-
name: "Workspace Deleted",
|
|
67741
|
-
description: `Deleted workspace: ${params.workspaceUniqueName}`,
|
|
67742
|
-
mimeType: "application/json",
|
|
67743
|
-
text: JSON.stringify(workspace, null, 2)
|
|
67744
|
-
}
|
|
67745
|
-
]
|
|
67746
|
-
};
|
|
67747
|
-
});
|
|
67748
|
-
};
|
|
67749
|
-
|
|
67750
67501
|
// src/tools/platform/workspace/list.ts
|
|
67751
67502
|
var platformWorkspaceList = (server, env3, pat) => {
|
|
67752
67503
|
const instance = env3.SETTLEMINT_INSTANCE;
|
|
@@ -68239,17 +67990,11 @@ async function main() {
|
|
|
68239
67990
|
promptsResourcesToolsUsagePrompt(server);
|
|
68240
67991
|
platformWorkspaceList(server, env3, pat);
|
|
68241
67992
|
platformWorkspaceRead(server, env3, pat);
|
|
68242
|
-
platformWorkspaceCreate(server, env3, pat);
|
|
68243
|
-
platformWorkspaceDelete(server, env3, pat);
|
|
68244
|
-
platformWorkspaceAddCredits(server, env3, pat);
|
|
68245
67993
|
platformApplicationList(server, env3, pat);
|
|
68246
67994
|
platformApplicationRead(server, env3, pat);
|
|
68247
|
-
platformApplicationCreate(server, env3, pat);
|
|
68248
|
-
platformApplicationDelete(server, env3, pat);
|
|
68249
67995
|
platformBlockchainNetworkList(server, env3, pat);
|
|
68250
67996
|
platformBlockchainNetworkRead(server, env3, pat);
|
|
68251
67997
|
platformBlockchainNetworkCreate(server, env3, pat);
|
|
68252
|
-
platformBlockchainNetworkDelete(server, env3, pat);
|
|
68253
67998
|
platformBlockchainNetworkRestart(server, env3, pat);
|
|
68254
67999
|
platformBlockchainNodeList(server, env3, pat);
|
|
68255
68000
|
platformBlockchainNodeRead(server, env3, pat);
|
|
@@ -68257,7 +68002,6 @@ async function main() {
|
|
|
68257
68002
|
platformBlockchainNodeRestart(server, env3, pat);
|
|
68258
68003
|
platformMiddlewareList(server, env3, pat);
|
|
68259
68004
|
platformMiddlewareRead(server, env3, pat);
|
|
68260
|
-
platformMiddlewareGraphSubgraphs(server, env3, pat);
|
|
68261
68005
|
platformMiddlewareCreate(server, env3, pat);
|
|
68262
68006
|
platformMiddlewareRestart(server, env3, pat);
|
|
68263
68007
|
platformIntegrationToolList(server, env3, pat);
|
|
@@ -68278,10 +68022,9 @@ async function main() {
|
|
|
68278
68022
|
platformInsightsRestart(server, env3, pat);
|
|
68279
68023
|
platformCustomDeploymentList(server, env3, pat);
|
|
68280
68024
|
platformCustomDeploymentRead(server, env3, pat);
|
|
68281
|
-
|
|
68282
|
-
|
|
68283
|
-
|
|
68284
|
-
platformWalletPincodeVerificationResponse(server, env3, pat);
|
|
68025
|
+
platformCustomDeploymentCreate(server, env3, pat);
|
|
68026
|
+
platformCustomDeploymentRestart(server, env3, pat);
|
|
68027
|
+
platformCustomDeploymentEdit(server, env3, pat);
|
|
68285
68028
|
const transport = new StdioServerTransport;
|
|
68286
68029
|
await server.connect(transport);
|
|
68287
68030
|
} catch (error2) {
|
|
@@ -68294,4 +68037,4 @@ await main().catch((error2) => {
|
|
|
68294
68037
|
process.exit(1);
|
|
68295
68038
|
});
|
|
68296
68039
|
|
|
68297
|
-
//# debugId=
|
|
68040
|
+
//# debugId=EB7086A76684384564756E2164756E21
|