asrai-mcp 0.5.1 → 0.5.3
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 +24 -11
- package/package.json +1 -1
- package/src/sse-server.js +4 -1
package/README.md
CHANGED
|
@@ -6,7 +6,13 @@ Crypto market analysis MCP server for Claude Desktop — pay-per-use via x402 on
|
|
|
6
6
|
|
|
7
7
|
## Quick start
|
|
8
8
|
|
|
9
|
-
**Step 1** — Add to Claude Desktop config
|
|
9
|
+
**Step 1** — Add to your Claude Desktop config:
|
|
10
|
+
|
|
11
|
+
| OS | Config path |
|
|
12
|
+
|---|---|
|
|
13
|
+
| macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |
|
|
14
|
+
| Windows | `%APPDATA%\Claude\claude_desktop_config.json` |
|
|
15
|
+
| Linux | `~/.config/Claude/claude_desktop_config.json` |
|
|
10
16
|
|
|
11
17
|
```json
|
|
12
18
|
{
|
|
@@ -22,6 +28,23 @@ Crypto market analysis MCP server for Claude Desktop — pay-per-use via x402 on
|
|
|
22
28
|
}
|
|
23
29
|
```
|
|
24
30
|
|
|
31
|
+
**Or** store your key in `~/.env` (loaded automatically — no `env` block needed in config):
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
PRIVATE_KEY=0x<your_base_wallet_private_key>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"mcpServers": {
|
|
40
|
+
"asrai": {
|
|
41
|
+
"command": "npx",
|
|
42
|
+
"args": ["-y", "asrai-mcp"]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
25
48
|
**Step 2** — Restart Claude Desktop. Done.
|
|
26
49
|
|
|
27
50
|
Each API call costs **$0.001 USDC** from your wallet on Base mainnet. Make sure your wallet has a small USDC balance (~$1–2 to start).
|
|
@@ -60,16 +83,6 @@ Default session cap: **$2.00 USDC**. To change:
|
|
|
60
83
|
}
|
|
61
84
|
```
|
|
62
85
|
|
|
63
|
-
## Alternative install (if you prefer)
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
# via uvx (requires uv)
|
|
67
|
-
uvx asrai-mcp
|
|
68
|
-
|
|
69
|
-
# via pip
|
|
70
|
-
pip install asrai-mcp
|
|
71
|
-
```
|
|
72
|
-
|
|
73
86
|
## Links
|
|
74
87
|
|
|
75
88
|
- Homepage: https://asrai.me/agents
|
package/package.json
CHANGED
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
|
|
162
|
+
res.json({ status: "ok", server: "asrai-mcp", version });
|
|
160
163
|
});
|
|
161
164
|
|
|
162
165
|
// ── Start ─────────────────────────────────────────────────────────────────────
|