@settlemint/sdk-mcp 1.1.16-pr0a9c9b21 → 1.1.16-pr18cd48b2
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/README.md +44 -0
- package/dist/mcp.js +4 -4
- package/dist/mcp.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -121,6 +121,32 @@ By leveraging MCP, SettleMint enables scenarios where:
|
|
|
121
121
|
- Autonomous agents can manage blockchain infrastructure tasks (deploying contracts, adjusting configurations) without human intervention, guided by AI decision-making.
|
|
122
122
|
- Developers using SettleMint can integrate advanced AI functionalities into their blockchain applications with relatively little effort, because MCP handles the heavy lifting of connecting the two worlds.
|
|
123
123
|
|
|
124
|
+
```mermaid
|
|
125
|
+
sequenceDiagram
|
|
126
|
+
participant AI as AI Model (Agent)
|
|
127
|
+
participant MCP as MCP Server
|
|
128
|
+
participant Chain as The Graph / Portal / Node
|
|
129
|
+
participant API as External API
|
|
130
|
+
|
|
131
|
+
AI->>MCP: (1) Query request (e.g., get contract state)
|
|
132
|
+
Note over AI,MCP: AI asks MCP for on-chain data
|
|
133
|
+
MCP-->>AI: (2) Acknowledgement & processing
|
|
134
|
+
|
|
135
|
+
MCP->>Chain: (3) Fetch data from blockchain
|
|
136
|
+
Chain-->>MCP: (4) Return contract state
|
|
137
|
+
|
|
138
|
+
MCP->>API: (5) [Optional] Fetch related off-chain data
|
|
139
|
+
API-->>MCP: (6) Return external data
|
|
140
|
+
|
|
141
|
+
MCP-->>AI: (7) Send combined response
|
|
142
|
+
Note over AI,MCP: AI receives on-chain data (and any other context)
|
|
143
|
+
|
|
144
|
+
AI->>MCP: (8) Action request (e.g., execute transaction)
|
|
145
|
+
MCP->>Chain: (9) Submit transaction to blockchain
|
|
146
|
+
Chain-->>MCP: (10) Return tx result/receipt
|
|
147
|
+
MCP-->>AI: (11) Confirm action result
|
|
148
|
+
```
|
|
149
|
+
|
|
124
150
|
In summary, SettleMint's version of MCP extends their platform's capabilities, allowing for AI-driven blockchain operations. This combination brings together the trust and transparency of blockchain with the adaptability and intelligence of AI.
|
|
125
151
|
|
|
126
152
|
### Capabilities and Features
|
|
@@ -264,7 +290,25 @@ Open Windsurf and navigate to the Cascade assistant. Tap on the hammer (MCP) ico
|
|
|
264
290
|
|
|
265
291
|
Save the configuration file and reload by tapping Refresh in the Cascade assistant. You should see a green active status after the server is successfully connected.
|
|
266
292
|
|
|
293
|
+
### AI-Driven Blockchain Application or Agent
|
|
294
|
+
|
|
295
|
+
To illustrate a real-world scenario, consider an AI-driven Decentralized Finance (DeFi) application. In DeFi, conditions change rapidly (prices, liquidity, user activity), and it's critical to respond quickly.
|
|
296
|
+
|
|
297
|
+
Scenario: You have a smart contract that manages an automatic liquidity pool. You want to ensure it remains balanced - if one asset's price drops or the pool becomes unbalanced, you'd like to adjust fees or parameters automatically.
|
|
298
|
+
|
|
299
|
+
Using MCP in this scenario:
|
|
300
|
+
|
|
301
|
+
1. An AI agent monitors the liquidity pool via MCP. Every few minutes, it requests the latest pool balances and external price data (from on-chain or off-chain oracles) through the MCP server.
|
|
302
|
+
2. MCP fetches the latest state from the blockchain (pool reserves, recent trades) and maybe calls an external price API for current market prices, then returns that data to the AI.
|
|
303
|
+
3. The AI analyzes the data. Suppose it finds that Asset A's proportion in the pool has drastically increased relative to Asset B (perhaps because Asset A's price fell sharply).
|
|
304
|
+
4. The AI decides that to protect the pool, it should increase the swap fee temporarily (a common measure to discourage arbitrage draining the pool).
|
|
305
|
+
5. Through MCP, the AI calls a function on the smart contract to update the fee parameter. The MCP's blockchain connector handles creating and sending the transaction to the network via SettleMint's infrastructure.
|
|
306
|
+
6. The transaction is executed on-chain, adjusting the fee. MCP catches the success response and any relevant event (like an event that the contract might emit for a fee change).
|
|
307
|
+
7. The AI receives confirmation and can log the change or inform administrators that it took action.
|
|
308
|
+
|
|
309
|
+
In this use case, MCP enabled the AI to be a real-time guardian of the DeFi contract. Without MCP, the AI would not have access to the live on-chain state or the ability to execute a change. With MCP, the AI becomes a powerful autonomous agent that ensures the blockchain application adapts to current conditions.
|
|
267
310
|
|
|
311
|
+
This is just one example. AI-driven blockchain applications could range from automatic NFT marketplace management, to AI moderators for DAO proposals, to intelligent supply chain contracts that react to sensor data. MCP provides the pathway for these AI agents to communicate and act where it matters - on the blockchain and connected systems.
|
|
268
312
|
|
|
269
313
|
## Contributing
|
|
270
314
|
|
package/dist/mcp.js
CHANGED
|
@@ -62578,7 +62578,7 @@ var {
|
|
|
62578
62578
|
var package_default = {
|
|
62579
62579
|
name: "@settlemint/sdk-mcp",
|
|
62580
62580
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
62581
|
-
version: "1.1.16-
|
|
62581
|
+
version: "1.1.16-pr18cd48b2",
|
|
62582
62582
|
type: "module",
|
|
62583
62583
|
private: false,
|
|
62584
62584
|
license: "FSL-1.1-MIT",
|
|
@@ -62620,8 +62620,8 @@ var package_default = {
|
|
|
62620
62620
|
"@graphql-tools/load": "8.0.17",
|
|
62621
62621
|
"@graphql-tools/url-loader": "8.0.29",
|
|
62622
62622
|
"@modelcontextprotocol/sdk": "1.6.1",
|
|
62623
|
-
"@settlemint/sdk-js": "1.1.16-
|
|
62624
|
-
"@settlemint/sdk-utils": "1.1.16-
|
|
62623
|
+
"@settlemint/sdk-js": "1.1.16-pr18cd48b2",
|
|
62624
|
+
"@settlemint/sdk-utils": "1.1.16-pr18cd48b2",
|
|
62625
62625
|
"@commander-js/extra-typings": "11.1.0",
|
|
62626
62626
|
commander: "11.1.0",
|
|
62627
62627
|
zod: "3.24.2"
|
|
@@ -68290,4 +68290,4 @@ await main().catch((error2) => {
|
|
|
68290
68290
|
process.exit(1);
|
|
68291
68291
|
});
|
|
68292
68292
|
|
|
68293
|
-
//# debugId=
|
|
68293
|
+
//# debugId=1DDF9A3BE379750F64756E2164756E21
|