@indigoprotocol/indigo-mcp 0.2.13 → 0.2.14
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 +23 -0
- package/dist/cli/setup.js +38 -8
- package/dist/index.js +195 -165
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -139,6 +139,7 @@ nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
|
|
|
139
139
|
notepad "$env:APPDATA\Claude\claude_desktop_config.json"
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
+
**Standard config:**
|
|
142
143
|
```json
|
|
143
144
|
{
|
|
144
145
|
"mcpServers": {
|
|
@@ -154,6 +155,28 @@ notepad "$env:APPDATA\Claude\claude_desktop_config.json"
|
|
|
154
155
|
}
|
|
155
156
|
```
|
|
156
157
|
|
|
158
|
+
**For nvm users (multiple Node versions):**
|
|
159
|
+
|
|
160
|
+
If you use nvm and have multiple Node versions, you may need to specify the full path and set PATH explicitly:
|
|
161
|
+
|
|
162
|
+
```json
|
|
163
|
+
{
|
|
164
|
+
"mcpServers": {
|
|
165
|
+
"indigo": {
|
|
166
|
+
"command": "/Users/YOUR_USERNAME/.nvm/versions/node/v22.22.0/bin/npx",
|
|
167
|
+
"args": ["-y", "@indigoprotocol/indigo-mcp"],
|
|
168
|
+
"env": {
|
|
169
|
+
"PATH": "/Users/YOUR_USERNAME/.nvm/versions/node/v22.22.0/bin:/usr/local/bin:/usr/bin:/bin",
|
|
170
|
+
"INDEXER_URL": "https://analytics.indigoprotocol.io/api/v1",
|
|
171
|
+
"BLOCKFROST_API_KEY": "your-blockfrost-project-id"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
> **Note:** Replace `YOUR_USERNAME` and Node version with your actual values. Find your Node path with `which npx`.
|
|
179
|
+
|
|
157
180
|
### Claude Code (CLI)
|
|
158
181
|
|
|
159
182
|
Add to `~/.claude/settings.json` or `.claude/settings.json` in your project:
|
package/dist/cli/setup.js
CHANGED
|
@@ -34,14 +34,38 @@ var CONFIG_PATHS = {
|
|
|
34
34
|
linux: path.join(os.homedir(), ".codeium", "windsurf", "mcp_config.json")
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
function detectNvmPath() {
|
|
38
|
+
const nodePath = process.execPath;
|
|
39
|
+
const isNvm = nodePath.includes(".nvm/versions/node");
|
|
40
|
+
if (isNvm) {
|
|
41
|
+
const nodeDir = path.dirname(nodePath);
|
|
42
|
+
const npxPath = path.join(nodeDir, "npx");
|
|
43
|
+
return { isNvm: true, nodePath: nodeDir, npxPath };
|
|
43
44
|
}
|
|
44
|
-
};
|
|
45
|
+
return { isNvm: false, nodePath: null, npxPath: null };
|
|
46
|
+
}
|
|
47
|
+
function getIndigoServerConfig() {
|
|
48
|
+
const { isNvm, nodePath, npxPath } = detectNvmPath();
|
|
49
|
+
if (isNvm && npxPath && nodePath) {
|
|
50
|
+
return {
|
|
51
|
+
command: npxPath,
|
|
52
|
+
args: ["-y", "@indigoprotocol/indigo-mcp"],
|
|
53
|
+
env: {
|
|
54
|
+
PATH: `${nodePath}:/usr/local/bin:/usr/bin:/bin`,
|
|
55
|
+
INDEXER_URL: "https://analytics.indigoprotocol.io/api/v1",
|
|
56
|
+
BLOCKFROST_API_KEY: ""
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
command: "npx",
|
|
62
|
+
args: ["-y", "@indigoprotocol/indigo-mcp"],
|
|
63
|
+
env: {
|
|
64
|
+
INDEXER_URL: "https://analytics.indigoprotocol.io/api/v1",
|
|
65
|
+
BLOCKFROST_API_KEY: ""
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
45
69
|
function createReadlineInterface() {
|
|
46
70
|
return readline.createInterface({
|
|
47
71
|
input: process.stdin,
|
|
@@ -135,7 +159,13 @@ async function main() {
|
|
|
135
159
|
const existingServers = config.mcpServers;
|
|
136
160
|
const existingIndigo = existingServers["indigo"];
|
|
137
161
|
const existingKey = existingIndigo?.env?.BLOCKFROST_API_KEY;
|
|
138
|
-
const
|
|
162
|
+
const { isNvm, nodePath } = detectNvmPath();
|
|
163
|
+
if (isNvm) {
|
|
164
|
+
console.log(`
|
|
165
|
+
\u{1F527} Detected nvm (Node path: ${nodePath})`);
|
|
166
|
+
console.log(" Using full paths in config for compatibility.");
|
|
167
|
+
}
|
|
168
|
+
const serverConfig = getIndigoServerConfig();
|
|
139
169
|
if (blockfrostKey) {
|
|
140
170
|
serverConfig.env = { ...serverConfig.env, BLOCKFROST_API_KEY: blockfrostKey };
|
|
141
171
|
} else if (existingKey && existingKey !== "your-blockfrost-project-id") {
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,38 @@ import * as fs from "fs";
|
|
|
45
45
|
import * as path from "path";
|
|
46
46
|
import * as os from "os";
|
|
47
47
|
import * as readline from "readline";
|
|
48
|
+
function detectNvmPath() {
|
|
49
|
+
const nodePath = process.execPath;
|
|
50
|
+
const isNvm = nodePath.includes(".nvm/versions/node");
|
|
51
|
+
if (isNvm) {
|
|
52
|
+
const nodeDir = path.dirname(nodePath);
|
|
53
|
+
const npxPath = path.join(nodeDir, "npx");
|
|
54
|
+
return { isNvm: true, nodePath: nodeDir, npxPath };
|
|
55
|
+
}
|
|
56
|
+
return { isNvm: false, nodePath: null, npxPath: null };
|
|
57
|
+
}
|
|
58
|
+
function getIndigoServerConfig() {
|
|
59
|
+
const { isNvm, nodePath, npxPath } = detectNvmPath();
|
|
60
|
+
if (isNvm && npxPath && nodePath) {
|
|
61
|
+
return {
|
|
62
|
+
command: npxPath,
|
|
63
|
+
args: ["-y", "@indigoprotocol/indigo-mcp"],
|
|
64
|
+
env: {
|
|
65
|
+
PATH: `${nodePath}:/usr/local/bin:/usr/bin:/bin`,
|
|
66
|
+
INDEXER_URL: "https://analytics.indigoprotocol.io/api/v1",
|
|
67
|
+
BLOCKFROST_API_KEY: ""
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
command: "npx",
|
|
73
|
+
args: ["-y", "@indigoprotocol/indigo-mcp"],
|
|
74
|
+
env: {
|
|
75
|
+
INDEXER_URL: "https://analytics.indigoprotocol.io/api/v1",
|
|
76
|
+
BLOCKFROST_API_KEY: ""
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
48
80
|
function createReadlineInterface() {
|
|
49
81
|
return readline.createInterface({
|
|
50
82
|
input: process.stdin,
|
|
@@ -117,7 +149,13 @@ async function main() {
|
|
|
117
149
|
const existingServers = config4.mcpServers;
|
|
118
150
|
const existingIndigo = existingServers["indigo"];
|
|
119
151
|
const existingKey = existingIndigo?.env?.BLOCKFROST_API_KEY;
|
|
120
|
-
const
|
|
152
|
+
const { isNvm, nodePath } = detectNvmPath();
|
|
153
|
+
if (isNvm) {
|
|
154
|
+
console.log(`
|
|
155
|
+
\u{1F527} Detected nvm (Node path: ${nodePath})`);
|
|
156
|
+
console.log(" Using full paths in config for compatibility.");
|
|
157
|
+
}
|
|
158
|
+
const serverConfig = getIndigoServerConfig();
|
|
121
159
|
if (blockfrostKey) {
|
|
122
160
|
serverConfig.env = { ...serverConfig.env, BLOCKFROST_API_KEY: blockfrostKey };
|
|
123
161
|
} else if (existingKey && existingKey !== "your-blockfrost-project-id") {
|
|
@@ -141,7 +179,7 @@ async function main() {
|
|
|
141
179
|
rl.close();
|
|
142
180
|
}
|
|
143
181
|
}
|
|
144
|
-
var CONFIG_PATHS,
|
|
182
|
+
var CONFIG_PATHS, BANNER;
|
|
145
183
|
var init_setup = __esm({
|
|
146
184
|
"src/cli/setup.ts"() {
|
|
147
185
|
"use strict";
|
|
@@ -173,14 +211,6 @@ var init_setup = __esm({
|
|
|
173
211
|
linux: path.join(os.homedir(), ".codeium", "windsurf", "mcp_config.json")
|
|
174
212
|
}
|
|
175
213
|
};
|
|
176
|
-
INDIGO_SERVER_CONFIG = {
|
|
177
|
-
command: "npx",
|
|
178
|
-
args: ["-y", "@indigoprotocol/indigo-mcp"],
|
|
179
|
-
env: {
|
|
180
|
-
INDEXER_URL: "https://analytics.indigoprotocol.io/api/v1",
|
|
181
|
-
BLOCKFROST_API_KEY: ""
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
214
|
BANNER = `
|
|
185
215
|
\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557
|
|
186
216
|
\u2551 \u2551
|
|
@@ -190115,7 +190145,7 @@ function coreToTxOutput(output) {
|
|
|
190115
190145
|
}
|
|
190116
190146
|
var CML2, import_uplc, import_plutus_data, import_bip39, toCMLNativeScript, scriptFromNative, CMLNativeSchema, parseCMLNative, applyDoubleCborEncoding, applySingleCborEncoding, utxoToTransactionOutput, utxoToTransactionInput, utxoToCore, selectUTxOs, sortUTxOs, largestFirst, smallestFirst, canonical, isEqualUTxO, buildOutput, buildDatum, stringify2, toCMLRedeemerTag;
|
|
190117
190147
|
var init_dist5 = __esm({
|
|
190118
|
-
|
|
190148
|
+
"node_modules/.pnpm/@lucid-evolution+utils@0.1.66_@harmoniclabs+bytestring@1.0.0_@harmoniclabs+cbor@1.6.6_@_e54015f6c44b0a75114abf985c3c36fc/node_modules/@lucid-evolution/utils/dist/index.js"() {
|
|
190119
190149
|
init_Schema2();
|
|
190120
190150
|
CML2 = __toESM(require_cardano_multiplatform_lib(), 1);
|
|
190121
190151
|
init_dist2();
|
|
@@ -197153,13 +197183,13 @@ function discoverOwnUsedTxKeyHashes(tx, ownKeyHashes, ownUtxos) {
|
|
|
197153
197183
|
}
|
|
197154
197184
|
var CML4, import_bip392, makeWalletFromSeed, makeWalletFromPrivateKey, makeWalletFromAPI, makeWalletFromAddress;
|
|
197155
197185
|
var init_dist7 = __esm({
|
|
197156
|
-
|
|
197157
|
-
|
|
197186
|
+
"node_modules/.pnpm/@lucid-evolution+wallet@0.1.72_@harmoniclabs+bytestring@1.0.0_@harmoniclabs+cbor@1.6.6__0f8bf5d84b999387bbc47b5d9377351e/node_modules/@lucid-evolution/wallet/dist/index.js"() {
|
|
197187
|
+
init_dist5();
|
|
197158
197188
|
init_dist2();
|
|
197159
197189
|
CML4 = __toESM(require_cardano_multiplatform_lib(), 1);
|
|
197160
197190
|
import_bip392 = __toESM(require_src2(), 1);
|
|
197161
197191
|
init_dist2();
|
|
197162
|
-
|
|
197192
|
+
init_dist5();
|
|
197163
197193
|
init_dist6();
|
|
197164
197194
|
makeWalletFromSeed = (provider, network, seed, options) => {
|
|
197165
197195
|
const config4 = {
|
|
@@ -197368,27 +197398,27 @@ var init_dist8 = __esm({
|
|
|
197368
197398
|
// node_modules/.pnpm/@lucid-evolution+provider@0.1.90_@harmoniclabs+bytestring@1.0.0_@harmoniclabs+cbor@1.6._c776ec3b8e30b454420f26596c36c469/node_modules/@lucid-evolution/provider/dist/index.js
|
|
197369
197399
|
var CML5, package_default, toAditionalUTXOs, toTxOutScript, fromAssets, fromLegacyRedeemerTag, Blockfrost, handleRateLimit, lucid, LovelaceAsset, TupleNumberFromString, ProtocolParametersSchema, Delegation, RedeemerSchema, ValueSchema, UTxOSchema, ScriptSchema, DatumSchema, DelegationSchema, KupmiosError, lucid2, ProtocolParametersSchema2, AssetSchema, ReferenceScriptSchema, UTxOSchema2, AddressInfoSchema, InputOutputSchema, TxInfoSchema, TxHashSchema, AssetAddressSchema, AccountInfoSchema, DatumInfo, KoiosError;
|
|
197370
197400
|
var init_dist9 = __esm({
|
|
197371
|
-
|
|
197401
|
+
"node_modules/.pnpm/@lucid-evolution+provider@0.1.90_@harmoniclabs+bytestring@1.0.0_@harmoniclabs+cbor@1.6._c776ec3b8e30b454420f26596c36c469/node_modules/@lucid-evolution/provider/dist/index.js"() {
|
|
197372
197402
|
CML5 = __toESM(require_cardano_multiplatform_lib(), 1);
|
|
197373
197403
|
init_dist2();
|
|
197374
|
-
|
|
197404
|
+
init_dist5();
|
|
197375
197405
|
init_esm2();
|
|
197376
|
-
|
|
197377
|
-
|
|
197406
|
+
init_dist5();
|
|
197407
|
+
init_dist5();
|
|
197378
197408
|
init_esm2();
|
|
197379
197409
|
init_esm2();
|
|
197380
|
-
|
|
197410
|
+
init_dist5();
|
|
197381
197411
|
init_esm2();
|
|
197382
|
-
|
|
197383
|
-
|
|
197412
|
+
init_dist5();
|
|
197413
|
+
init_dist5();
|
|
197384
197414
|
init_dist2();
|
|
197385
|
-
|
|
197386
|
-
|
|
197415
|
+
init_dist7();
|
|
197416
|
+
init_dist5();
|
|
197387
197417
|
init_dist2();
|
|
197388
197418
|
init_dist2();
|
|
197389
|
-
|
|
197419
|
+
init_dist5();
|
|
197390
197420
|
init_esm2();
|
|
197391
|
-
|
|
197421
|
+
init_dist5();
|
|
197392
197422
|
init_esm2();
|
|
197393
197423
|
package_default = {
|
|
197394
197424
|
name: "@lucid-evolution/provider",
|
|
@@ -198488,31 +198518,31 @@ function makeTxBuilder(lucidConfig) {
|
|
|
198488
198518
|
}
|
|
198489
198519
|
var CML6, CML32, CML22, CML42, CML52, CML62, CML7, CML8, UPLC, makeReturn, datumOf, metadataOf, ERROR_MESSAGE, NullableError, UnauthorizedNetwork, TxBuilderError, TxSignerError, TxSubmitError, RunTimeError, txBuilderError, toCMLAddress, toV1, toV2, toV3, toPartial, handleRedeemerBuilder, validateAddressDetails, processCertificate, validateAndGetStakeCredential, resolveDatum, TxConfig, collectError, collectFromUTxO, collectFromUTxOPartial, readError, readFrom2, attachScript, attachSpendingValidator, attachMintingPolicy, attachCertificateValidator, attachWithdrawalValidator, attachVoteValidator, attachProposeValidator, payError, payToAddress, ToAddressWithData, ToContract, buildBaseOutput, mintError, mintAssets, validFrom, validTo, addSignerError, addSigner, addSignerKey, stakeError, registerStake, deRegisterStake, withdraw, poolError, delegateTo, isDRepCredential, isDRepAlwaysAbstain, isDRepAlwaysNoConfidence, toCMLDRep, delegateVoteToDRep, delegateVoteToPoolAndDRep, registerAndDelegateToPool, registerAndDelegateToDRep, registerAndDelegateToPoolAndDRep, registerDRep, deregisterDRep, updateDRep, authCommitteeHot, resignCommitteeHot, attachMetadata, TextSchema, TransactionMetadataSchema, toCardanoMetadata, makeSubmit, signError, mkWitnessFromWallet, withWallet, partialWithWallet, mkWitnessFromPrivateKey, withPrivateKey, partialWithPrivateKey, assemble, completeTxSigner, makeTxSignBuilder, completeTxError, complete3, selectionAndEvaluation, completePartialPrograms, applyUPLCEval, applyUPLCEvalProvider, setRedeemerstoZero, applyCollateral, findCollateral, doCoinSelection, estimateFee, evalTransactionProvider, evalTransaction, calculateMinLovelace, calculateMinRefScriptFee, deriveInputsFromTransaction, negateAssets, sumAssetsFromInputs, calculateExtraLovelace, recursive, makeTxConfig, Lucid, validateNotNullable, validateNotNullableNetwork, validateNotNullableProvider;
|
|
198490
198520
|
var init_dist10 = __esm({
|
|
198491
|
-
|
|
198521
|
+
"node_modules/.pnpm/@lucid-evolution+lucid@0.4.29_@harmoniclabs+bytestring@1.0.0_@harmoniclabs+cbor@1.6.6_@_ee925c0861414a4be8061b7865cb1366/node_modules/@lucid-evolution/lucid/dist/index.js"() {
|
|
198492
198522
|
init_esm2();
|
|
198493
198523
|
CML6 = __toESM(require_cardano_multiplatform_lib(), 1);
|
|
198494
|
-
|
|
198524
|
+
init_dist5();
|
|
198495
198525
|
init_dist3();
|
|
198496
|
-
|
|
198526
|
+
init_dist5();
|
|
198497
198527
|
init_esm2();
|
|
198498
198528
|
init_dist3();
|
|
198499
|
-
|
|
198529
|
+
init_dist5();
|
|
198500
198530
|
init_esm2();
|
|
198501
198531
|
CML32 = __toESM(require_cardano_multiplatform_lib(), 1);
|
|
198502
198532
|
CML22 = __toESM(require_cardano_multiplatform_lib(), 1);
|
|
198503
198533
|
init_esm2();
|
|
198504
|
-
|
|
198505
|
-
|
|
198534
|
+
init_dist5();
|
|
198535
|
+
init_dist5();
|
|
198506
198536
|
init_esm2();
|
|
198507
198537
|
init_esm2();
|
|
198508
|
-
|
|
198509
|
-
|
|
198538
|
+
init_dist5();
|
|
198539
|
+
init_dist5();
|
|
198510
198540
|
init_esm2();
|
|
198511
|
-
|
|
198541
|
+
init_dist5();
|
|
198512
198542
|
init_esm2();
|
|
198513
198543
|
CML42 = __toESM(require_cardano_multiplatform_lib(), 1);
|
|
198514
198544
|
init_esm2();
|
|
198515
|
-
|
|
198545
|
+
init_dist5();
|
|
198516
198546
|
init_esm2();
|
|
198517
198547
|
CML52 = __toESM(require_cardano_multiplatform_lib(), 1);
|
|
198518
198548
|
init_esm2();
|
|
@@ -198532,13 +198562,13 @@ var init_dist10 = __esm({
|
|
|
198532
198562
|
init_esm2();
|
|
198533
198563
|
init_Schema3();
|
|
198534
198564
|
init_esm2();
|
|
198535
|
-
|
|
198565
|
+
init_dist5();
|
|
198536
198566
|
init_dist3();
|
|
198537
198567
|
init_Predicate();
|
|
198538
198568
|
init_esm2();
|
|
198539
|
-
|
|
198569
|
+
init_dist5();
|
|
198540
198570
|
init_dist3();
|
|
198541
|
-
|
|
198571
|
+
init_dist7();
|
|
198542
198572
|
init_esm2();
|
|
198543
198573
|
init_dist8();
|
|
198544
198574
|
init_dist2();
|
|
@@ -231642,16 +231672,16 @@ function Be(e2, t2) {
|
|
|
231642
231672
|
}
|
|
231643
231673
|
var v2, P3, w2, x2, y2, p2, _2, h3, F2, C, S2, D, V, A2, W2, T2, q, G2, O2, Q, X, Y;
|
|
231644
231674
|
var init_dist13 = __esm({
|
|
231645
|
-
|
|
231646
|
-
|
|
231675
|
+
"node_modules/.pnpm/@3rd-eye-labs+cardano-offchain-common@1.1.8_@evolution-sdk+evolution@0.2.5_@effect+clus_b00317885deed5ab46415a0de1285c08/node_modules/@3rd-eye-labs/cardano-offchain-common/dist/index.js"() {
|
|
231676
|
+
init_dist10();
|
|
231647
231677
|
init_dist11();
|
|
231648
|
-
|
|
231678
|
+
init_dist10();
|
|
231649
231679
|
init_dist11();
|
|
231650
231680
|
init_dist12();
|
|
231651
|
-
|
|
231681
|
+
init_dist10();
|
|
231652
231682
|
init_dist11();
|
|
231653
|
-
|
|
231654
|
-
|
|
231683
|
+
init_dist10();
|
|
231684
|
+
init_dist10();
|
|
231655
231685
|
v2 = Object.defineProperty;
|
|
231656
231686
|
P3 = (e2, t2) => {
|
|
231657
231687
|
for (var a2 in t2) v2(e2, a2, { get: t2[a2], enumerable: true });
|
|
@@ -240092,90 +240122,90 @@ async function leverageCdpWithLrp(leverage, baseCollateral, priceOracle, iasset,
|
|
|
240092
240122
|
}
|
|
240093
240123
|
var import_Array, AssetClassSchema, OutputReferenceSchema, VerificationKeyHashSchema, CredentialSchema2, StakeCredentialSchema, AddressSchema, OCD_DECIMAL_UNIT, OnChainDecimalSchema, OnChainDecimal, OracleAssetNftSchema, PriceOracleParamsSchema, PriceOracleDatumSchema, PriceOracleDatum, PriceOracleRedeemerSchema, CdpParamsSchema, CDPFeesSchema, CDPContentSchema, IAssetPriceInfoSchema, IAssetContentSchema, CDPDatumSchema, CDPDatum, CDPRedeemerSchema, CDPRedeemer, InterestOracleDatumSchema, InterestOracleDatum, FeedInterestOracleRedeemerSchema, InterestOracleParamsSchema, DEFAULT_SCHEMA_OPTIONS, ProtocolParamsSchema, ProposeAssetContentSchema, ProposalContentSchema, UpgradePathSchema, UpgradePathsSchema, GovDatumSchema, GovDatum, GovParamsSchema, ValueWithdrawalItemSchema, TreasuryWithdrawalSchema, GovRedeemerSchema, ONE_SECOND, ONE_YEAR, unitaryInterestPrecision, CDPCreatorParamsSchema, CDPCreatorRedeemerSchema, CDPCreatorRedeemer, BigIntOrd, SPIntegerSchema, AccountActionSchema, EpochToScaleToSumSchema, StabilityPoolSnapshotSchema, StabilityPoolContentSchema, AccountContentSchema, SnapshotEpochToScaleToSumContentSchema, StabilityPoolDatumSchema, StabilityPoolRedeemerSchema, spPrecision, newScaleMultiplier, initSpSnapshot, CollectorRedeemerSchema, CollectorRedeemer, TreasuryParamsSchema, TreasuryRedeemerSchema, TreasuryRedeemer, WithdrawalOutputDatumSchema, PollManagerParamsSchema, PollManagerRedeemerSchema, PollShardParamsSchema, VoteOptionSchema, PollShardRedeemerSchema, PollStatusSchema, PollManagerContentSchema, PollShardContentSchema, PollDatumSchema, StakingParamsSchema, StakingRedeemerSchema, StakingRedeemer, StakingPosLockedAmtSchema, RewardSnapshotSchema, StakingPositionSchema, StakingManagerSchema, StakingDatumSchema, _stakingValidator, mkStakingValidatorFromSP, rewardSnapshotPrecision, teamVestingSchedule, spDistributionSchedule, liqDistributionSchedule, spLpDistributionSchedule, govDistributionSchedule, ExecuteParamsSchema, ExecuteDatumSchema, VersionRecordDatumSchema, ActionReturnDatumSchema, ActionReturnDatum, StabilityPoolParamsSchema, StabilityPoolParams, _stabilityPoolValidator, mkStabilityPoolValidatorFromSP, MIN_UTXO_AMOUNT, OneShotParamsSchema, VersionRecordTokenParamsSchema, LRPParamsSchema, LRPDatumSchema, LRPDatum, LRPRedeemerSchema, LRPRedeemer, MIN_LRP_COLLATERAL_AMT, MAX_REDEMPTIONS_WITH_CDP_OPEN;
|
|
240094
240124
|
var init_dist14 = __esm({
|
|
240095
|
-
|
|
240096
|
-
|
|
240097
|
-
|
|
240098
|
-
|
|
240125
|
+
"node_modules/.pnpm/@indigoprotocol+indigo-sdk@1.0.6_@effect+cluster@0.48.16_@effect+platform@0.90.10_effec_0b299dbb70a878fecf9399ee03bac1c9/node_modules/@indigoprotocol/indigo-sdk/dist/index.mjs"() {
|
|
240126
|
+
init_dist10();
|
|
240127
|
+
init_dist10();
|
|
240128
|
+
init_dist10();
|
|
240099
240129
|
init_dist11();
|
|
240100
|
-
|
|
240101
|
-
|
|
240102
|
-
|
|
240103
|
-
|
|
240130
|
+
init_dist10();
|
|
240131
|
+
init_dist10();
|
|
240132
|
+
init_dist10();
|
|
240133
|
+
init_dist10();
|
|
240104
240134
|
init_dist11();
|
|
240105
240135
|
init_es6();
|
|
240106
|
-
|
|
240107
|
-
|
|
240136
|
+
init_dist10();
|
|
240137
|
+
init_dist10();
|
|
240108
240138
|
init_es6();
|
|
240109
240139
|
init_dist12();
|
|
240110
|
-
|
|
240111
|
-
|
|
240140
|
+
init_dist10();
|
|
240141
|
+
init_dist10();
|
|
240112
240142
|
init_dist11();
|
|
240113
|
-
|
|
240114
|
-
|
|
240143
|
+
init_dist10();
|
|
240144
|
+
init_dist10();
|
|
240115
240145
|
init_decimal();
|
|
240116
|
-
|
|
240146
|
+
init_dist10();
|
|
240117
240147
|
init_es6();
|
|
240118
240148
|
init_dist12();
|
|
240119
240149
|
init_dist11();
|
|
240120
|
-
|
|
240150
|
+
init_dist13();
|
|
240121
240151
|
init_dist11();
|
|
240122
240152
|
init_es6();
|
|
240123
|
-
|
|
240124
|
-
|
|
240125
|
-
|
|
240126
|
-
|
|
240127
|
-
|
|
240128
|
-
|
|
240129
|
-
|
|
240130
|
-
|
|
240131
|
-
|
|
240132
|
-
|
|
240133
|
-
|
|
240134
|
-
|
|
240135
|
-
|
|
240153
|
+
init_dist10();
|
|
240154
|
+
init_dist10();
|
|
240155
|
+
init_dist10();
|
|
240156
|
+
init_dist10();
|
|
240157
|
+
init_dist10();
|
|
240158
|
+
init_dist10();
|
|
240159
|
+
init_dist10();
|
|
240160
|
+
init_dist10();
|
|
240161
|
+
init_dist10();
|
|
240162
|
+
init_dist10();
|
|
240163
|
+
init_dist10();
|
|
240164
|
+
init_dist10();
|
|
240165
|
+
init_dist10();
|
|
240136
240166
|
init_dist12();
|
|
240137
240167
|
init_es6();
|
|
240138
240168
|
init_dist11();
|
|
240139
|
-
|
|
240140
|
-
|
|
240141
|
-
|
|
240142
|
-
|
|
240169
|
+
init_dist10();
|
|
240170
|
+
init_dist10();
|
|
240171
|
+
init_dist10();
|
|
240172
|
+
init_dist10();
|
|
240143
240173
|
init_dist12();
|
|
240144
|
-
|
|
240145
|
-
|
|
240146
|
-
|
|
240147
|
-
|
|
240148
|
-
|
|
240149
|
-
|
|
240150
|
-
|
|
240151
|
-
|
|
240152
|
-
|
|
240153
|
-
|
|
240154
|
-
|
|
240155
|
-
|
|
240156
|
-
|
|
240157
|
-
|
|
240158
|
-
|
|
240159
|
-
|
|
240160
|
-
|
|
240161
|
-
|
|
240162
|
-
|
|
240174
|
+
init_dist10();
|
|
240175
|
+
init_dist10();
|
|
240176
|
+
init_dist10();
|
|
240177
|
+
init_dist13();
|
|
240178
|
+
init_dist10();
|
|
240179
|
+
init_dist10();
|
|
240180
|
+
init_dist10();
|
|
240181
|
+
init_dist10();
|
|
240182
|
+
init_dist10();
|
|
240183
|
+
init_dist10();
|
|
240184
|
+
init_dist10();
|
|
240185
|
+
init_dist10();
|
|
240186
|
+
init_dist10();
|
|
240187
|
+
init_dist10();
|
|
240188
|
+
init_dist10();
|
|
240189
|
+
init_dist10();
|
|
240190
|
+
init_dist10();
|
|
240191
|
+
init_dist10();
|
|
240192
|
+
init_dist10();
|
|
240163
240193
|
init_es6();
|
|
240164
240194
|
init_dist11();
|
|
240165
240195
|
init_es6();
|
|
240166
240196
|
init_es6();
|
|
240167
240197
|
init_dist11();
|
|
240168
|
-
|
|
240198
|
+
init_dist10();
|
|
240169
240199
|
import_Array = __toESM(require_Array(), 1);
|
|
240170
|
-
|
|
240171
|
-
|
|
240172
|
-
|
|
240200
|
+
init_dist10();
|
|
240201
|
+
init_dist10();
|
|
240202
|
+
init_dist10();
|
|
240173
240203
|
init_es6();
|
|
240174
240204
|
init_decimal();
|
|
240175
|
-
|
|
240176
|
-
|
|
240177
|
-
|
|
240178
|
-
|
|
240205
|
+
init_dist10();
|
|
240206
|
+
init_dist10();
|
|
240207
|
+
init_dist10();
|
|
240208
|
+
init_dist10();
|
|
240179
240209
|
AssetClassSchema = Data2.Object({
|
|
240180
240210
|
currencySymbol: Data2.Bytes(),
|
|
240181
240211
|
/** Use the HEX encoding */
|
|
@@ -241081,9 +241111,9 @@ async function getLucid() {
|
|
|
241081
241111
|
}
|
|
241082
241112
|
var lucidInstance;
|
|
241083
241113
|
var init_lucid_provider = __esm({
|
|
241084
|
-
|
|
241114
|
+
"src/utils/lucid-provider.ts"() {
|
|
241085
241115
|
"use strict";
|
|
241086
|
-
|
|
241116
|
+
init_dist10();
|
|
241087
241117
|
lucidInstance = null;
|
|
241088
241118
|
}
|
|
241089
241119
|
});
|
|
@@ -241102,9 +241132,9 @@ async function buildUnsignedTx(address, buildFn, summary5) {
|
|
|
241102
241132
|
};
|
|
241103
241133
|
}
|
|
241104
241134
|
var init_tx_builder = __esm({
|
|
241105
|
-
|
|
241135
|
+
"src/utils/tx-builder.ts"() {
|
|
241106
241136
|
"use strict";
|
|
241107
|
-
|
|
241137
|
+
init_lucid_provider();
|
|
241108
241138
|
}
|
|
241109
241139
|
});
|
|
241110
241140
|
|
|
@@ -241120,9 +241150,9 @@ async function getSystemParams() {
|
|
|
241120
241150
|
}
|
|
241121
241151
|
var SYSTEM_PARAMS_URL, cachedParams, cacheTimestamp, CACHE_TTL_MS;
|
|
241122
241152
|
var init_sdk_config = __esm({
|
|
241123
|
-
|
|
241153
|
+
"src/utils/sdk-config.ts"() {
|
|
241124
241154
|
"use strict";
|
|
241125
|
-
|
|
241155
|
+
init_dist14();
|
|
241126
241156
|
SYSTEM_PARAMS_URL = "https://config.indigoprotocol.io/mainnet/mainnet-system-params-v21-lrp.json";
|
|
241127
241157
|
cachedParams = null;
|
|
241128
241158
|
cacheTimestamp = 0;
|
|
@@ -241314,13 +241344,13 @@ function registerCdpMintBurnTools(server) {
|
|
|
241314
241344
|
);
|
|
241315
241345
|
}
|
|
241316
241346
|
var init_cdp_mint_burn_tools = __esm({
|
|
241317
|
-
|
|
241347
|
+
"src/tools/cdp-mint-burn-tools.ts"() {
|
|
241318
241348
|
"use strict";
|
|
241319
241349
|
init_zod();
|
|
241320
|
-
|
|
241321
|
-
|
|
241322
|
-
|
|
241323
|
-
|
|
241350
|
+
init_dist14();
|
|
241351
|
+
init_dist10();
|
|
241352
|
+
init_tx_builder();
|
|
241353
|
+
init_sdk_config();
|
|
241324
241354
|
init_validators();
|
|
241325
241355
|
}
|
|
241326
241356
|
});
|
|
@@ -241651,13 +241681,13 @@ function registerCdpWriteTools(server) {
|
|
|
241651
241681
|
);
|
|
241652
241682
|
}
|
|
241653
241683
|
var init_cdp_write_tools = __esm({
|
|
241654
|
-
|
|
241684
|
+
"src/tools/cdp-write-tools.ts"() {
|
|
241655
241685
|
"use strict";
|
|
241656
|
-
|
|
241686
|
+
init_dist10();
|
|
241657
241687
|
init_zod();
|
|
241658
|
-
|
|
241659
|
-
|
|
241660
|
-
|
|
241688
|
+
init_dist14();
|
|
241689
|
+
init_tx_builder();
|
|
241690
|
+
init_sdk_config();
|
|
241661
241691
|
init_validators();
|
|
241662
241692
|
}
|
|
241663
241693
|
});
|
|
@@ -242270,12 +242300,12 @@ function registerStabilityPoolWriteTools(server) {
|
|
|
242270
242300
|
);
|
|
242271
242301
|
}
|
|
242272
242302
|
var init_stability_pool_write_tools = __esm({
|
|
242273
|
-
|
|
242303
|
+
"src/tools/stability-pool-write-tools.ts"() {
|
|
242274
242304
|
"use strict";
|
|
242275
242305
|
init_zod();
|
|
242276
|
-
|
|
242277
|
-
|
|
242278
|
-
|
|
242306
|
+
init_tx_builder();
|
|
242307
|
+
init_sdk_config();
|
|
242308
|
+
init_dist14();
|
|
242279
242309
|
init_validators();
|
|
242280
242310
|
}
|
|
242281
242311
|
});
|
|
@@ -242546,12 +242576,12 @@ function registerStakingWriteTools(server) {
|
|
|
242546
242576
|
);
|
|
242547
242577
|
}
|
|
242548
242578
|
var init_staking_write_tools = __esm({
|
|
242549
|
-
|
|
242579
|
+
"src/tools/staking-write-tools.ts"() {
|
|
242550
242580
|
"use strict";
|
|
242551
242581
|
init_zod();
|
|
242552
|
-
|
|
242553
|
-
|
|
242554
|
-
|
|
242582
|
+
init_dist14();
|
|
242583
|
+
init_tx_builder();
|
|
242584
|
+
init_sdk_config();
|
|
242555
242585
|
}
|
|
242556
242586
|
});
|
|
242557
242587
|
|
|
@@ -242838,13 +242868,13 @@ function registerCdpLiquidationTools(server) {
|
|
|
242838
242868
|
);
|
|
242839
242869
|
}
|
|
242840
242870
|
var init_cdp_liquidation_tools = __esm({
|
|
242841
|
-
|
|
242871
|
+
"src/tools/cdp-liquidation-tools.ts"() {
|
|
242842
242872
|
"use strict";
|
|
242843
242873
|
init_zod();
|
|
242844
|
-
|
|
242845
|
-
|
|
242846
|
-
|
|
242847
|
-
|
|
242874
|
+
init_dist14();
|
|
242875
|
+
init_dist10();
|
|
242876
|
+
init_tx_builder();
|
|
242877
|
+
init_sdk_config();
|
|
242848
242878
|
init_validators();
|
|
242849
242879
|
}
|
|
242850
242880
|
});
|
|
@@ -242984,13 +243014,13 @@ function registerLeverageCdpTools(server) {
|
|
|
242984
243014
|
);
|
|
242985
243015
|
}
|
|
242986
243016
|
var init_leverage_cdp_tools = __esm({
|
|
242987
|
-
|
|
243017
|
+
"src/tools/leverage-cdp-tools.ts"() {
|
|
242988
243018
|
"use strict";
|
|
242989
|
-
|
|
243019
|
+
init_dist10();
|
|
242990
243020
|
init_zod();
|
|
242991
|
-
|
|
242992
|
-
|
|
242993
|
-
|
|
243021
|
+
init_dist14();
|
|
243022
|
+
init_tx_builder();
|
|
243023
|
+
init_sdk_config();
|
|
242994
243024
|
init_validators();
|
|
242995
243025
|
}
|
|
242996
243026
|
});
|
|
@@ -243265,13 +243295,13 @@ function registerRobWriteTools(server) {
|
|
|
243265
243295
|
);
|
|
243266
243296
|
}
|
|
243267
243297
|
var init_rob_write_tools = __esm({
|
|
243268
|
-
|
|
243298
|
+
"src/tools/rob-write-tools.ts"() {
|
|
243269
243299
|
"use strict";
|
|
243270
243300
|
init_zod();
|
|
243271
|
-
|
|
243272
|
-
|
|
243273
|
-
|
|
243274
|
-
|
|
243301
|
+
init_dist10();
|
|
243302
|
+
init_dist14();
|
|
243303
|
+
init_tx_builder();
|
|
243304
|
+
init_sdk_config();
|
|
243275
243305
|
init_validators();
|
|
243276
243306
|
}
|
|
243277
243307
|
});
|
|
@@ -243436,13 +243466,13 @@ function registerSpRequestTools(server) {
|
|
|
243436
243466
|
);
|
|
243437
243467
|
}
|
|
243438
243468
|
var init_sp_request_tools = __esm({
|
|
243439
|
-
|
|
243469
|
+
"src/tools/sp-request-tools.ts"() {
|
|
243440
243470
|
"use strict";
|
|
243441
243471
|
init_zod();
|
|
243442
|
-
|
|
243443
|
-
|
|
243444
|
-
|
|
243445
|
-
|
|
243472
|
+
init_dist10();
|
|
243473
|
+
init_dist14();
|
|
243474
|
+
init_tx_builder();
|
|
243475
|
+
init_sdk_config();
|
|
243446
243476
|
init_validators();
|
|
243447
243477
|
}
|
|
243448
243478
|
});
|
|
@@ -243500,12 +243530,12 @@ function registerStakingRewardTools(server) {
|
|
|
243500
243530
|
);
|
|
243501
243531
|
}
|
|
243502
243532
|
var init_staking_reward_tools = __esm({
|
|
243503
|
-
|
|
243533
|
+
"src/tools/staking-reward-tools.ts"() {
|
|
243504
243534
|
"use strict";
|
|
243505
243535
|
init_zod();
|
|
243506
|
-
|
|
243507
|
-
|
|
243508
|
-
|
|
243536
|
+
init_dist14();
|
|
243537
|
+
init_tx_builder();
|
|
243538
|
+
init_sdk_config();
|
|
243509
243539
|
}
|
|
243510
243540
|
});
|
|
243511
243541
|
|
|
@@ -243531,26 +243561,26 @@ function registerTools(server) {
|
|
|
243531
243561
|
registerStakingWriteTools(server);
|
|
243532
243562
|
}
|
|
243533
243563
|
var init_tools = __esm({
|
|
243534
|
-
|
|
243564
|
+
"src/tools/index.ts"() {
|
|
243535
243565
|
"use strict";
|
|
243536
243566
|
init_analytics_tools();
|
|
243537
243567
|
init_asset_tools();
|
|
243538
243568
|
init_cdp_tools();
|
|
243539
|
-
|
|
243540
|
-
|
|
243569
|
+
init_cdp_mint_burn_tools();
|
|
243570
|
+
init_cdp_write_tools();
|
|
243541
243571
|
init_collector_tools();
|
|
243542
243572
|
init_dex_tools();
|
|
243543
243573
|
init_governance_tools();
|
|
243544
243574
|
init_redemption_tools();
|
|
243545
243575
|
init_stability_pool_tools();
|
|
243546
|
-
|
|
243576
|
+
init_stability_pool_write_tools();
|
|
243547
243577
|
init_staking_tools();
|
|
243548
|
-
|
|
243549
|
-
|
|
243550
|
-
|
|
243551
|
-
|
|
243552
|
-
|
|
243553
|
-
|
|
243578
|
+
init_staking_write_tools();
|
|
243579
|
+
init_cdp_liquidation_tools();
|
|
243580
|
+
init_leverage_cdp_tools();
|
|
243581
|
+
init_rob_write_tools();
|
|
243582
|
+
init_sp_request_tools();
|
|
243583
|
+
init_staking_reward_tools();
|
|
243554
243584
|
}
|
|
243555
243585
|
});
|
|
243556
243586
|
|
|
@@ -243630,12 +243660,12 @@ async function main2() {
|
|
|
243630
243660
|
}
|
|
243631
243661
|
var SERVER_NAME, SERVER_VERSION;
|
|
243632
243662
|
var init_server3 = __esm({
|
|
243633
|
-
|
|
243663
|
+
"src/server.ts"() {
|
|
243634
243664
|
"use strict";
|
|
243635
243665
|
init_mcp();
|
|
243636
243666
|
init_stdio2();
|
|
243637
243667
|
init_streamableHttp();
|
|
243638
|
-
|
|
243668
|
+
init_tools();
|
|
243639
243669
|
init_resources();
|
|
243640
243670
|
SERVER_NAME = "indigo-mcp";
|
|
243641
243671
|
SERVER_VERSION = "0.2.0";
|
|
@@ -243651,7 +243681,7 @@ var init_server3 = __esm({
|
|
|
243651
243681
|
if (process.argv[2] === "setup") {
|
|
243652
243682
|
Promise.resolve().then(() => init_setup());
|
|
243653
243683
|
} else {
|
|
243654
|
-
init_server3();
|
|
243684
|
+
Promise.resolve().then(() => init_server3());
|
|
243655
243685
|
}
|
|
243656
243686
|
/*! Bundled license information:
|
|
243657
243687
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indigoprotocol/indigo-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MCP server for Indigo Protocol",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -67,6 +67,8 @@
|
|
|
67
67
|
"zod": "^3.25.76"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
+
"libsodium-sumo": "^0.7.16",
|
|
71
|
+
"libsodium-wrappers-sumo": "^0.7.16",
|
|
70
72
|
"undici": "^7.24.5"
|
|
71
73
|
}
|
|
72
74
|
}
|