netintel-mcp 1.1.64 → 1.1.65
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 -2
- package/dist/client.js +7 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Plus 3 router tools that find the best x402 endpoint for a job from **any** prov
|
|
|
7
7
|
|
|
8
8
|
## Install as a Claude Code plugin (recommended)
|
|
9
9
|
|
|
10
|
-
The plugin installs the MCP server **and** a skill that knows which NetIntel endpoint fits a task, what it costs and how to pay it
|
|
10
|
+
The plugin installs the MCP server **and** a skill that knows which NetIntel endpoint fits a task, what it costs and how to pay it. It never holds a private key and never signs a payment: each paid tool hands the exact request and its price to the agent's own wallet (below), which pays it under that wallet's own approvals and limits. Nothing to configure:
|
|
11
11
|
|
|
12
12
|
```
|
|
13
13
|
/plugin marketplace add kjgueye/netintel-mcp
|
|
@@ -26,12 +26,16 @@ With no `EVM_PRIVATE_KEY` set, every paid tool answers with the exact request
|
|
|
26
26
|
|
|
27
27
|
That wallet's own spending limits apply. The bundled skill (`skills/netintel/SKILL.md`) calls NetIntel the same way even without this server.
|
|
28
28
|
|
|
29
|
+
## What it connects to
|
|
30
|
+
|
|
31
|
+
The tools call only NetIntel's own hosts: `https://netintel.dev` (the API) and `https://router.netintel.dev` (the router tools). Requests carry the tool's input and, when this server pays with its own key, an x402 payment signature; nothing else from your machine is sent. With a key configured, `netintel_wallet_status` also reads that wallet's USDC balance from Base's public node, `https://mainnet.base.org`. Privacy: https://netintel.dev/privacy · Terms: https://netintel.dev/terms
|
|
32
|
+
|
|
29
33
|
## Install
|
|
30
34
|
|
|
31
35
|
```bash
|
|
32
36
|
# pay from AgentCash, Coinbase Agentic Wallet or Coinbase Wallet MCP
|
|
33
37
|
claude mcp add netintel -- npx -y netintel-mcp
|
|
34
|
-
# or let this server pay from a dedicated wallet
|
|
38
|
+
# or let this server pay from a dedicated wallet (direct install only; the plugin never takes a key)
|
|
35
39
|
claude mcp add netintel -e EVM_PRIVATE_KEY=0xYOUR_PRIVATE_KEY -- npx -y netintel-mcp
|
|
36
40
|
```
|
|
37
41
|
|
package/dist/client.js
CHANGED
|
@@ -35,7 +35,13 @@ let walletAddress = null;
|
|
|
35
35
|
*/
|
|
36
36
|
const SPEND_LIMIT = "SPEND_LIMIT";
|
|
37
37
|
function limit(envName, fallback) {
|
|
38
|
-
|
|
38
|
+
// Empty means unset: Number("") is 0, which would refuse every payment. A
|
|
39
|
+
// config that writes the variable with no value (an unset plugin option with
|
|
40
|
+
// no default resolves to "") must get the default, not a $0 limit.
|
|
41
|
+
const raw = process.env[envName]?.trim();
|
|
42
|
+
if (!raw)
|
|
43
|
+
return fallback;
|
|
44
|
+
const n = Number(raw);
|
|
39
45
|
return Number.isFinite(n) && n >= 0 ? n : fallback;
|
|
40
46
|
}
|
|
41
47
|
export const MAX_PER_CALL_USD = limit("NETINTEL_MAX_PER_CALL_USD", 0.25);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netintel-mcp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.65",
|
|
4
4
|
"mcpName": "io.github.kjgueye/netintel-mcp",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"test": "tsc && node --test tests/*.test.mjs",
|
|
22
22
|
"test:live": "tsc && node tests/walletless-live.mjs",
|
|
23
23
|
"dev": "ts-node src/index.ts",
|
|
24
|
-
"prepublishOnly": "npm
|
|
24
|
+
"prepublishOnly": "npm test"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"mcp",
|