@settlemint/sdk-mcp 2.1.4-pr0619d764 → 2.1.4-pr09bd8ab0
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 +151 -8
- package/dist/mcp.js.map +11 -7
- package/package.json +3 -3
package/dist/mcp.js
CHANGED
|
@@ -61134,7 +61134,7 @@ var {
|
|
|
61134
61134
|
var package_default = {
|
|
61135
61135
|
name: "@settlemint/sdk-mcp",
|
|
61136
61136
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
61137
|
-
version: "2.1.4-
|
|
61137
|
+
version: "2.1.4-pr09bd8ab0",
|
|
61138
61138
|
type: "module",
|
|
61139
61139
|
private: false,
|
|
61140
61140
|
license: "FSL-1.1-MIT",
|
|
@@ -61176,8 +61176,8 @@ var package_default = {
|
|
|
61176
61176
|
"@graphql-tools/load": "8.1.0",
|
|
61177
61177
|
"@graphql-tools/url-loader": "8.0.31",
|
|
61178
61178
|
"@modelcontextprotocol/sdk": "1.10.2",
|
|
61179
|
-
"@settlemint/sdk-js": "2.1.4-
|
|
61180
|
-
"@settlemint/sdk-utils": "2.1.4-
|
|
61179
|
+
"@settlemint/sdk-js": "2.1.4-pr09bd8ab0",
|
|
61180
|
+
"@settlemint/sdk-utils": "2.1.4-pr09bd8ab0",
|
|
61181
61181
|
"@commander-js/extra-typings": "11.1.0",
|
|
61182
61182
|
commander: "11.1.0",
|
|
61183
61183
|
zod: "3.24.3"
|
|
@@ -61941,6 +61941,7 @@ var registerBlockchainConcepts = (server) => {
|
|
|
61941
61941
|
### Blockchain Networks
|
|
61942
61942
|
- **Blockchain Network**: A blockchain instance running on the SettleMint platform
|
|
61943
61943
|
- **Blockchain Node**: Individual node in a blockchain network
|
|
61944
|
+
- **Load Balancer**: Distributes incoming JSON-RPC requests across multiple blockchain nodes
|
|
61944
61945
|
- **Network Type**: Type of blockchain network (Ethereum, Fabric, etc.)
|
|
61945
61946
|
- **Consensus Mechanism**: Method used to achieve agreement on the blockchain state
|
|
61946
61947
|
|
|
@@ -65625,8 +65626,12 @@ var platformInsightsCreate = (server, env3, pat) => {
|
|
|
65625
65626
|
provider: z.string().describe("Provider for the insights"),
|
|
65626
65627
|
region: z.string().describe("Region for the insights"),
|
|
65627
65628
|
insightsCategory: z.enum(["BLOCKCHAIN_EXPLORER", "HYPERLEDGER_EXPLORER", "OTTERSCAN_BLOCKCHAIN_EXPLORER"]).describe("Category of insights"),
|
|
65628
|
-
blockchainNodeUniqueName: z.string().optional().describe("Unique name of the blockchain node to connect to")
|
|
65629
|
+
blockchainNodeUniqueName: z.string().optional().describe("Unique name of the blockchain node to connect to (mutually exclusive with loadBalancerUniqueName)"),
|
|
65630
|
+
loadBalancerUniqueName: z.string().optional().describe("Unique name of the load balancer to connect to (mutually exclusive with blockchainNodeUniqueName), prefer using a load balancer if available")
|
|
65629
65631
|
}, async (params) => {
|
|
65632
|
+
if (params.blockchainNodeUniqueName && params.loadBalancerUniqueName) {
|
|
65633
|
+
throw new Error("Only one of 'blockchainNodeUniqueName' and 'loadBalancerUniqueName' may be provided");
|
|
65634
|
+
}
|
|
65630
65635
|
const insights = await client.insights.create({
|
|
65631
65636
|
applicationUniqueName: params.applicationUniqueName,
|
|
65632
65637
|
name: params.name,
|
|
@@ -65635,7 +65640,8 @@ var platformInsightsCreate = (server, env3, pat) => {
|
|
|
65635
65640
|
provider: params.provider,
|
|
65636
65641
|
region: params.region,
|
|
65637
65642
|
insightsCategory: params.insightsCategory,
|
|
65638
|
-
blockchainNodeUniqueName: params.blockchainNodeUniqueName
|
|
65643
|
+
blockchainNodeUniqueName: params.blockchainNodeUniqueName,
|
|
65644
|
+
loadBalancerUniqueName: params.loadBalancerUniqueName
|
|
65639
65645
|
});
|
|
65640
65646
|
return {
|
|
65641
65647
|
content: [
|
|
@@ -65861,6 +65867,134 @@ var platformIntegrationToolRestart = (server, env3, pat) => {
|
|
|
65861
65867
|
});
|
|
65862
65868
|
};
|
|
65863
65869
|
|
|
65870
|
+
// src/tools/platform/load-balancer/create.ts
|
|
65871
|
+
var platformLoadBalancerCreate = (server, env3, pat) => {
|
|
65872
|
+
const instance = env3.SETTLEMINT_INSTANCE;
|
|
65873
|
+
if (!instance) {
|
|
65874
|
+
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
65875
|
+
}
|
|
65876
|
+
const client = createSettleMintClient({
|
|
65877
|
+
accessToken: pat,
|
|
65878
|
+
instance
|
|
65879
|
+
});
|
|
65880
|
+
server.tool("platform-load-balancer-create", {
|
|
65881
|
+
applicationUniqueName: z.string().describe("Unique name of the application to create the load balancer in"),
|
|
65882
|
+
name: z.string().describe("Name of the load balancer"),
|
|
65883
|
+
type: z.enum(["DEDICATED", "SHARED"]).describe("Type of the load balancer (DEDICATED or SHARED)"),
|
|
65884
|
+
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the load balancer"),
|
|
65885
|
+
provider: z.string().describe("Provider for the load balancer"),
|
|
65886
|
+
region: z.string().describe("Region for the load balancer"),
|
|
65887
|
+
blockchainNetworkUniqueName: z.string().describe("Unique name of the blockchain network for the load balancer"),
|
|
65888
|
+
connectedNodesUniqueNames: z.array(z.string()).describe("Unique names of the nodes to connect to the load balancer")
|
|
65889
|
+
}, async (params) => {
|
|
65890
|
+
const loadBalancer = await client.loadBalancer.create({
|
|
65891
|
+
applicationUniqueName: params.applicationUniqueName,
|
|
65892
|
+
name: params.name,
|
|
65893
|
+
type: params.type,
|
|
65894
|
+
size: params.size,
|
|
65895
|
+
provider: params.provider,
|
|
65896
|
+
region: params.region,
|
|
65897
|
+
blockchainNetworkUniqueName: params.blockchainNetworkUniqueName,
|
|
65898
|
+
connectedNodesUniqueNames: params.connectedNodesUniqueNames
|
|
65899
|
+
});
|
|
65900
|
+
return {
|
|
65901
|
+
content: [
|
|
65902
|
+
{
|
|
65903
|
+
type: "text",
|
|
65904
|
+
name: "Load Balancer Created",
|
|
65905
|
+
description: `Created load balancer: ${params.name} in application: ${params.applicationUniqueName}`,
|
|
65906
|
+
mimeType: "application/json",
|
|
65907
|
+
text: JSON.stringify(loadBalancer, null, 2)
|
|
65908
|
+
}
|
|
65909
|
+
]
|
|
65910
|
+
};
|
|
65911
|
+
});
|
|
65912
|
+
};
|
|
65913
|
+
|
|
65914
|
+
// src/tools/platform/load-balancer/list.ts
|
|
65915
|
+
var platformLoadBalancerList = (server, env3, pat) => {
|
|
65916
|
+
const instance = env3.SETTLEMINT_INSTANCE;
|
|
65917
|
+
if (!instance) {
|
|
65918
|
+
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
65919
|
+
}
|
|
65920
|
+
const client = createSettleMintClient({
|
|
65921
|
+
accessToken: pat,
|
|
65922
|
+
instance
|
|
65923
|
+
});
|
|
65924
|
+
server.tool("platform-load-balancer-list", {
|
|
65925
|
+
applicationUniqueName: z.string().describe("Unique name of the application to list load balancers from")
|
|
65926
|
+
}, async (params) => {
|
|
65927
|
+
const loadBalancers = await client.loadBalancer.list(params.applicationUniqueName);
|
|
65928
|
+
return {
|
|
65929
|
+
content: [
|
|
65930
|
+
{
|
|
65931
|
+
type: "text",
|
|
65932
|
+
name: "Load Balancer List",
|
|
65933
|
+
description: `List of load balancers in application: ${params.applicationUniqueName}`,
|
|
65934
|
+
mimeType: "application/json",
|
|
65935
|
+
text: JSON.stringify(loadBalancers, null, 2)
|
|
65936
|
+
}
|
|
65937
|
+
]
|
|
65938
|
+
};
|
|
65939
|
+
});
|
|
65940
|
+
};
|
|
65941
|
+
|
|
65942
|
+
// src/tools/platform/load-balancer/read.ts
|
|
65943
|
+
var platformLoadBalancerRead = (server, env3, pat) => {
|
|
65944
|
+
const instance = env3.SETTLEMINT_INSTANCE;
|
|
65945
|
+
if (!instance) {
|
|
65946
|
+
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
65947
|
+
}
|
|
65948
|
+
const client = createSettleMintClient({
|
|
65949
|
+
accessToken: pat,
|
|
65950
|
+
instance
|
|
65951
|
+
});
|
|
65952
|
+
server.tool("platform-load-balancer-read", {
|
|
65953
|
+
loadBalancerUniqueName: z.string().describe("Unique name of the load balancer to read")
|
|
65954
|
+
}, async (params) => {
|
|
65955
|
+
const loadBalancer = await client.loadBalancer.read(params.loadBalancerUniqueName);
|
|
65956
|
+
return {
|
|
65957
|
+
content: [
|
|
65958
|
+
{
|
|
65959
|
+
type: "text",
|
|
65960
|
+
name: "Load Balancer Details",
|
|
65961
|
+
description: `Details for load balancer: ${params.loadBalancerUniqueName}`,
|
|
65962
|
+
mimeType: "application/json",
|
|
65963
|
+
text: JSON.stringify(loadBalancer, null, 2)
|
|
65964
|
+
}
|
|
65965
|
+
]
|
|
65966
|
+
};
|
|
65967
|
+
});
|
|
65968
|
+
};
|
|
65969
|
+
|
|
65970
|
+
// src/tools/platform/load-balancer/restart.ts
|
|
65971
|
+
var platformLoadBalancerRestart = (server, env3, pat) => {
|
|
65972
|
+
const instance = env3.SETTLEMINT_INSTANCE;
|
|
65973
|
+
if (!instance) {
|
|
65974
|
+
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
65975
|
+
}
|
|
65976
|
+
const client = createSettleMintClient({
|
|
65977
|
+
accessToken: pat,
|
|
65978
|
+
instance
|
|
65979
|
+
});
|
|
65980
|
+
server.tool("platform-load-balancer-restart", {
|
|
65981
|
+
loadBalancerUniqueName: z.string().describe("Unique name of the load balancer to restart")
|
|
65982
|
+
}, async (params) => {
|
|
65983
|
+
const loadBalancer = await client.loadBalancer.restart(params.loadBalancerUniqueName);
|
|
65984
|
+
return {
|
|
65985
|
+
content: [
|
|
65986
|
+
{
|
|
65987
|
+
type: "text",
|
|
65988
|
+
name: "Load Balancer Restarted",
|
|
65989
|
+
description: `Restarted load balancer: ${params.loadBalancerUniqueName}`,
|
|
65990
|
+
mimeType: "application/json",
|
|
65991
|
+
text: JSON.stringify(loadBalancer, null, 2)
|
|
65992
|
+
}
|
|
65993
|
+
]
|
|
65994
|
+
};
|
|
65995
|
+
});
|
|
65996
|
+
};
|
|
65997
|
+
|
|
65864
65998
|
// src/tools/platform/middleware/create.ts
|
|
65865
65999
|
var platformMiddlewareCreate = (server, env3, pat) => {
|
|
65866
66000
|
const instance = env3.SETTLEMINT_INSTANCE;
|
|
@@ -65879,8 +66013,12 @@ var platformMiddlewareCreate = (server, env3, pat) => {
|
|
|
65879
66013
|
provider: z.string().describe("Provider for the middleware"),
|
|
65880
66014
|
region: z.string().describe("Region for the middleware"),
|
|
65881
66015
|
interface: z.enum(["ATTESTATION_INDEXER", "BESU", "FIREFLY_FABCONNECT", "GRAPH", "HA_GRAPH", "SMART_CONTRACT_PORTAL"]).describe("Interface type for the middleware"),
|
|
65882
|
-
blockchainNodeUniqueName: z.string().optional().describe("Unique name of the blockchain node to connect to")
|
|
66016
|
+
blockchainNodeUniqueName: z.string().optional().describe("Unique name of the blockchain node to connect to (mutually exclusive with loadBalancerUniqueName), preferred option for interface SMART_CONTRACT_PORTAL"),
|
|
66017
|
+
loadBalancerUniqueName: z.string().optional().describe("Unique name of the load balancer to connect to (mutually exclusive with blockchainNodeUniqueName), preferred option for all other interfaces")
|
|
65883
66018
|
}, async (params) => {
|
|
66019
|
+
if (params.blockchainNodeUniqueName && params.loadBalancerUniqueName) {
|
|
66020
|
+
throw new Error("Only one of 'blockchainNodeUniqueName' and 'loadBalancerUniqueName' may be provided");
|
|
66021
|
+
}
|
|
65884
66022
|
const middleware = await client.middleware.create({
|
|
65885
66023
|
applicationUniqueName: params.applicationUniqueName,
|
|
65886
66024
|
name: params.name,
|
|
@@ -65889,7 +66027,8 @@ var platformMiddlewareCreate = (server, env3, pat) => {
|
|
|
65889
66027
|
provider: params.provider,
|
|
65890
66028
|
region: params.region,
|
|
65891
66029
|
interface: params.interface,
|
|
65892
|
-
blockchainNodeUniqueName: params.blockchainNodeUniqueName
|
|
66030
|
+
blockchainNodeUniqueName: params.blockchainNodeUniqueName,
|
|
66031
|
+
loadBalancerUniqueName: params.loadBalancerUniqueName
|
|
65893
66032
|
});
|
|
65894
66033
|
return {
|
|
65895
66034
|
content: [
|
|
@@ -66737,6 +66876,10 @@ async function main() {
|
|
|
66737
66876
|
platformBlockchainNodeRead(server, env3, pat);
|
|
66738
66877
|
platformBlockchainNodeCreate(server, env3, pat);
|
|
66739
66878
|
platformBlockchainNodeRestart(server, env3, pat);
|
|
66879
|
+
platformLoadBalancerList(server, env3, pat);
|
|
66880
|
+
platformLoadBalancerRead(server, env3, pat);
|
|
66881
|
+
platformLoadBalancerCreate(server, env3, pat);
|
|
66882
|
+
platformLoadBalancerRestart(server, env3, pat);
|
|
66740
66883
|
platformMiddlewareList(server, env3, pat);
|
|
66741
66884
|
platformMiddlewareRead(server, env3, pat);
|
|
66742
66885
|
platformMiddlewareCreate(server, env3, pat);
|
|
@@ -66774,4 +66917,4 @@ await main().catch((error2) => {
|
|
|
66774
66917
|
process.exit(1);
|
|
66775
66918
|
});
|
|
66776
66919
|
|
|
66777
|
-
//# debugId=
|
|
66920
|
+
//# debugId=F535B59976F70AB664756E2164756E21
|