verify402-mcp 1.0.5 → 1.0.6
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 +15 -8
- package/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,13 +10,13 @@ dedicated hot wallet funded with **Base Sepolia testnet USDC** (`eip155:84532`).
|
|
|
10
10
|
The analysis reads mainnet chain data, but the demo never settles mainnet
|
|
11
11
|
payments. The bridge never signs or sends a trade.
|
|
12
12
|
|
|
13
|
-
> **Published package note:**
|
|
14
|
-
>
|
|
15
|
-
>
|
|
16
|
-
>
|
|
17
|
-
>
|
|
18
|
-
> and
|
|
19
|
-
>
|
|
13
|
+
> **Published package note:** `verify402-mcp@1.0.6` is published to npm and
|
|
14
|
+
> defaults paid calls to Base Sepolia testnet (`eip155:84532`) for the public
|
|
15
|
+
> demo. Base mainnet (`eip155:8453`) requires an explicit `VERIFY402_NETWORKS`
|
|
16
|
+
> opt-in in a separate deployment and is not enabled by this release. The
|
|
17
|
+
> previously published `1.0.5` package is immutable; `1.0.4` is also immutable
|
|
18
|
+
> and used Base mainnet by default. Do not republish or overwrite either
|
|
19
|
+
> version.
|
|
20
20
|
|
|
21
21
|
## Tools
|
|
22
22
|
|
|
@@ -34,6 +34,13 @@ transaction or x402 payment request. If `sign_allowed` is false, **do not
|
|
|
34
34
|
sign**. If `requires_ack` is true, surface the reasons to the operator. The
|
|
35
35
|
receipt expires (default 90s); call again instead of reusing it.
|
|
36
36
|
|
|
37
|
+
For payment intents, `policy.allowedResourceHosts` binds the host in
|
|
38
|
+
`payment.resource`; a matching host can PASS and a foreign host is BLOCK.
|
|
39
|
+
Without `allowedResourceHosts` or `expectedResource`, an otherwise valid
|
|
40
|
+
resource is CAUTION `resource_identity_unverified` and `resource identity` is
|
|
41
|
+
listed in `notChecked`. The bridge forwards this policy to the server; the
|
|
42
|
+
server enforces it.
|
|
43
|
+
|
|
37
44
|
The gate is advisory at this layer: the bridge does not hold the agent's
|
|
38
45
|
transaction key and cannot stop an agent that ignores the answer. Enforcement
|
|
39
46
|
belongs in the executor that signs — verify the receipt, then sign. See
|
|
@@ -185,7 +192,7 @@ Once configured, your agent automatically sees the tools in its context. You can
|
|
|
185
192
|
proves that the requirement it signs is the exact object the server sent.
|
|
186
193
|
- The allowlist can be narrowed or pointed at another deployment with
|
|
187
194
|
`VERIFY402_NETWORKS`, `VERIFY402_PAY_TO`, and `VERIFY402_RESOURCE_PREFIX`.
|
|
188
|
-
The
|
|
195
|
+
The bridge defaults are Base Sepolia testnet (`eip155:84532`) and the
|
|
189
196
|
public verify402 payee. `VERIFY402_NETWORKS` is constrained to the supported
|
|
190
197
|
map (`eip155:84532`, `eip155:8453`); an explicitly empty value fails closed
|
|
191
198
|
instead of falling back to a default.
|
package/index.mjs
CHANGED
|
@@ -42,7 +42,7 @@ installConsoleRedaction();
|
|
|
42
42
|
const IS_MAIN = isMainModule();
|
|
43
43
|
if (IS_MAIN) config();
|
|
44
44
|
|
|
45
|
-
const VERSION = "1.0.
|
|
45
|
+
const VERSION = "1.0.6";
|
|
46
46
|
const EVM_PRIVATE_KEY = process.env.EVM_PRIVATE_KEY;
|
|
47
47
|
// Normalise once so the axios base URL, the payment policy prefix, and the
|
|
48
48
|
// per-tool expected resource are all the same string (no trailing slash).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verify402-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"mcpName": "io.github.a32116150-ctrl/verify402-mcp",
|
|
5
5
|
"description": "MCP server for verify402: a free, fail-closed preflight gate before signing, plus five paid on-chain checks paid per call via x402.",
|
|
6
6
|
"type": "module",
|