mcp-server-insumer 1.7.3 → 1.7.5
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 +21 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Enables AI agents (Claude Desktop, Cursor, Windsurf, and any MCP-compatible clie
|
|
|
8
8
|
|
|
9
9
|
**In production:** [DJD Agent Score](https://github.com/jacobsd32-cpu/djdagentscore) (Coinbase x402 ecosystem) uses InsumerAPI for AI agent wallet trust scoring. [Case study](https://insumermodel.com/blog/djd-agent-score-insumer-api-integration.html).
|
|
10
10
|
|
|
11
|
-
Also available as: [LangChain](https://pypi.org/project/langchain-insumer/) (25 tools, PyPI) | [langchain-community](https://github.com/langchain-ai/langchain/pull/549) (25 tools, PR #549) | [OpenAI GPT](https://chatgpt.com/g/g-699c5e43ce2481918b3f1e7f144c8a49-insumerapi-verify) (GPT Store) | [insumer-verify](https://www.npmjs.com/package/insumer-verify) (client-side verification, npm)
|
|
11
|
+
Also available as: [LangChain](https://pypi.org/project/langchain-insumer/) (25 tools, PyPI) | [langchain-community](https://github.com/langchain-ai/langchain/pull/549) (25 tools, PR #549) | [ElizaOS](https://www.npmjs.com/package/eliza-plugin-insumer) (3 actions, npm) | [OpenAI GPT](https://chatgpt.com/g/g-699c5e43ce2481918b3f1e7f144c8a49-insumerapi-verify) (GPT Store) | [insumer-verify](https://www.npmjs.com/package/insumer-verify) (client-side verification, npm)
|
|
12
12
|
|
|
13
13
|
**[Full AI Agent Verification API guide](https://insumermodel.com/ai-agent-verification-api/)** — covers all 32 chains, trust profiles, commerce protocols, and signature verification.
|
|
14
14
|
|
|
@@ -109,6 +109,20 @@ The `sig` is an ECDSA P-256 signature over `{id, pass, results, attestedAt}`. Th
|
|
|
109
109
|
|
|
110
110
|
No balances. No amounts. Just a cryptographically signed true/false.
|
|
111
111
|
|
|
112
|
+
### Wallet Auth (JWT)
|
|
113
|
+
|
|
114
|
+
Add `format: "jwt"` to the `insumer_attest` tool parameters to receive the attestation as a standard JWT bearer token:
|
|
115
|
+
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"wallet": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
|
|
119
|
+
"conditions": [ ... ],
|
|
120
|
+
"format": "jwt"
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
The response includes an additional `jwt` field containing an ES256-signed JWT. This token is verifiable by any standard JWT library via the JWKS endpoint at `GET /v1/jwks` — making it compatible with Kong, Nginx, Cloudflare Access, AWS API Gateway, and other middleware that accepts JWT bearer tokens.
|
|
125
|
+
|
|
112
126
|
## Verify the Response
|
|
113
127
|
|
|
114
128
|
Your agent gets the attestation. Your application should verify it. Install [insumer-verify](https://www.npmjs.com/package/insumer-verify):
|
|
@@ -205,6 +219,12 @@ This runs 4 independent checks: ECDSA signature, condition hash integrity, block
|
|
|
205
219
|
| `insumer_ucp_discount` | Check discount eligibility in Google UCP format. Returns title, extension field, and applied array. 1 merchant credit. |
|
|
206
220
|
| `insumer_validate_code` | Validate an INSR-XXXXX discount code. Returns validity, discount percent, expiry. Free, no auth. |
|
|
207
221
|
|
|
222
|
+
## Handling `rpc_failure` Errors
|
|
223
|
+
|
|
224
|
+
If the API cannot reach one or more data sources (RPC nodes, Helius, XRPL, Covalent) after retries, endpoints that produce signed attestations (`insumer_attest`, `insumer_trust`, `insumer_trust_batch`) return `ok: false` with error code `rpc_failure`. No signature, no JWT, no credits charged. This is a retryable error — the MCP client should retry after a short delay (2-5 seconds).
|
|
225
|
+
|
|
226
|
+
**Important:** `rpc_failure` is NOT a verification failure. Do not treat it as `pass: false`. It means the data source was temporarily unavailable and the API refused to sign an unverified result.
|
|
227
|
+
|
|
208
228
|
## Supported Chains (32)
|
|
209
229
|
|
|
210
230
|
**EVM**: Ethereum, BNB Chain, Base, Avalanche, Polygon, Arbitrum, Optimism, Chiliz, Soneium, Plume, Sonic, Gnosis, Mantle, Scroll, Linea, zkSync Era, Blast, Taiko, Ronin, Celo, Moonbeam, Moonriver, Viction, opBNB, World Chain, Unichain, Ink, Sei, Berachain, ApeChain
|
package/build/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-server-insumer",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"description": "MCP server for The Insumer Model — read-first blockchain verification infrastructure that returns ECDSA-signed, privacy-preserving booleans across 32 chains without exposing wallet balances. 26 tools: attestation, wallet trust profiles, compliance templates, ACP/UCP commerce, Merkle proofs, instant API key setup. Not a loyalty program. Not an oracle.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Douglas Borthwick",
|
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/douglasborthwick-crypto/mcp-server-insumer",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.7.
|
|
9
|
+
"version": "1.7.4",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "mcp-server-insumer",
|
|
14
|
-
"version": "1.7.
|
|
14
|
+
"version": "1.7.4",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|