phoenix-mcp-server 1.1.0 → 1.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.
package/dist/index.js CHANGED
@@ -47,13 +47,18 @@ async function fetchChainHealth(chain) {
47
47
  }
48
48
  const server = new McpServer({
49
49
  name: "phoenix-zero",
50
- version: "1.1.0",
50
+ version: "1.2.0",
51
51
  });
52
52
  server.tool("check_safety_free", `FREE safety check for L2 networks — no payment required (100 calls/IP/day). Returns safe/unsafe verdict with reason code. Use this first to sample data before committing to paid x402 endpoints. Prevents $5-$15 gas loss on failed transactions during sequencer stalls.`, {
53
53
  chain: z
54
54
  .enum(CHAINS)
55
55
  .optional()
56
56
  .describe("L2 chain to check. Defaults to Base if omitted."),
57
+ }, {
58
+ readOnlyHint: true,
59
+ destructiveHint: false,
60
+ idempotentHint: true,
61
+ openWorldHint: true,
57
62
  }, async ({ chain }) => {
58
63
  try {
59
64
  const data = await fetchDemoSafe(chain);
@@ -88,6 +93,11 @@ server.tool("preflight_network_health", `Determine whether an L2 network is curr
88
93
  .enum(["health_check", "rtt_ns", "revert_ratio"])
89
94
  .default("health_check")
90
95
  .describe("health_check = PASS/DEGRADED/FAIL verdict (free). rtt_ns = nanosecond RTT (x402 $0.01). revert_ratio = transaction revert rate (x402 $0.01)."),
96
+ }, {
97
+ readOnlyHint: true,
98
+ destructiveHint: false,
99
+ idempotentHint: true,
100
+ openWorldHint: true,
91
101
  }, async ({ chain, metric }) => {
92
102
  try {
93
103
  const health = await fetchHealth();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "phoenix-mcp-server",
3
3
  "mcpName": "io.github.kant19801201behax5/phoenix-mcp-server",
4
- "version": "1.1.0",
4
+ "version": "1.2.0",
5
5
  "description": "MCP server for Phoenix Zero L2 health oracle — kernel-level network telemetry for AI agents",
6
6
  "type": "module",
7
7
  "bin": {
@@ -39,7 +39,7 @@
39
39
  "url": "https://github.com/kant19801201behax5/x402-health-oracle"
40
40
  },
41
41
  "dependencies": {
42
- "@modelcontextprotocol/sdk": "^1.11.0",
42
+ "@modelcontextprotocol/sdk": "^1.30.0",
43
43
  "zod": "^3.23.0"
44
44
  },
45
45
  "devDependencies": {
package/server.json CHANGED
@@ -7,20 +7,36 @@
7
7
  "url": "https://github.com/kant19801201behax5/x402-health-oracle",
8
8
  "source": "github"
9
9
  },
10
- "version": "1.0.1",
10
+ "version": "1.2.0",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "registryBaseUrl": "https://registry.npmjs.org",
15
15
  "identifier": "phoenix-mcp-server",
16
- "version": "1.0.1",
16
+ "version": "1.2.0",
17
17
  "transport": { "type": "stdio" }
18
18
  }
19
19
  ],
20
20
  "tools": [
21
+ {
22
+ "name": "check_safety_free",
23
+ "description": "FREE safety check for L2 networks (100 calls/IP/day). Returns safe/unsafe verdict with reason code for any of 12 chains. No payment required.",
24
+ "annotations": {
25
+ "readOnlyHint": true,
26
+ "destructiveHint": false,
27
+ "idempotentHint": true,
28
+ "openWorldHint": true
29
+ }
30
+ },
21
31
  {
22
32
  "name": "preflight_network_health",
23
- "description": "Determine whether an L2 network is suitable for transaction execution using kernel-level telemetry."
33
+ "description": "Determine whether an L2 network is suitable for transaction execution using kernel-level eBPF telemetry. Returns PASS/DEGRADED/FAIL with RTT, revert ratio, and timestamp evidence. Covers 12 L2 chains. health_check metric is free; rtt_ns and revert_ratio require x402 $0.01.",
34
+ "annotations": {
35
+ "readOnlyHint": true,
36
+ "destructiveHint": false,
37
+ "idempotentHint": true,
38
+ "openWorldHint": true
39
+ }
24
40
  }
25
41
  ]
26
42
  }