asrai-mcp 0.5.1 → 0.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asrai-mcp",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Asrai crypto analysis MCP server — pay-per-use via x402 on Base. Zero install: just npx.",
5
5
  "keywords": [
6
6
  "mcp",
package/src/sse-server.js CHANGED
@@ -20,7 +20,10 @@
20
20
 
21
21
  import express from "express";
22
22
  import { randomBytes, randomUUID } from "node:crypto";
23
+ import { createRequire } from "node:module";
23
24
  import { privateKeyToAccount } from "viem/accounts";
25
+
26
+ const { version } = createRequire(import.meta.url)("../package.json");
24
27
  import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";
25
28
  import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
26
29
  import { isInitializeRequest } from "@modelcontextprotocol/sdk/types.js";
@@ -156,7 +159,7 @@ app.post("/generate-wallet", (_req, res) => {
156
159
  });
157
160
 
158
161
  app.get("/health", (_req, res) => {
159
- res.json({ status: "ok", server: "asrai-mcp", version: "0.5.0" });
162
+ res.json({ status: "ok", server: "asrai-mcp", version });
160
163
  });
161
164
 
162
165
  // ── Start ─────────────────────────────────────────────────────────────────────