@settlemint/sdk-mcp 2.1.4-prf0b81bca → 2.1.4-prf73197fc
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 +146 -8
- package/dist/mcp.js.map +12 -8
- package/package.json +3 -3
package/dist/mcp.js
CHANGED
|
@@ -61129,7 +61129,7 @@ var {
|
|
|
61129
61129
|
var package_default = {
|
|
61130
61130
|
name: "@settlemint/sdk-mcp",
|
|
61131
61131
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
61132
|
-
version: "2.1.4-
|
|
61132
|
+
version: "2.1.4-prf73197fc",
|
|
61133
61133
|
type: "module",
|
|
61134
61134
|
private: false,
|
|
61135
61135
|
license: "FSL-1.1-MIT",
|
|
@@ -61171,8 +61171,8 @@ var package_default = {
|
|
|
61171
61171
|
"@graphql-tools/load": "8.1.0",
|
|
61172
61172
|
"@graphql-tools/url-loader": "8.0.31",
|
|
61173
61173
|
"@modelcontextprotocol/sdk": "1.10.2",
|
|
61174
|
-
"@settlemint/sdk-js": "2.1.4-
|
|
61175
|
-
"@settlemint/sdk-utils": "2.1.4-
|
|
61174
|
+
"@settlemint/sdk-js": "2.1.4-prf73197fc",
|
|
61175
|
+
"@settlemint/sdk-utils": "2.1.4-prf73197fc",
|
|
61176
61176
|
"@commander-js/extra-typings": "11.1.0",
|
|
61177
61177
|
commander: "11.1.0",
|
|
61178
61178
|
zod: "3.24.3"
|
|
@@ -61936,6 +61936,7 @@ var registerBlockchainConcepts = (server) => {
|
|
|
61936
61936
|
### Blockchain Networks
|
|
61937
61937
|
- **Blockchain Network**: A blockchain instance running on the SettleMint platform
|
|
61938
61938
|
- **Blockchain Node**: Individual node in a blockchain network
|
|
61939
|
+
- **Load Balancer**: Distributes incoming JSON-RPC requests across multiple blockchain nodes
|
|
61939
61940
|
- **Network Type**: Type of blockchain network (Ethereum, Fabric, etc.)
|
|
61940
61941
|
- **Consensus Mechanism**: Method used to achieve agreement on the blockchain state
|
|
61941
61942
|
|
|
@@ -64233,6 +64234,7 @@ var getEnv = (gqlClient) => {
|
|
|
64233
64234
|
};
|
|
64234
64235
|
var LoadBalancerFragment = graphql(`
|
|
64235
64236
|
fragment LoadBalancer on LoadBalancer {
|
|
64237
|
+
__typename
|
|
64236
64238
|
id
|
|
64237
64239
|
uniqueName
|
|
64238
64240
|
name
|
|
@@ -65619,7 +65621,8 @@ var platformInsightsCreate = (server, env3, pat) => {
|
|
|
65619
65621
|
provider: z.string().describe("Provider for the insights"),
|
|
65620
65622
|
region: z.string().describe("Region for the insights"),
|
|
65621
65623
|
insightsCategory: z.enum(["BLOCKCHAIN_EXPLORER", "HYPERLEDGER_EXPLORER", "OTTERSCAN_BLOCKCHAIN_EXPLORER"]).describe("Category of insights"),
|
|
65622
|
-
blockchainNodeUniqueName: z.string().optional().describe("Unique name of the blockchain node to connect to")
|
|
65624
|
+
blockchainNodeUniqueName: z.string().optional().describe("Unique name of the blockchain node to connect to (mutually exclusive with loadBalancerUniqueName)"),
|
|
65625
|
+
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")
|
|
65623
65626
|
}, async (params) => {
|
|
65624
65627
|
const insights = await client.insights.create({
|
|
65625
65628
|
applicationUniqueName: params.applicationUniqueName,
|
|
@@ -65629,7 +65632,8 @@ var platformInsightsCreate = (server, env3, pat) => {
|
|
|
65629
65632
|
provider: params.provider,
|
|
65630
65633
|
region: params.region,
|
|
65631
65634
|
insightsCategory: params.insightsCategory,
|
|
65632
|
-
blockchainNodeUniqueName: params.blockchainNodeUniqueName
|
|
65635
|
+
blockchainNodeUniqueName: params.blockchainNodeUniqueName,
|
|
65636
|
+
loadBalancerUniqueName: params.loadBalancerUniqueName
|
|
65633
65637
|
});
|
|
65634
65638
|
return {
|
|
65635
65639
|
content: [
|
|
@@ -65855,6 +65859,134 @@ var platformIntegrationToolRestart = (server, env3, pat) => {
|
|
|
65855
65859
|
});
|
|
65856
65860
|
};
|
|
65857
65861
|
|
|
65862
|
+
// src/tools/platform/load-balancer/create.ts
|
|
65863
|
+
var platformLoadBalancerCreate = (server, env3, pat) => {
|
|
65864
|
+
const instance = env3.SETTLEMINT_INSTANCE;
|
|
65865
|
+
if (!instance) {
|
|
65866
|
+
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
65867
|
+
}
|
|
65868
|
+
const client = createSettleMintClient({
|
|
65869
|
+
accessToken: pat,
|
|
65870
|
+
instance
|
|
65871
|
+
});
|
|
65872
|
+
server.tool("platform-load-balancer-create", {
|
|
65873
|
+
applicationUniqueName: z.string().describe("Unique name of the application to create the load balancer in"),
|
|
65874
|
+
name: z.string().describe("Name of the load balancer"),
|
|
65875
|
+
type: z.enum(["DEDICATED", "SHARED"]).describe("Type of the load balancer (DEDICATED or SHARED)"),
|
|
65876
|
+
size: z.enum(["SMALL", "MEDIUM", "LARGE"]).describe("Size of the load balancer"),
|
|
65877
|
+
provider: z.string().describe("Provider for the load balancer"),
|
|
65878
|
+
region: z.string().describe("Region for the load balancer"),
|
|
65879
|
+
blockchainNetworkUniqueName: z.string().describe("Unique name of the blockchain network for the load balancer"),
|
|
65880
|
+
connectedNodesUniqueNames: z.array(z.string()).describe("Unique names of the nodes to connect to the load balancer")
|
|
65881
|
+
}, async (params) => {
|
|
65882
|
+
const loadBalancer = await client.loadBalancer.create({
|
|
65883
|
+
applicationUniqueName: params.applicationUniqueName,
|
|
65884
|
+
name: params.name,
|
|
65885
|
+
type: params.type,
|
|
65886
|
+
size: params.size,
|
|
65887
|
+
provider: params.provider,
|
|
65888
|
+
region: params.region,
|
|
65889
|
+
blockchainNetworkUniqueName: params.blockchainNetworkUniqueName,
|
|
65890
|
+
connectedNodesUniqueNames: params.connectedNodesUniqueNames
|
|
65891
|
+
});
|
|
65892
|
+
return {
|
|
65893
|
+
content: [
|
|
65894
|
+
{
|
|
65895
|
+
type: "text",
|
|
65896
|
+
name: "Load Balancer Created",
|
|
65897
|
+
description: `Created load balancer: ${params.name} in application: ${params.applicationUniqueName}`,
|
|
65898
|
+
mimeType: "application/json",
|
|
65899
|
+
text: JSON.stringify(loadBalancer, null, 2)
|
|
65900
|
+
}
|
|
65901
|
+
]
|
|
65902
|
+
};
|
|
65903
|
+
});
|
|
65904
|
+
};
|
|
65905
|
+
|
|
65906
|
+
// src/tools/platform/load-balancer/list.ts
|
|
65907
|
+
var platformLoadBalancerList = (server, env3, pat) => {
|
|
65908
|
+
const instance = env3.SETTLEMINT_INSTANCE;
|
|
65909
|
+
if (!instance) {
|
|
65910
|
+
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
65911
|
+
}
|
|
65912
|
+
const client = createSettleMintClient({
|
|
65913
|
+
accessToken: pat,
|
|
65914
|
+
instance
|
|
65915
|
+
});
|
|
65916
|
+
server.tool("platform-load-balancer-list", {
|
|
65917
|
+
applicationUniqueName: z.string().describe("Unique name of the application to list load balancers from")
|
|
65918
|
+
}, async (params) => {
|
|
65919
|
+
const loadBalancers = await client.loadBalancer.list(params.applicationUniqueName);
|
|
65920
|
+
return {
|
|
65921
|
+
content: [
|
|
65922
|
+
{
|
|
65923
|
+
type: "text",
|
|
65924
|
+
name: "Load Balancer List",
|
|
65925
|
+
description: `List of load balancers in application: ${params.applicationUniqueName}`,
|
|
65926
|
+
mimeType: "application/json",
|
|
65927
|
+
text: JSON.stringify(loadBalancers, null, 2)
|
|
65928
|
+
}
|
|
65929
|
+
]
|
|
65930
|
+
};
|
|
65931
|
+
});
|
|
65932
|
+
};
|
|
65933
|
+
|
|
65934
|
+
// src/tools/platform/load-balancer/read.ts
|
|
65935
|
+
var platformLoadBalancerRead = (server, env3, pat) => {
|
|
65936
|
+
const instance = env3.SETTLEMINT_INSTANCE;
|
|
65937
|
+
if (!instance) {
|
|
65938
|
+
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
65939
|
+
}
|
|
65940
|
+
const client = createSettleMintClient({
|
|
65941
|
+
accessToken: pat,
|
|
65942
|
+
instance
|
|
65943
|
+
});
|
|
65944
|
+
server.tool("platform-load-balancer-read", {
|
|
65945
|
+
loadBalancerUniqueName: z.string().describe("Unique name of the load balancer to read")
|
|
65946
|
+
}, async (params) => {
|
|
65947
|
+
const loadBalancer = await client.loadBalancer.read(params.loadBalancerUniqueName);
|
|
65948
|
+
return {
|
|
65949
|
+
content: [
|
|
65950
|
+
{
|
|
65951
|
+
type: "text",
|
|
65952
|
+
name: "Load Balancer Details",
|
|
65953
|
+
description: `Details for load balancer: ${params.loadBalancerUniqueName}`,
|
|
65954
|
+
mimeType: "application/json",
|
|
65955
|
+
text: JSON.stringify(loadBalancer, null, 2)
|
|
65956
|
+
}
|
|
65957
|
+
]
|
|
65958
|
+
};
|
|
65959
|
+
});
|
|
65960
|
+
};
|
|
65961
|
+
|
|
65962
|
+
// src/tools/platform/load-balancer/restart.ts
|
|
65963
|
+
var platformLoadBalancerRestart = (server, env3, pat) => {
|
|
65964
|
+
const instance = env3.SETTLEMINT_INSTANCE;
|
|
65965
|
+
if (!instance) {
|
|
65966
|
+
throw new Error("SETTLEMINT_INSTANCE is not set");
|
|
65967
|
+
}
|
|
65968
|
+
const client = createSettleMintClient({
|
|
65969
|
+
accessToken: pat,
|
|
65970
|
+
instance
|
|
65971
|
+
});
|
|
65972
|
+
server.tool("platform-load-balancer-restart", {
|
|
65973
|
+
loadBalancerUniqueName: z.string().describe("Unique name of the load balancer to restart")
|
|
65974
|
+
}, async (params) => {
|
|
65975
|
+
const loadBalancer = await client.loadBalancer.restart(params.loadBalancerUniqueName);
|
|
65976
|
+
return {
|
|
65977
|
+
content: [
|
|
65978
|
+
{
|
|
65979
|
+
type: "text",
|
|
65980
|
+
name: "Load Balancer Restarted",
|
|
65981
|
+
description: `Restarted load balancer: ${params.loadBalancerUniqueName}`,
|
|
65982
|
+
mimeType: "application/json",
|
|
65983
|
+
text: JSON.stringify(loadBalancer, null, 2)
|
|
65984
|
+
}
|
|
65985
|
+
]
|
|
65986
|
+
};
|
|
65987
|
+
});
|
|
65988
|
+
};
|
|
65989
|
+
|
|
65858
65990
|
// src/tools/platform/middleware/create.ts
|
|
65859
65991
|
var platformMiddlewareCreate = (server, env3, pat) => {
|
|
65860
65992
|
const instance = env3.SETTLEMINT_INSTANCE;
|
|
@@ -65873,7 +66005,8 @@ var platformMiddlewareCreate = (server, env3, pat) => {
|
|
|
65873
66005
|
provider: z.string().describe("Provider for the middleware"),
|
|
65874
66006
|
region: z.string().describe("Region for the middleware"),
|
|
65875
66007
|
interface: z.enum(["ATTESTATION_INDEXER", "BESU", "FIREFLY_FABCONNECT", "GRAPH", "HA_GRAPH", "SMART_CONTRACT_PORTAL"]).describe("Interface type for the middleware"),
|
|
65876
|
-
blockchainNodeUniqueName: z.string().optional().describe("Unique name of the blockchain node to connect to")
|
|
66008
|
+
blockchainNodeUniqueName: z.string().optional().describe("Unique name of the blockchain node to connect to (mutually exclusive with loadBalancerUniqueName), prefered option for interface SMART_CONTRACT_PORTAL"),
|
|
66009
|
+
loadBalancerUniqueName: z.string().optional().describe("Unique name of the load balancer to connect to (mutually exclusive with blockchainNodeUniqueName), prefered option for all other interfaces")
|
|
65877
66010
|
}, async (params) => {
|
|
65878
66011
|
const middleware = await client.middleware.create({
|
|
65879
66012
|
applicationUniqueName: params.applicationUniqueName,
|
|
@@ -65883,7 +66016,8 @@ var platformMiddlewareCreate = (server, env3, pat) => {
|
|
|
65883
66016
|
provider: params.provider,
|
|
65884
66017
|
region: params.region,
|
|
65885
66018
|
interface: params.interface,
|
|
65886
|
-
blockchainNodeUniqueName: params.blockchainNodeUniqueName
|
|
66019
|
+
blockchainNodeUniqueName: params.blockchainNodeUniqueName,
|
|
66020
|
+
loadBalancerUniqueName: params.loadBalancerUniqueName
|
|
65887
66021
|
});
|
|
65888
66022
|
return {
|
|
65889
66023
|
content: [
|
|
@@ -66731,6 +66865,10 @@ async function main() {
|
|
|
66731
66865
|
platformBlockchainNodeRead(server, env3, pat);
|
|
66732
66866
|
platformBlockchainNodeCreate(server, env3, pat);
|
|
66733
66867
|
platformBlockchainNodeRestart(server, env3, pat);
|
|
66868
|
+
platformLoadBalancerList(server, env3, pat);
|
|
66869
|
+
platformLoadBalancerRead(server, env3, pat);
|
|
66870
|
+
platformLoadBalancerCreate(server, env3, pat);
|
|
66871
|
+
platformLoadBalancerRestart(server, env3, pat);
|
|
66734
66872
|
platformMiddlewareList(server, env3, pat);
|
|
66735
66873
|
platformMiddlewareRead(server, env3, pat);
|
|
66736
66874
|
platformMiddlewareCreate(server, env3, pat);
|
|
@@ -66768,4 +66906,4 @@ await main().catch((error2) => {
|
|
|
66768
66906
|
process.exit(1);
|
|
66769
66907
|
});
|
|
66770
66908
|
|
|
66771
|
-
//# debugId=
|
|
66909
|
+
//# debugId=B3DD2A93665514E464756E2164756E21
|