@indigoprotocol/indigo-mcp 0.4.2 → 0.5.0
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 +64 -13
- package/dist/cardano_multiplatform_lib_bg.wasm +0 -0
- package/dist/index.js +121430 -101616
- package/dist/tools/cdp-liquidation-tools.d.ts.map +1 -1
- package/dist/tools/cdp-mint-burn-tools.d.ts.map +1 -1
- package/dist/tools/cdp-write-tools.d.ts.map +1 -1
- package/dist/tools/interest-tools.d.ts.map +1 -1
- package/dist/tools/leverage-cdp-tools.d.ts.map +1 -1
- package/dist/tools/oracle-tools.d.ts.map +1 -1
- package/dist/tools/rob-write-tools.d.ts.map +1 -1
- package/dist/tools/sp-request-tools.d.ts.map +1 -1
- package/dist/uplc_tx_bg.wasm +0 -0
- package/dist/utils/sdk-config.d.ts.map +1 -1
- package/dist/utils/v3-finders.d.ts +15 -30
- package/dist/utils/v3-finders.d.ts.map +1 -1
- package/package.json +12 -9
package/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# Indigo MCP
|
|
2
2
|
|
|
3
|
-
[](https://smithery.ai/server/@indigoprotocol/indigo-mcp)
|
|
4
3
|
[](https://www.npmjs.com/package/@indigoprotocol/indigo-mcp)
|
|
5
4
|
[](https://deepwiki.com/IndigoProtocol/indigo-mcp)
|
|
6
5
|
|
|
@@ -528,32 +527,84 @@ When connected to an LLM agent, you can ask natural language questions like:
|
|
|
528
527
|
|
|
529
528
|
## Distribution
|
|
530
529
|
|
|
531
|
-
The server is published to
|
|
530
|
+
The server is published to two places, and they are not the same artifact.
|
|
532
531
|
|
|
533
532
|
| Target | Built by | Output | Published by |
|
|
534
533
|
|---|---|---|---|
|
|
535
|
-
| npm — `@indigoprotocol/indigo-mcp` | `scripts/build.sh` | `dist/` | CI, on a `v*` tag |
|
|
534
|
+
| npm — `@indigoprotocol/indigo-mcp` | `scripts/build.sh` | `dist/` | CI, on a `v*` tag (npm trusted publishing, GitHub OIDC — no token) |
|
|
536
535
|
| [MCP Registry](https://registry.modelcontextprotocol.io) — `io.github.IndigoProtocol/indigo-mcp` | `server.json` | metadata only | CI, on a `v*` tag (GitHub OIDC — no token) |
|
|
537
|
-
| [Smithery](https://smithery.ai/server/@indigoprotocol/indigo-mcp) | `scripts/smithery-build.sh` | `.smithery/stdio/server.mcpb` | `pnpm smithery:publish`, manually |
|
|
538
536
|
|
|
539
|
-
The
|
|
540
|
-
|
|
541
|
-
|
|
537
|
+
The npm publish uses no stored secret. The package's trusted publisher is set on
|
|
538
|
+
npmjs.com (package Settings, Trusted publishing, GitHub Actions) to organization
|
|
539
|
+
`IndigoProtocol`, repository `indigo-mcp`, workflow `ci.yml`, no environment, with
|
|
540
|
+
`npm publish` allowed. If a tag's publish job fails with an authentication error,
|
|
541
|
+
check that configuration first.
|
|
542
|
+
|
|
543
|
+
The container image (`Dockerfile`) builds from source with the same
|
|
544
|
+
`scripts/build.sh` and is used by Fly and any other container host.
|
|
545
|
+
|
|
546
|
+
The bundle leaves `undici`, `libsodium-sumo` and `libsodium-wrappers-sumo`
|
|
547
|
+
external, so they must stay in `dependencies`: without them neither the npm
|
|
548
|
+
package nor the container image can start.
|
|
542
549
|
|
|
543
550
|
### Cutting a release
|
|
544
551
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
552
|
+
**Test from an up-to-date `main` before bumping the version.**
|
|
553
|
+
|
|
554
|
+
1. Install and run every check:
|
|
555
|
+
|
|
556
|
+
```bash
|
|
557
|
+
pnpm install --frozen-lockfile --ignore-scripts
|
|
558
|
+
pnpm typecheck && pnpm lint && pnpm format:check && pnpm test && pnpm build
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
2. Start the packed tarball from an empty folder. CI builds the bundle but never
|
|
562
|
+
starts it, so this is the only check that catches a missing runtime dependency
|
|
563
|
+
or a WASM file copied from the wrong package. Running `node dist/index.js`
|
|
564
|
+
inside the repo is not enough: the repo's `node_modules` hides both problems.
|
|
565
|
+
|
|
566
|
+
```bash
|
|
567
|
+
npm pack
|
|
568
|
+
mkdir /tmp/indigo-smoke && cd /tmp/indigo-smoke && npm init -y
|
|
569
|
+
npm install /path/to/indigoprotocol-indigo-mcp-X.Y.Z.tgz
|
|
570
|
+
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}' \
|
|
571
|
+
| node node_modules/@indigoprotocol/indigo-mcp/dist/index.js
|
|
572
|
+
```
|
|
573
|
+
|
|
574
|
+
It must print an `initialize` result, not a stack trace.
|
|
575
|
+
|
|
576
|
+
3. With `BLOCKFROST_API_KEY` set, build one transaction per write-tool family
|
|
577
|
+
against mainnet (`open_cdp` for each iAsset, then one each of the mint,
|
|
578
|
+
stability pool, staking, ROB, stableswap and leverage tools). The tools return
|
|
579
|
+
unsigned CBOR, so nothing is submitted. Do this whenever the SDK, lucid or the
|
|
580
|
+
system params URL changed.
|
|
581
|
+
|
|
582
|
+
4. If the `Dockerfile` or the dependencies changed, check the image Fly will build:
|
|
583
|
+
|
|
584
|
+
```bash
|
|
585
|
+
docker build -t indigo-mcp:rc . && docker run --rm -p 3000:3000 indigo-mcp:rc
|
|
586
|
+
curl -s localhost:3000/health
|
|
587
|
+
```
|
|
588
|
+
|
|
589
|
+
**Release.**
|
|
590
|
+
|
|
591
|
+
5. Merge the version bump: `version` in `package.json` (`SERVER_VERSION` is read
|
|
592
|
+
from it) and both `version` fields in `server.json`
|
|
593
|
+
6. Tag the merge commit on `main`: `git tag vX.Y.Z && git push origin vX.Y.Z`
|
|
594
|
+
7. CI publishes to npm, then to the MCP Registry (the registry verifies ownership
|
|
548
595
|
via the package's `mcpName` field, so npm has to go first)
|
|
549
|
-
|
|
550
|
-
|
|
596
|
+
8. Verify against the registry, not the workflow:
|
|
597
|
+
`npm view @indigoprotocol/indigo-mcp version`, then repeat step 2 installing
|
|
598
|
+
`@indigoprotocol/indigo-mcp@X.Y.Z` from npm instead of the tarball
|
|
599
|
+
9. `fly deploy` for the hosted HTTP endpoint, then confirm
|
|
600
|
+
`curl -s https://indigo-mcp.fly.dev/health` reports the new version
|
|
601
|
+
10. `gh release create vX.Y.Z --generate-notes`
|
|
551
602
|
|
|
552
603
|
## Development
|
|
553
604
|
|
|
554
605
|
### Prerequisites
|
|
555
606
|
|
|
556
|
-
- Node.js >=
|
|
607
|
+
- Node.js >= 22.23.4 (the Brotli decoder fix for CVE-2026-111497; the server refuses to start on older runtimes)
|
|
557
608
|
- npm
|
|
558
609
|
|
|
559
610
|
### Setup
|
|
Binary file
|