bsv-mcp 0.2.8 → 0.2.9

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/index.js CHANGED
@@ -86276,6 +86276,7 @@ var package_default = {
86276
86276
  ],
86277
86277
  files: [
86278
86278
  "dist/**/*.js",
86279
+ "dist/**/*.html",
86279
86280
  "package.json",
86280
86281
  "*.ts",
86281
86282
  "tools/*.ts",
@@ -123721,6 +123722,7 @@ var package_default2 = {
123721
123722
  ],
123722
123723
  files: [
123723
123724
  "dist/**/*.js",
123725
+ "dist/**/*.html",
123724
123726
  "package.json",
123725
123727
  "*.ts",
123726
123728
  "tools/*.ts",
@@ -127877,7 +127879,7 @@ function registerMcpAppTools(server2, wallet4) {
127877
127879
  }
127878
127880
  });
127879
127881
  cD(server2, "BSV Dashboard", APP_RESOURCE_URI, { description: "Interactive BSV dashboard with Explorer, Wallet, and Ordinals tabs" }, async () => {
127880
- const distPath = join2(__appDirname, "dist", "app.html");
127882
+ const distPath = __appDirname.endsWith("dist") ? join2(__appDirname, "app.html") : join2(__appDirname, "dist", "app.html");
127881
127883
  let html;
127882
127884
  try {
127883
127885
  html = await readFile(distPath, "utf-8");
package/index.ts CHANGED
@@ -599,7 +599,11 @@ function registerMcpAppTools(server: McpServer, wallet?: Wallet) {
599
599
  APP_RESOURCE_URI,
600
600
  { description: "Interactive BSV dashboard with Explorer, Wallet, and Ordinals tabs" },
601
601
  async () => {
602
- const distPath = join(__appDirname, "dist", "app.html");
602
+ // When running from bundle (dist/index.js), app.html is a sibling.
603
+ // When running from source (index.ts), it's in dist/.
604
+ const distPath = __appDirname.endsWith("dist")
605
+ ? join(__appDirname, "app.html")
606
+ : join(__appDirname, "dist", "app.html");
603
607
  let html: string;
604
608
  try {
605
609
  html = await readFile(distPath, "utf-8");
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "bsv-mcp",
3
3
  "module": "dist/index.js",
4
4
  "type": "module",
5
- "version": "0.2.8",
5
+ "version": "0.2.9",
6
6
  "license": "MIT",
7
7
  "author": "satchmo",
8
8
  "description": "A collection of Bitcoin SV (BSV) tools for the Model Context Protocol (MCP) framework",
@@ -23,6 +23,7 @@
23
23
  ],
24
24
  "files": [
25
25
  "dist/**/*.js",
26
+ "dist/**/*.html",
26
27
  "package.json",
27
28
  "*.ts",
28
29
  "tools/*.ts",