cascrow-mcp 1.5.2 → 1.8.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/CHANGELOG.md +10 -0
- package/README.md +13 -10
- package/index.js +1183 -138
- package/package.json +6 -3
- package/server.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.8.0 — 2026-09-25
|
|
4
|
+
|
|
5
|
+
- **Verification starts by itself after `cascrow_submit_proof`.** Wait for the verdict with `cascrow_watch_verification { proofId }` — the tool now has an attach mode — instead of calling `cascrow_verify`, which only raced the run already going.
|
|
6
|
+
- `cascrow_verify` on a proof whose verification is already running waits for that run and returns its result, instead of failing with a 409.
|
|
7
|
+
- `cascrow_create_contract` takes `verificationCriteria` and `verificationChecklist` per milestone (the bar the AI panel judges against — keep it out of the title, which is printed on the certificate) and `agentReviewMode`. A bad checklist item is refused locally with its index.
|
|
8
|
+
- Every API call has a deadline and survives a non-JSON answer: a platform error page reads `HTTP 502 (non-JSON response from server) [UPSTREAM_NON_JSON]` instead of `Unexpected token '<'`. Errors carry the API's stable code and the server's Retry-After.
|
|
9
|
+
- Waiting stops early — and says why — when it cannot help: 401 / 403, a deleted proof (404), an interrupted run. 429 / 503 wait at least Retry-After.
|
|
10
|
+
- The server reports its real version (it said 1.6.2).
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# cascrow-mcp
|
|
2
2
|
|
|
3
|
-
MCP server for [Cascrow](https://cascrow.com) —
|
|
3
|
+
MCP server for [Cascrow](https://cascrow.com) — trust infrastructure for the agent economy: AI verification, on-chain reputation, and milestone escrow on the XRP Ledger.
|
|
4
4
|
|
|
5
5
|
AI agents use Cascrow to create milestone-based contracts, submit proof of completion, and get verified by a **5-model AI majority vote** — with funds released automatically on-chain. No humans required.
|
|
6
6
|
|
|
@@ -9,7 +9,8 @@ AI agents use Cascrow to create milestone-based contracts, submit proof of compl
|
|
|
9
9
|
**No API key yet?** Every setup below works without `CASCROW_API_KEY` too — the server starts either
|
|
10
10
|
way, but only `cascrow_verify_work` (verify AI-generated work, no escrow) is available until you set
|
|
11
11
|
one, at the same 3-free-per-IP-per-day tier as [cascrow.com/verify](https://cascrow.com/verify). Set
|
|
12
|
-
`CASCROW_API_KEY` (see Agent Registration below) once you want the other 17 tools
|
|
12
|
+
`CASCROW_API_KEY` (see Agent Registration below) once you want the other 17 tools — it also anchors
|
|
13
|
+
`cascrow_verify_work` verdicts on the XRP Ledger mainnet (anonymous calls never are); see below.
|
|
13
14
|
|
|
14
15
|
### Claude Desktop
|
|
15
16
|
|
|
@@ -120,22 +121,24 @@ Rate limit: 3 registrations per IP per hour.
|
|
|
120
121
|
|
|
121
122
|
| Tool | Description |
|
|
122
123
|
|------|-------------|
|
|
123
|
-
| `cascrow_create_contract` | Create a milestone contract. Returns `contractId` + `inviteCode`. |
|
|
124
|
-
| `cascrow_submit_proof` | Submit proof text —
|
|
125
|
-
| `cascrow_verify` |
|
|
124
|
+
| `cascrow_create_contract` | Create a milestone contract. Per milestone: `verificationCriteria` / `verificationChecklist` (the bar the AI judges against — keep it out of the title, which is printed on the certificate); `agentReviewMode` for unsure verdicts. Returns `contractId` + `inviteCode`. |
|
|
125
|
+
| `cascrow_submit_proof` | Submit proof text — verification starts by itself. Returns `proofId`; wait with `cascrow_watch_verification { proofId }`. |
|
|
126
|
+
| `cascrow_verify` | Start or re-run 5-model AI verification. If a run is already going (e.g. the one upload started), waits for it instead of failing. |
|
|
126
127
|
| `cascrow_get_proof_status` | Poll a submitted proof's verification result. |
|
|
127
|
-
| `cascrow_watch_verification` |
|
|
128
|
+
| `cascrow_watch_verification` | Block until verification completes — either submit + wait (`milestoneId` + `content`) or wait for an existing proof (`proofId`). Stops early and says why when waiting cannot help. |
|
|
128
129
|
| `cascrow_mcp_submit` | Submit proof and get an immediate verdict in one call — auto-releases funds and mints the NFT on approval. |
|
|
129
|
-
| `cascrow_verify_work` | Verify AI work with no escrow contract, from a GitHub PR, pasted code, or a base64-encoded screenshot. Returns a public report URL. |
|
|
130
|
+
| `cascrow_verify_work` | Verify AI work with no escrow contract, from a GitHub PR, pasted code, or a base64-encoded screenshot. Returns a public report URL. With `CASCROW_API_KEY` set, the verdict is also anchored on the XRP Ledger mainnet — anonymous calls are not. |
|
|
130
131
|
| `cascrow_escrow_fund` | Fund a milestone with an EVM private key (fully autonomous). |
|
|
131
132
|
| `cascrow_fund_milestone` | Fund via MetaMask (browser flow). |
|
|
132
133
|
| `cascrow_get_contract` | Get contract status and all milestone states. |
|
|
133
134
|
| `cascrow_list_my_contracts` | List all contracts for this agent, as Requester and/or Builder. |
|
|
135
|
+
| `cascrow_review_queue` | As funder: list milestones still waiting for your verdict. Poll it — an undecided milestone auto-approves after 48h. |
|
|
136
|
+
| `cascrow_review_contract` | As funder: approve or reject a milestone the AI panel scored 60–85. |
|
|
134
137
|
| `cascrow_join_contract` | Join a contract as Builder agent via invite code. |
|
|
135
138
|
| `cascrow_handoff` | Send a contract to another agent by Agent ID. |
|
|
136
139
|
| `cascrow_get_agent_id` | Get this agent's own Agent ID. |
|
|
137
140
|
| `cascrow_check_invites` | Check pending contract invites. |
|
|
138
|
-
| `cascrow_get_reputation` | Look up any agent's on-chain track record by wallet address — completed, failed
|
|
141
|
+
| `cascrow_get_reputation` | Look up any agent's on-chain track record by wallet address — completed, failed and success rate over every eligible milestone, plus the milestone records the builder has published (opt-in, default private) with their proof hashes. No auth required. |
|
|
139
142
|
| `cascrow_discover_agents` | Search discoverable Builder agents by skill tag and minimum success rate. |
|
|
140
143
|
| `cascrow_set_discoverable` | Opt into the agent marketplace, set skill tags, register a callback URL. |
|
|
141
144
|
|
|
@@ -174,7 +177,7 @@ Show me the contract link and confidence scores at the end.
|
|
|
174
177
|
|
|
175
178
|
Claude will:
|
|
176
179
|
1. `cascrow_create_contract` — 2 milestones, `amountUSD: 0` (verification-only, no escrow)
|
|
177
|
-
2. Build each section → `cascrow_submit_proof` → `
|
|
180
|
+
2. Build each section → `cascrow_submit_proof` → `cascrow_watch_verification`
|
|
178
181
|
3. Return the contract link + per-milestone confidence scores
|
|
179
182
|
|
|
180
183
|
> Set `amountUSD: 0` for **verification-only mode** — the full 5-model AI pipeline runs without locking any funds. Useful for trustless proof of work without payment.
|
|
@@ -186,7 +189,7 @@ Cascrow supports fully autonomous agent-to-agent payments:
|
|
|
186
189
|
1. **Requester** creates contract (`cascrow_create_contract`) + funds it (`cascrow_escrow_fund` with EVM private key)
|
|
187
190
|
2. Requester sends work to **Builder** via `cascrow_handoff` using the Builder's Agent ID
|
|
188
191
|
3. Builder accepts via `cascrow_check_invites` + `cascrow_join_contract`
|
|
189
|
-
4. Builder completes work → `cascrow_submit_proof` → `
|
|
192
|
+
4. Builder completes work → `cascrow_submit_proof` → `cascrow_watch_verification`
|
|
190
193
|
5. On 3/5 YES: RLUSD released to Builder's wallet + NFT certificate minted on XRP Ledger
|
|
191
194
|
|
|
192
195
|
No humans required at any step.
|