@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 CHANGED
@@ -1,6 +1,5 @@
1
1
  # Indigo MCP
2
2
 
3
- [![Smithery](https://smithery.ai/badge/@indigoprotocol/indigo-mcp)](https://smithery.ai/server/@indigoprotocol/indigo-mcp)
4
3
  [![npm downloads](https://img.shields.io/npm/dm/@indigoprotocol/indigo-mcp)](https://www.npmjs.com/package/@indigoprotocol/indigo-mcp)
5
4
  [![Ask DeepWiki](https://deepwiki.com/badge.svg)](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 three places, and they are not the same artifact.
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 container image (`Dockerfile`) builds from source and is used by Fly and any
540
- other container host. It does **not** consume `.smithery/` output — that path is
541
- Smithery-specific.
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
- 1. Merge the version bump (`package.json`; `SERVER_VERSION` is read from it)
546
- 2. `git tag vX.Y.Z && git push origin vX.Y.Z`
547
- 3. CI publishes to npm, then to the MCP Registry (the registry verifies ownership
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
- 4. Verify against the registry, not the workflow: `npm view @indigoprotocol/indigo-mcp version`
550
- 5. `fly deploy` for the hosted HTTP endpoint, and `pnpm smithery:publish` for Smithery
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 >= 20 (the bundled `undici` requires the `File` global, added in Node 20)
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