@blockrun/mcp 0.9.0 → 0.9.1
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 +6 -3
- package/dist/index.js +6 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
**Real-time data for Claude — markets, research, X/Twitter, crypto. No API keys. Pay per call.**
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
claude mcp add blockrun npx -y @blockrun/mcp@latest
|
|
10
|
+
claude mcp add blockrun -s user -- npx -y @blockrun/mcp@latest
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Wallet auto-created. Fund with $5 USDC. Ask Claude anything.
|
|
@@ -49,9 +49,12 @@ After BlockRun, it can. Each query costs fractions of a cent, billed from a loca
|
|
|
49
49
|
|
|
50
50
|
**Claude Code (recommended)**
|
|
51
51
|
```bash
|
|
52
|
-
claude mcp add blockrun npx -y @blockrun/mcp@latest
|
|
52
|
+
claude mcp add blockrun -s user -- npx -y @blockrun/mcp@latest
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
The `-s user` flag installs globally (available in every project). The `--` separator
|
|
56
|
+
ensures `-y` is passed to `npx`, not parsed by `claude mcp add`.
|
|
57
|
+
|
|
55
58
|
**Claude Desktop** — add to `claude_desktop_config.json`:
|
|
56
59
|
```json
|
|
57
60
|
{
|
|
@@ -66,7 +69,7 @@ claude mcp add blockrun npx -y @blockrun/mcp@latest
|
|
|
66
69
|
|
|
67
70
|
**Hosted (no install, always latest)**
|
|
68
71
|
```bash
|
|
69
|
-
claude mcp add --transport http
|
|
72
|
+
claude mcp add blockrun -s user --transport http https://mcp.blockrun.ai/mcp
|
|
70
73
|
```
|
|
71
74
|
|
|
72
75
|
---
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
+
import { readFileSync } from "fs";
|
|
4
5
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
5
6
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
6
7
|
|
|
@@ -1630,7 +1631,7 @@ function warnOnLeakedKeys() {
|
|
|
1630
1631
|
console.error(" 3. Reconnect using the local package (signs locally, key");
|
|
1631
1632
|
console.error(" never leaves your machine):");
|
|
1632
1633
|
console.error(" claude mcp remove blockrun");
|
|
1633
|
-
console.error(" claude mcp add blockrun npx -y @blockrun/mcp@latest");
|
|
1634
|
+
console.error(" claude mcp add blockrun -s user -- npx -y @blockrun/mcp@latest");
|
|
1634
1635
|
console.error("");
|
|
1635
1636
|
console.error(" Details: https://github.com/BlockRunAI/blockrun-mcp-server/issues/1");
|
|
1636
1637
|
console.error("");
|
|
@@ -1638,7 +1639,9 @@ function warnOnLeakedKeys() {
|
|
|
1638
1639
|
}
|
|
1639
1640
|
|
|
1640
1641
|
// src/index.ts
|
|
1641
|
-
var VERSION =
|
|
1642
|
+
var { version: VERSION } = JSON.parse(
|
|
1643
|
+
readFileSync(new URL("../package.json", import.meta.url), "utf-8")
|
|
1644
|
+
);
|
|
1642
1645
|
async function checkForUpdate() {
|
|
1643
1646
|
try {
|
|
1644
1647
|
const resp = await fetch("https://registry.npmjs.org/@blockrun/mcp/latest", {
|
|
@@ -1647,7 +1650,7 @@ async function checkForUpdate() {
|
|
|
1647
1650
|
const data = await resp.json();
|
|
1648
1651
|
if (data.version && data.version !== VERSION) {
|
|
1649
1652
|
console.error(`[BlockRun] Update available: v${VERSION} \u2192 v${data.version}`);
|
|
1650
|
-
console.error(`[BlockRun] Run: claude mcp add blockrun npx -y @blockrun/mcp@latest`);
|
|
1653
|
+
console.error(`[BlockRun] Run: claude mcp add blockrun -s user -- npx -y @blockrun/mcp@latest`);
|
|
1651
1654
|
}
|
|
1652
1655
|
} catch {
|
|
1653
1656
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/mcp",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"mcpName": "io.github.BlockRunAI/blockrun-mcp",
|
|
5
5
|
"description": "BlockRun MCP Server - Give your AI agent web search, deep research, prediction markets, crypto data, X/Twitter intelligence. Paid via x402 micropayments.",
|
|
6
6
|
"type": "module",
|