@telegraphprotocol/telegraph-protocol-mcp 2.1.1 → 2.2.0

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.
@@ -1,41 +1,45 @@
1
- # Errors and fixes
2
-
3
- ## 503 could not route this question now
4
-
5
- No miner could take the question at that moment. Nothing was charged. Retry, or ask with a specific intent.
6
-
7
- ## 503 no_compatible_miner
8
-
9
- You named an intent that no live miner serves now. Nothing was charged. Ask without the intent, or pick another with `telegraph_find_intents`.
10
-
11
- ## 400 invalid_params
12
-
13
- The params don't fit the intent's schema: missing, wrong type, or not allowed. `telegraph_intent` lists the params and types.
14
-
15
- ## 400 no_input_schema
16
-
17
- That intent takes no params. Send a question only.
18
-
19
- ## 429 too many requests
20
-
21
- Too many new questions in one minute. Wait a minute.
22
-
23
- ## 402 escrow balance too low
24
-
25
- The escrow can't cover the ask. Nothing was charged. The user runs `npx -y @telegraphprotocol/telegraph-protocol-mcp fund` in a terminal, then asks again. (Only with `TELEGRAPH_PAYMENT=auto` would the server pay from the wallet by x402 instead.)
26
-
27
- ## Over a spending limit
28
-
29
- The ask would cost more than `TELEGRAPH_MAX_ASK_USD`, or today's asks would pass `TELEGRAPH_DAILY_LIMIT_USD`. Nothing was signed or paid. Raise the limit in the server's settings, or wait for the next UTC day.
30
-
31
- ## 402 after paying by x402 (x402 turned on)
32
-
33
- The wallet may lack USDC, or the payment was refused. `telegraph_account` shows the wallet balance.
34
-
35
- ## 500 or 502 after payment
36
-
37
- The miner failed. On escrow nothing is billed. An x402 payment is credited to your escrow, so it stays yours.
38
-
39
- ## Paying needs a wallet
40
-
41
- The server found no wallet. The user runs `npx -y @telegraphprotocol/telegraph-protocol-mcp setup`, then restarts the agent app.
1
+ # Errors and fixes
2
+
3
+ ## 503 could not route this question now
4
+
5
+ No miner could take the question at that moment. Nothing was charged. Retry, or ask with a specific intent.
6
+
7
+ ## 503 no_compatible_miner
8
+
9
+ You named an intent that no live miner serves now. Nothing was charged. Ask without the intent, or pick another with `telegraph_find_intents`.
10
+
11
+ ## 400 invalid_params
12
+
13
+ The params don't fit the intent's schema: missing, wrong type, or not allowed. `telegraph_intent` lists the params and types.
14
+
15
+ ## 400 no_input_schema
16
+
17
+ That intent takes no params. Send a question only.
18
+
19
+ ## 429 too many requests
20
+
21
+ Too many new questions in one minute. Wait a minute.
22
+
23
+ ## 402 escrow balance too low
24
+
25
+ The escrow can't cover the ask. A `telegraph_ask` holds its whole budget (`TELEGRAPH_MAX_BUDGET_USDC`, default $0.26) while it runs, so the balance must cover that. Nothing was charged. The user runs `npx -y @telegraphprotocol/telegraph-protocol-mcp fund` in a terminal, then asks again, or lowers `TELEGRAPH_MAX_BUDGET_USDC`. (Only with `TELEGRAPH_PAYMENT=auto` would the server pay from the wallet by x402 instead.)
26
+
27
+ ## 400 invalid request body: max_budget_usdc
28
+
29
+ The node takes a budget from one call up to the most it allows, and says the range. Nothing was charged. Set `TELEGRAPH_MAX_BUDGET_USDC` in that range, or `0` to ask one miner only.
30
+
31
+ ## Over a spending limit
32
+
33
+ The ask would cost more than `TELEGRAPH_MAX_ASK_USD`, or today's asks would pass `TELEGRAPH_DAILY_LIMIT_USD`. Nothing was signed or paid. Raise the limit in the server's settings, or wait for the next UTC day.
34
+
35
+ ## 402 after paying by x402 (x402 turned on)
36
+
37
+ The wallet may lack USDC, or the payment was refused. `telegraph_account` shows the wallet balance.
38
+
39
+ ## 500 or 502 after payment
40
+
41
+ The miner failed. On escrow nothing is billed. An x402 payment is credited to your escrow, so it stays yours.
42
+
43
+ ## Paying needs a wallet
44
+
45
+ The server found no wallet. The user runs `npx -y @telegraphprotocol/telegraph-protocol-mcp setup`, then restarts the agent app.
package/package.json CHANGED
@@ -1,63 +1,63 @@
1
- {
2
- "name": "@telegraphprotocol/telegraph-protocol-mcp",
3
- "version": "2.1.1",
4
- "description": "MCP server for the Telegraph network: ask ranked miners (prices, FX, weather, search, security, code review and 100+ intents), browse intents, miners and rankings, and pay from escrow or by x402 in USDC",
5
- "mcpName": "io.github.telegraphprotocol/telegraph",
6
- "main": "dist/index.js",
7
- "bin": {
8
- "telegraph-protocol-mcp": "dist/index.js"
9
- },
10
- "type": "module",
11
- "license": "MIT",
12
- "homepage": "https://github.com/telegraphprotocol/telegraph-mcp#readme",
13
- "repository": {
14
- "type": "git",
15
- "url": "git+https://github.com/telegraphprotocol/telegraph-mcp.git"
16
- },
17
- "bugs": {
18
- "url": "https://github.com/telegraphprotocol/telegraph-mcp/issues"
19
- },
20
- "keywords": [
21
- "mcp",
22
- "model-context-protocol",
23
- "telegraph",
24
- "ai-agents",
25
- "x402",
26
- "escrow",
27
- "usdc",
28
- "agent-payments",
29
- "miners",
30
- "ranking",
31
- "web3"
32
- ],
33
- "files": [
34
- "dist",
35
- "guides",
36
- "README.md",
37
- ".agents"
38
- ],
39
- "engines": {
40
- "node": ">=20"
41
- },
42
- "scripts": {
43
- "build": "tsc",
44
- "start": "node dist/index.js",
45
- "dev": "tsx src/index.ts",
46
- "inspect": "npx @modelcontextprotocol/inspector dist/index.js",
47
- "prepublishOnly": "npm run build",
48
- "test": "npm run build && node --test test/*.test.mjs"
49
- },
50
- "dependencies": {
51
- "@modelcontextprotocol/sdk": "^1.29.0",
52
- "@x402/fetch": "^2.11.0",
53
- "@x402/evm": "^2.11.0",
54
- "@x402/core": "^2.11.0",
55
- "viem": "^2.21.0",
56
- "zod": "^3.25.0"
57
- },
58
- "devDependencies": {
59
- "typescript": "^5.7.0",
60
- "@types/node": "^22.0.0",
61
- "tsx": "^4.19.0"
62
- }
63
- }
1
+ {
2
+ "name": "@telegraphprotocol/telegraph-protocol-mcp",
3
+ "version": "2.2.0",
4
+ "description": "MCP server for the Telegraph network: ask ranked miners (prices, FX, weather, search, security, code review and 100+ intents), browse intents, miners and rankings, and pay from escrow or by x402 in USDC",
5
+ "mcpName": "io.github.telegraphprotocol/telegraph",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "telegraph-protocol-mcp": "dist/index.js"
9
+ },
10
+ "type": "module",
11
+ "license": "MIT",
12
+ "homepage": "https://github.com/telegraphprotocol/telegraph-mcp#readme",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/telegraphprotocol/telegraph-mcp.git"
16
+ },
17
+ "bugs": {
18
+ "url": "https://github.com/telegraphprotocol/telegraph-mcp/issues"
19
+ },
20
+ "keywords": [
21
+ "mcp",
22
+ "model-context-protocol",
23
+ "telegraph",
24
+ "ai-agents",
25
+ "x402",
26
+ "escrow",
27
+ "usdc",
28
+ "agent-payments",
29
+ "miners",
30
+ "ranking",
31
+ "web3"
32
+ ],
33
+ "files": [
34
+ "dist",
35
+ "guides",
36
+ "README.md",
37
+ ".agents"
38
+ ],
39
+ "engines": {
40
+ "node": ">=20"
41
+ },
42
+ "scripts": {
43
+ "build": "tsc",
44
+ "start": "node dist/index.js",
45
+ "dev": "tsx src/index.ts",
46
+ "inspect": "npx @modelcontextprotocol/inspector dist/index.js",
47
+ "prepublishOnly": "npm run build",
48
+ "test": "npm run build && node --test test/*.test.mjs"
49
+ },
50
+ "dependencies": {
51
+ "@modelcontextprotocol/sdk": "^1.29.0",
52
+ "@x402/fetch": "^2.11.0",
53
+ "@x402/evm": "^2.11.0",
54
+ "@x402/core": "^2.11.0",
55
+ "viem": "^2.21.0",
56
+ "zod": "^3.25.0"
57
+ },
58
+ "devDependencies": {
59
+ "typescript": "^5.7.0",
60
+ "@types/node": "^22.0.0",
61
+ "tsx": "^4.19.0"
62
+ }
63
+ }