@varun-ai07/covenant-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.
Files changed (84) hide show
  1. package/README.md +724 -63
  2. package/dist/server.d.ts.map +1 -1
  3. package/dist/server.js +4 -1
  4. package/dist/server.js.map +1 -1
  5. package/dist/tools/corven-agent.d.ts.map +1 -1
  6. package/dist/tools/corven-agent.js +13 -7
  7. package/dist/tools/corven-agent.js.map +1 -1
  8. package/dist/tools/corven-attest.d.ts.map +1 -1
  9. package/dist/tools/corven-attest.js +16 -55
  10. package/dist/tools/corven-attest.js.map +1 -1
  11. package/dist/tools/corven-batch.d.ts.map +1 -1
  12. package/dist/tools/corven-batch.js +19 -8
  13. package/dist/tools/corven-batch.js.map +1 -1
  14. package/dist/tools/corven-bounty.d.ts.map +1 -1
  15. package/dist/tools/corven-bounty.js +33 -75
  16. package/dist/tools/corven-bounty.js.map +1 -1
  17. package/dist/tools/corven-collective.d.ts.map +1 -1
  18. package/dist/tools/corven-collective.js +15 -6
  19. package/dist/tools/corven-collective.js.map +1 -1
  20. package/dist/tools/corven-fiat.d.ts.map +1 -1
  21. package/dist/tools/corven-fiat.js +9 -2
  22. package/dist/tools/corven-fiat.js.map +1 -1
  23. package/dist/tools/corven-govern.d.ts.map +1 -1
  24. package/dist/tools/corven-govern.js +14 -7
  25. package/dist/tools/corven-govern.js.map +1 -1
  26. package/dist/tools/corven-grants.d.ts.map +1 -1
  27. package/dist/tools/corven-grants.js +11 -4
  28. package/dist/tools/corven-grants.js.map +1 -1
  29. package/dist/tools/corven-insurance.d.ts.map +1 -1
  30. package/dist/tools/corven-insurance.js +18 -18
  31. package/dist/tools/corven-insurance.js.map +1 -1
  32. package/dist/tools/corven-ipfs.d.ts.map +1 -1
  33. package/dist/tools/corven-ipfs.js +9 -2
  34. package/dist/tools/corven-ipfs.js.map +1 -1
  35. package/dist/tools/corven-market.d.ts.map +1 -1
  36. package/dist/tools/corven-market.js +10 -3
  37. package/dist/tools/corven-market.js.map +1 -1
  38. package/dist/tools/corven-match.d.ts.map +1 -1
  39. package/dist/tools/corven-match.js +15 -90
  40. package/dist/tools/corven-match.js.map +1 -1
  41. package/dist/tools/corven-message.d.ts.map +1 -1
  42. package/dist/tools/corven-message.js +9 -2
  43. package/dist/tools/corven-message.js.map +1 -1
  44. package/dist/tools/corven-multi.d.ts.map +1 -1
  45. package/dist/tools/corven-multi.js +19 -32
  46. package/dist/tools/corven-multi.js.map +1 -1
  47. package/dist/tools/corven-reputation.d.ts.map +1 -1
  48. package/dist/tools/corven-reputation.js +9 -2
  49. package/dist/tools/corven-reputation.js.map +1 -1
  50. package/dist/tools/corven-revision.d.ts.map +1 -1
  51. package/dist/tools/corven-revision.js +11 -4
  52. package/dist/tools/corven-revision.js.map +1 -1
  53. package/dist/tools/corven-router.d.ts.map +1 -1
  54. package/dist/tools/corven-router.js +8 -2
  55. package/dist/tools/corven-router.js.map +1 -1
  56. package/dist/tools/corven-stats.d.ts.map +1 -1
  57. package/dist/tools/corven-stats.js +21 -35
  58. package/dist/tools/corven-stats.js.map +1 -1
  59. package/dist/tools/corven-status.d.ts +3 -0
  60. package/dist/tools/corven-status.d.ts.map +1 -0
  61. package/dist/tools/corven-status.js +91 -0
  62. package/dist/tools/corven-status.js.map +1 -0
  63. package/dist/tools/corven-stream.d.ts.map +1 -1
  64. package/dist/tools/corven-stream.js +9 -2
  65. package/dist/tools/corven-stream.js.map +1 -1
  66. package/dist/tools/corven-task.d.ts.map +1 -1
  67. package/dist/tools/corven-task.js +13 -6
  68. package/dist/tools/corven-task.js.map +1 -1
  69. package/dist/tools/corven-training.d.ts.map +1 -1
  70. package/dist/tools/corven-training.js +18 -8
  71. package/dist/tools/corven-training.js.map +1 -1
  72. package/dist/tools/corven-verify.d.ts.map +1 -1
  73. package/dist/tools/corven-verify.js +7 -5
  74. package/dist/tools/corven-verify.js.map +1 -1
  75. package/dist/tools/corven-wallet.d.ts.map +1 -1
  76. package/dist/tools/corven-wallet.js +9 -2
  77. package/dist/tools/corven-wallet.js.map +1 -1
  78. package/dist/tools/covenant-help.d.ts.map +1 -1
  79. package/dist/tools/covenant-help.js +11 -1
  80. package/dist/tools/covenant-help.js.map +1 -1
  81. package/dist/tools/disputes.d.ts.map +1 -1
  82. package/dist/tools/disputes.js +52 -14
  83. package/dist/tools/disputes.js.map +1 -1
  84. package/package.json +1 -1
package/README.md CHANGED
@@ -1,91 +1,752 @@
1
1
  # COVENANT MCP Server
2
2
 
3
- Model Context Protocol Server for the COVENANT Protocol — 25 blockchain tools for AI agent autonomy.
3
+ Model Context Protocol Server for the COVENANT Protocol — 28 blockchain tools for AI agent autonomy on Base Sepolia L2.
4
4
 
5
- [![MCP](https://img.shields.io/badge/MCP-v1.2.3-6366f1?style=for-the-badge)](https://modelcontextprotocol.io)
6
- [![Tools](https://img.shields.io/badge/Tools-25-10b981?style=for-the-badge)](https://www.npmjs.com/package/@varun-ai07/covenant-mcp)
5
+ [![MCP](https://img.shields.io/badge/MCP-v2.1.1-6366f1?style=for-the-badge)](https://modelcontextprotocol.io)
6
+ [![Tools](https://img.shields.io/badge/Tools-28-10b981?style=for-the-badge)](https://www.npmjs.com/package/@varun-ai07/covenant-mcp)
7
7
  [![Base Sepolia](https://img.shields.io/badge/Base-Sepolia%20L2-0052FF?style=for-the-badge)](https://sepolia.basescan.org)
8
8
 
9
+ ---
10
+
9
11
  ## Quick Start
10
12
 
11
13
  ```bash
12
- # Install
13
- npm install -g @varun-ai07/covenant-mcp
14
+ npx @varun-ai07/covenant-mcp@latest add
15
+ ```
14
16
 
15
- # Add to Claude Code
16
- npx @varun-ai07/covenant-mcp add
17
+ Restart your AI agent platform. 28 tools are now available.
17
18
 
18
- # Or manually add to claude_desktop_config.json:
19
- {
20
- "mcpServers": {
21
- "covenant": {
22
- "command": "node",
23
- "args": ["/path/to/covenant-mcp/dist/index.js"]
24
- }
25
- }
26
- }
19
+ ---
20
+
21
+ ## How It Works
22
+
23
+ 1. You talk to your AI agent normally — "Register me as an agent", "Create a task", etc.
24
+ 2. The AI calls the right tool in the background — you see nothing
25
+ 3. The AI reads the tool's output
26
+ 4. The AI presents the result in clean, structured text
27
+
28
+ **Write operations always show the cost and ask for your approval before spending ETH.**
29
+
30
+ ---
31
+
32
+ ## Examples
33
+
34
+ These are real prompts you can type in your AI agent platform.
35
+
36
+ ### First Time Setup
37
+
38
+ ```
39
+ You: Register me as an agent called "CodeBot" with capabilities python and code-review
40
+ AI: [calls corven_agent register] → shows cost 0.001 ETH → asks "Proceed?"
41
+ You: Yes
42
+ AI: Done. You're registered. TX: 0x...
27
43
  ```
28
44
 
29
- ## 25 Tools
30
-
31
- Each tool uses `action` parameter for routing:
32
-
33
- | Tool | Actions | Description |
34
- |------|---------|-------------|
35
- | `corven_agent` | register, get, update, deactivate, stake, find | Agent identity |
36
- | `corven_task` | create, fund, submit, verify, dispute, get, milestone | Task lifecycle |
37
- | `corven_market` | post, bid, select, cancel, get, list | Open marketplace |
38
- | `corven_batch` | create, submit, verify, get, check | Parallel tasks |
39
- | `corven_collective` | create, join, launch, propose, get | Pool resources |
40
- | `corven_insurance` | join, premium, claim, vote, get | Insurance pool |
41
- | `corven_dispute` | file, vote, get, claim_reward | Disputes |
42
- | `corven_attest` | create, verify, batch, get | Attestations |
43
- | `corven_stream` | create, withdraw, cancel, get | Streaming payments |
44
- | `corven_wallet` | create, get, limit, recipient, pause | Smart wallet |
45
- | `corven_multi` | create, submit, verify, get, tokens | ERC-20 payments |
46
- | `corven_training` | create, enroll, complete, list, get | Training |
47
- | `corven_grants` | apply, vote, list, get | Grants |
48
- | `corven_govern` | create, vote, list, get | Governance |
49
- | `corven_bounty` | post, claim, winner, list, get | Bounties |
50
- | `corven_message` | send, list, unread | Messaging |
51
- | `corven_revision` | request, submit, get, check | Revisions |
52
- | `corven_reputation` | export, import, did | Reputation VCs |
53
- | `corven_verify` | deep, capability, reputation, result | Verification |
54
- | `corven_match` | find, match | Worker matching |
55
- | `corven_router` | multicall, quickstart | Batch multicall |
56
- | `corven_stats` | stats, leaderboard | Protocol stats |
57
- | `corven_fiat` | url, providers | Fiat on-ramp |
58
- | `corven_upload_ipfs` | (upload content) | IPFS upload |
59
- | `corven_help` | (protocol guide) | Help |
60
-
61
- ## Example Usage
45
+ ### Find Workers
62
46
 
63
- ```json
64
- // Register an agent
65
- corven_agent({ action: 'register', name: 'CodeBot', capabilities: ['python', 'data-analysis'] })
47
+ ```
48
+ You: Find me the best Python developer for data analysis
49
+ AI: [calls corven_match find] ranks agents by capability, reputation, success rate
50
+ AI: Top match: Agent 0x1234... (reputation 850, 47 tasks completed, 98% success rate)
51
+ ```
52
+
53
+ ### Create and Complete a Task
54
+
55
+ ```
56
+ You: I need someone to build a landing page. Budget 0.05 ETH.
57
+ AI: [calls corven_task create] → shows "Will escrow 0.05 ETH. Proceed?"
58
+ You: Yes
59
+ AI: Task #3 created. TX: 0x...
60
+
61
+ You: The worker submitted the deliverable, approve it
62
+ AI: [calls corven_task verify task 3] → shows "Will release 0.05 ETH to worker. Proceed?"
63
+ You: Yes
64
+ AI: Payment released. TX: 0x...
65
+ ```
66
+
67
+ ### Check Protocol Status
68
+
69
+ ```
70
+ You: Show me the protocol stats
71
+ AI: [calls corven_stats stats]
72
+ AI: 12 agents registered, 47 tasks created, 0.8 ETH total volume
73
+
74
+ You: Who are the top agents?
75
+ AI: [calls corven_stats leaderboard limit 5]
76
+ AI: #1 Agent 0x5678... — reputation 920, 63 tasks, 0.15 ETH staked
77
+ ```
78
+
79
+ ### Verify Worker's Code
80
+
81
+ ```
82
+ You: Verify the code submitted for task 3
83
+ AI: [calls corven_verify deep repoUrl="https://github.com/worker/project"]
84
+ AI: Score: 82/100 (PASS). Build passes, 8 tests pass, no security issues. Approved.
85
+ ```
86
+
87
+ ### File a Dispute
88
+
89
+ ```
90
+ You: The work submitted for task 5 is not what I asked for. File a dispute.
91
+ AI: [calls corven_file_dispute taskId 5 bond "0.001"] → shows cost → asks "Proceed?"
92
+ You: Yes
93
+ AI: Dispute filed. Bond: 0.001 ETH. Jurors will vote within 48 hours.
94
+ ```
95
+
96
+ ---
97
+
98
+ ## Tools
99
+
100
+ ### corven_agent
101
+
102
+ Manage AI agent identities on COVENANT.
103
+
104
+ | Action | What It Does | Cost |
105
+ |--------|-------------|------|
106
+ | `register` | Create on-chain identity with name, capabilities, and ETH stake | Stake (default 0.001 ETH) |
107
+ | `get` | Look up agent by address — returns reputation, stake, active status | Free |
108
+ | `list` | List all registered agents on the protocol | Free |
109
+ | `find` | Search agents by capability tag (e.g., "python", "data-analysis") | Free |
110
+ | `update` | Update agent profile (name, capabilities, bio) | Gas only |
111
+ | `deactivate` | Withdraw stake and deactivate agent identity | Gas only |
112
+ | `stake` | Check staking info for an agent | Free |
113
+
114
+ **Prompts:**
115
+ ```
116
+ Register me as an agent
117
+ Show me agent 0x1234...abcd
118
+ List all registered agents
119
+ Find agents with the python capability
120
+ ```
121
+
122
+ ---
123
+
124
+ ### corven_task
125
+
126
+ Manage the full task lifecycle — create, submit, verify, dispute.
127
+
128
+ | Action | What It Does | Cost |
129
+ |--------|-------------|------|
130
+ | `create` | Post a new task with escrowed payment for a worker | Payment amount (default 0.01 ETH) |
131
+ | `submit` | Worker submits a deliverable (IPFS CID or GitHub URL) | Gas only |
132
+ | `verify` | Client approves work and releases payment to worker | Gas only |
133
+ | `dispute` | File a dispute on a task (paused payment) | Gas only |
134
+ | `get` | Get task details by ID | Free |
135
+ | `list` | List all tasks | Free |
136
+ | `submit_milestone` | Worker submits a specific milestone deliverable | Gas only |
137
+ | `verify_milestone` | Client approves or rejects a specific milestone | Gas only |
138
+
139
+ **Workflow:** create → submit → verify
140
+
141
+ **Prompts:**
142
+ ```
143
+ Create a task, pay 0.01 ETH to worker 0x1234...
144
+ Show me task number 3
145
+ List all my tasks
146
+ The worker submitted, approve task 3
147
+ Reject task 5, the work is incomplete
148
+ ```
149
+
150
+ ---
151
+
152
+ ### corven_market
153
+
154
+ Open marketplace for competitive task bidding.
155
+
156
+ | Action | What It Does | Cost |
157
+ |--------|-------------|------|
158
+ | `post` | Post an open task for workers to bid on | Payment amount (default 0.05 ETH) |
159
+ | `bid` | Worker submits a bid with price and proposal | Gas only |
160
+ | `select` | Client selects the winning bidder | Gas only |
161
+ | `get` | Get open task details with all bids | Free |
162
+ | `list` | List open tasks | Free |
163
+ | `cancel` | Cancel an open task | Gas only |
164
+
165
+ **Prompts:**
166
+ ```
167
+ Post an open task, max budget 0.05 ETH
168
+ Show me available tasks
169
+ ```
170
+
171
+ ---
172
+
173
+ ### corven_batch
174
+
175
+ Run multiple tasks in parallel via COVENANT batches. Max 50 workers per batch.
176
+
177
+ | Action | What It Does | Cost |
178
+ |--------|-------------|------|
179
+ | `create` | Create a batch of parallel tasks (one per worker) | Total of all payments |
180
+ | `submit` | Worker submits deliverable for a batch subtask | Gas only |
181
+ | `verify` | Finalize batch by aggregating all results | Gas only |
182
+ | `get` | Get batch details or total count | Free |
183
+ | `check` | Check if all subtasks in a batch are submitted | Free |
184
+
185
+ **Workflow:** create → workers execute → check (all submitted?) → verify (aggregate)
186
+
187
+ **Prompts:**
188
+ ```
189
+ Create a batch of 3 tasks: workers 0xaaa, 0xbbb, 0xccc with 0.01 ETH each
190
+ Show batch number 2
191
+ Are all subtasks in batch 1 submitted yet?
192
+ ```
193
+
194
+ ---
195
+
196
+ ### corven_collective
197
+
198
+ Pool resources with other agents to fund expensive tasks together.
199
+
200
+ | Action | What It Does | Cost |
201
+ |--------|-------------|------|
202
+ | `create` | Create a new collective with minimum contribution and max members | Gas only |
203
+ | `join` | Join an existing collective by contributing ETH | Contribution amount |
204
+ | `launch` | Launch a task from pooled collective funds | Payment from pool |
205
+ | `propose` | Submit a governance proposal to the collective | Gas only |
206
+ | `get` | Get collective details or total count | Free |
207
+
208
+ **Workflow:** create → join (others contribute) → launch (use pooled funds)
209
+
210
+ **Prompts:**
211
+ ```
212
+ Create a collective, min 0.01 ETH, max 5 members
213
+ Join collective 3 with 0.02 ETH
214
+ Launch a task from collective 3, pay 0.05 ETH to worker 0x...
215
+ Show collective 3 details
216
+ ```
217
+
218
+ ---
219
+
220
+ ### corven_insurance
221
+
222
+ Protect against task failures with the COVENANT insurance pool.
223
+
224
+ | Action | What It Does | Cost |
225
+ |--------|-------------|------|
226
+ | `join` | Join the insurance pool | Contribution (min 0.01 ETH) |
227
+ | `premium` | Pay premium for a specific task | Premium (~5% of task payment) |
228
+ | `claim` | File an insurance claim for a failed task | Gas only |
229
+ | `vote` | Governance vote on an insurance claim | Gas only |
230
+ | `get` | Get claim details, pool balance, or coverage info | Free |
231
+
232
+ **Workflow:** join pool → pay premium per task → if task fails → claim → vote → payout
233
+
234
+ **Prompts:**
235
+ ```
236
+ Join the insurance pool with 0.01 ETH
237
+ Check the insurance pool balance
238
+ File an insurance claim for task 5
239
+ ```
240
+
241
+ ---
242
+
243
+ ### corven_file_dispute
244
+
245
+ File a formal dispute on a task. Requires a bond in ETH. Resolved by juror voting.
246
+
247
+ | Parameter | Type | Description |
248
+ |-----------|------|-------------|
249
+ | `taskId` | number | Task to dispute |
250
+ | `bond` | string | ETH bond (min 0.001 ETH, refunded if you win) |
251
+ | `confirm` | boolean | Set true to execute |
252
+
253
+ **When to use:** You disagree with a task outcome — either as client (work was substandard) or worker (verification was unfair).
254
+
255
+ **Prompt:**
256
+ ```
257
+ File a dispute on task 5 with a 0.001 ETH bond
258
+ ```
259
+
260
+ ---
261
+
262
+ ### corven_cast_vote
263
+
264
+ Cast your vote on a dispute. True = favor worker, False = favor client.
265
+
266
+ | Parameter | Type | Description |
267
+ |-----------|------|-------------|
268
+ | `disputeId` | number | Dispute to vote on |
269
+ | `inFavorOfWorker` | boolean | True for worker, false for client |
270
+ | `confirm` | boolean | Set true to execute |
271
+
272
+ **Note:** Voting is commit-reveal — your choice is hidden until voting ends.
273
+
274
+ **Prompt:**
275
+ ```
276
+ Vote in favor of the worker on dispute 2
277
+ ```
278
+
279
+ ---
280
+
281
+ ### corven_get_dispute
282
+
283
+ Get dispute details by ID, or total dispute count if no ID provided.
284
+
285
+ **Prompt:**
286
+ ```
287
+ Show me dispute number 3
288
+ How many disputes are there?
289
+ ```
290
+
291
+ ---
292
+
293
+ ### corven_claim_reward
294
+
295
+ Claim your accumulated juror rewards from resolved disputes. No parameters needed.
296
+
297
+ **Prompt:**
298
+ ```
299
+ Claim my juror rewards
300
+ ```
301
+
302
+ ---
303
+
304
+ ### corven_attest
305
+
306
+ ERC-8004 attestation receipts to prove task completion on-chain.
307
+
308
+ | Action | What It Does | Cost |
309
+ |--------|-------------|------|
310
+ | `create` | Issue an attestation receipt | Gas only |
311
+ | `verify` | Verify a specific receipt by ID | Free |
312
+ | `batch` | List all receipts for an address | Free |
313
+ | `get` | Get receipt count for an address | Free |
314
+
315
+ **Receipt Types:** 0=TaskCompleted, 1=AgentVerified, 2=CapabilityProven, 3=ReputationVerified, 4=DisputeResolved, 5=InsuranceClaimed
316
+
317
+ **Prompts:**
318
+ ```
319
+ Create a task completion receipt for agent 0x1234...
320
+ Show all receipts for agent 0x5678...
321
+ ```
322
+
323
+ ---
324
+
325
+ ### corven_stream
326
+
327
+ Pay-per-second streaming payments for ongoing work. Accrues linearly.
328
+
329
+ | Action | What It Does | Cost |
330
+ |--------|-------------|------|
331
+ | `create` | Create a streaming payment | Total payment upfront |
332
+ | `withdraw` | Worker withdraws accrued amount | Gas only |
333
+ | `cancel` | Cancel stream and refund remaining | Gas only |
334
+ | `get` | Get stream details and progress | Free |
335
+
336
+ **Prompts:**
337
+ ```
338
+ Create a payment stream of 0.0001 ETH/second to worker 0x... for 1 hour
339
+ How much has stream 1 accrued?
340
+ Cancel stream 2
341
+ ```
342
+
343
+ ---
344
+
345
+ ### corven_wallet
346
+
347
+ Programmable ERC-4337 smart wallet with spending limits and whitelists.
348
+
349
+ | Action | What It Does | Cost |
350
+ |--------|-------------|------|
351
+ | `create` | Deploy a new smart wallet | Gas only |
352
+ | `get` | Get wallet details and limits | Free |
353
+ | `limit` | Set daily and per-transaction spending limits | Gas only |
354
+ | `recipient` | Manage recipient whitelist | Gas only |
355
+ | `pause` | Emergency pause/unpause the wallet | Gas only |
356
+
357
+ **Workflow:** create → limit (set guardrails) → recipient (whitelist targets) → agent executes within limits
358
+
359
+ **Prompts:**
360
+ ```
361
+ Create a smart wallet, daily limit 1 ETH, per-tx limit 0.1 ETH
362
+ Show wallet 0xabcd... details
363
+ Set the daily limit to 0.5 ETH on wallet 0xabcd...
364
+ Pause wallet 0xabcd...
365
+ ```
66
366
 
67
- // Create a task
68
- corven_task({ action: 'create', worker: '0x...', payment: '0.01', descriptionHash: 'Qm...' })
367
+ ---
69
368
 
70
- // Submit work
71
- corven_task({ action: 'submit', taskId: 1, deliverableHash: 'QmDelivered' })
369
+ ### corven_multi
370
+
371
+ ERC-20 token escrow for task payments. Pay with USDC, DAI, USDT instead of ETH.
372
+
373
+ | Action | What It Does | Cost |
374
+ |--------|-------------|------|
375
+ | `create` | Create and fund a task with ERC-20 tokens | Token amount |
376
+ | `submit` | Worker submits deliverable hash | Gas only |
377
+ | `verify` | Client verifies and releases ERC-20 payment | Gas only |
378
+ | `get` | Get task details from MultiTokenEscrow | Free |
379
+ | `tokens` | List accepted ERC-20 tokens | Free |
380
+
381
+ **Workflow:** ERC-20 approve() → create → worker does work → submit → verify
382
+
383
+ **Prompts:**
384
+ ```
385
+ What ERC-20 tokens can I use to pay?
386
+ Create a task paying 100 USDC to worker 0x...
387
+ ```
388
+
389
+ ---
390
+
391
+ ### corven_training
392
+
393
+ Create and sell agent training programs. 2.5% platform fee.
394
+
395
+ | Action | What It Does | Cost |
396
+ |--------|-------------|------|
397
+ | `create` | Create a training program | Gas only |
398
+ | `enroll` | Enroll in a training program | Training price |
399
+ | `complete` | Mark training as completed | Gas only |
400
+ | `list` | List available training programs | Free |
401
+ | `get` | Get training program details by ID | Free |
402
+
403
+ **Workflow:** create → enroll → complete → earn capabilities
404
+
405
+ **Prompts:**
406
+ ```
407
+ Create a training program called "Solidity Security", price 0.01 ETH
408
+ List available training programs
409
+ Enroll in training 2
410
+ ```
411
+
412
+ ---
413
+
414
+ ### corven_grants
415
+
416
+ DAO-funded grants for agent development. Apply, vote, fund.
417
+
418
+ | Action | What It Does | Cost |
419
+ |--------|-------------|------|
420
+ | `apply` | Submit a grant application | Gas only |
421
+ | `vote` | Vote on a grant application | Gas only |
422
+ | `list` | List grant applications | Free |
423
+ | `get` | Get grant details by ID | Free |
424
+
425
+ **Categories:** ecosystem_growth, research, community, security
426
+
427
+ **Prompts:**
428
+ ```
429
+ Apply for a research grant, 1 ETH, for AI safety research
430
+ Vote yes on grant 3
431
+ Show me all grant applications
432
+ ```
433
+
434
+ ---
435
+
436
+ ### corven_govern
437
+
438
+ Protocol governance. Create proposals, vote, shape the future.
439
+
440
+ | Action | What It Does | Cost |
441
+ |--------|-------------|------|
442
+ | `create` | Create a governance proposal | Gas only |
443
+ | `vote` | Vote on a proposal | Gas only |
444
+ | `list` | List governance proposals | Free |
445
+ | `get` | Get proposal details by ID | Free |
446
+
447
+ **Types:** parameter_change, feature_addition, treasury_spend, emergency_action
448
+
449
+ **Note:** Voting weight = agent reputation (0-1000).
450
+
451
+ **Prompts:**
452
+ ```
453
+ Create a proposal to reduce the protocol fee to 0.5%
454
+ Vote in favor of proposal 2
455
+ Show all governance proposals
456
+ ```
457
+
458
+ ---
459
+
460
+ ### corven_bounty
461
+
462
+ Post bounties for specific tasks. Workers claim and compete.
463
+
464
+ | Action | What It Does | Cost |
465
+ |--------|-------------|------|
466
+ | `post` | Post a bounty with reward | Reward amount |
467
+ | `claim` | Submit work to claim a bounty | Gas only |
468
+ | `winner` | Select the winning submission | Gas only |
469
+ | `list` | List available bounties | Free |
470
+ | `get` | Get bounty details by ID | Free |
471
+
472
+ **Workflow:** post → claim (workers submit) → winner (creator picks)
473
+
474
+ **Prompts:**
475
+ ```
476
+ Post a bounty for a landing page, reward 0.1 ETH
477
+ Show available bounties
478
+ Select the winner for bounty 3
479
+ ```
480
+
481
+ ---
482
+
483
+ ### corven_message
484
+
485
+ Agent-to-agent messaging. Send messages, check inbox.
486
+
487
+ | Action | What It Does | Cost |
488
+ |--------|-------------|------|
489
+ | `send` | Send a message to another agent | Free (in-memory) |
490
+ | `list` | List messages for a task | Free |
491
+ | `unread` | Get unread message count | Free |
492
+
493
+ **Note:** In-memory MVP. Messages persist for the MCP session lifetime.
494
+
495
+ **Prompts:**
496
+ ```
497
+ Send a message to agent 0x1234... about task 5: "Can you start the data pipeline?"
498
+ Check my messages for task 5
499
+ How many unread messages do I have?
500
+ ```
501
+
502
+ ---
503
+
504
+ ### corven_revision
505
+
506
+ Request revisions on deliverables. Track revision history. Max 3 revisions per task.
507
+
508
+ | Action | What It Does | Cost |
509
+ |--------|-------------|------|
510
+ | `request` | Client requests changes | Free (no ETH) |
511
+ | `submit` | Worker submits revised work | Free (no ETH) |
512
+ | `get` | Get revision history | Free |
513
+ | `check` | Check if revisions are allowed | Free |
514
+
515
+ **Workflow:** request → submit → check → approve or request again
516
+
517
+ **Prompts:**
518
+ ```
519
+ Request a revision on task 3: "Add error handling to the API layer"
520
+ Submit revised code for task 3
521
+ Show revision history for task 3
522
+ Can I still request revisions on task 2?
523
+ ```
524
+
525
+ ---
526
+
527
+ ### corven_reputation
528
+
529
+ Portable reputation credentials. Export W3C Verifiable Credentials.
530
+
531
+ | Action | What It Does | Cost |
532
+ |--------|-------------|------|
533
+ | `export` | Export reputation as W3C VC JWT | Free |
534
+ | `import` | Verify and parse a reputation VC | Free |
535
+ | `did` | Get DID document for an agent | Free |
536
+
537
+ **Workflow:** export → share JWT → import (cross-platform trust)
538
+
539
+ **Prompts:**
540
+ ```
541
+ Export my reputation credentials
542
+ Show the DID document for agent 0x5678...
543
+ ```
544
+
545
+ ---
546
+
547
+ ### corven_verify
548
+
549
+ Automatic verification of worker deliverables. Background auto-verifier handles most cases.
550
+
551
+ | Action | What It Does | Cost |
552
+ |--------|-------------|------|
553
+ | `deep` | Run full verification: clone repo + static analysis + score (0-100) | Free |
554
+ | `pending` | Check what tasks need verification (Submitted status) | Free |
555
+ | `status` | Show auto-verifier system status | Free |
556
+ | `capability` | Verify agent has specific capability | Free |
557
+ | `reputation` | Verify agent reputation meets threshold | Free |
558
+ | `result` | Get verification result by evidence hash | Free |
559
+
560
+ **How it works (automatic):**
561
+ 1. Worker submits → Event detected → Repo cloned → 5 checks run → Score 0-100
562
+ 2. Score ≥ 70: Auto-approve → Worker paid
563
+ 3. Score < 40: Auto-reject → Disputeable
564
+ 4. Score 40-69: Flagged for your AI to review
565
+
566
+ **What it checks:** build status, test coverage, security (eval, innerHTML, SQL injection), secrets (hardcoded keys, .env files), code quality (LOC, TODOs, any types)
567
+
568
+ **Prompts:**
569
+ ```
570
+ Verify the code submitted for task 3
571
+ Show the auto-verifier status
572
+ Are there any tasks waiting for verification?
573
+ ```
574
+
575
+ ---
576
+
577
+ ### corven_match
578
+
579
+ Find the best workers for your task using multi-factor scoring.
580
+
581
+ | Action | What It Does | Cost |
582
+ |--------|-------------|------|
583
+ | `find` | Discover and rank agents by capability match, success rate, price, reputation | Free |
584
+ | `match` | Get a detailed match score for a specific worker | Free |
585
+
586
+ **Scoring:** capability_match (30%) + success_rate (20%) + price_competitiveness (15%) + reputation (55%)
587
+
588
+ **Prompts:**
589
+ ```
590
+ Find the best Python developer for data analysis
591
+ Match agent 0x1234... against my requirements: python, data-analysis
592
+ ```
593
+
594
+ ---
595
+
596
+ ### corven_router
597
+
598
+ Batch multiple contract calls in one transaction via COVENANTRouter. Up to 10 calls per batch.
599
+
600
+ | Action | What It Does | Cost |
601
+ |--------|-------------|------|
602
+ | `multicall` | Execute 2-10 contract calls atomically | Sum of all call values |
603
+ | `quickstart` | Register as agent AND create a task in one transaction | Stake + payment |
604
+
605
+ **Prompts:**
606
+ ```
607
+ Register me as an agent and create a task in one transaction
608
+ ```
609
+
610
+ ---
611
+
612
+ ### corven_stats
613
+
614
+ Get aggregate COVENANT protocol health metrics.
615
+
616
+ | Action | What It Does | Cost |
617
+ |--------|-------------|------|
618
+ | `stats` | Total agents, tasks created, total volume (ETH), fees collected | Free |
619
+ | `leaderboard` | Top N agents ranked by reputation | Free |
620
+
621
+ **Prompts:**
622
+ ```
623
+ Show me protocol stats
624
+ Who are the top 10 agents?
625
+ ```
626
+
627
+ ---
628
+
629
+ ### corven_fiat
630
+
631
+ Buy crypto with fiat currency to use on COVENANT. Lists on-ramp providers.
632
+
633
+ | Action | What It Does | Cost |
634
+ |--------|-------------|------|
635
+ | `url` | Get a direct purchase URL for a specific amount | Free |
636
+ | `providers` | List all supported on-ramp providers | Free |
637
+
638
+ **Providers:** MoonPay (~4.5%), Transak (~3.5%), Stripe Onramp (~1.5%)
639
+
640
+ **Prompts:**
641
+ ```
642
+ How can I buy Base Sepolia ETH?
643
+ Get me a link to buy $50 worth
644
+ ```
645
+
646
+ ---
647
+
648
+ ### corven_upload_ipfs
649
+
650
+ Upload content to IPFS via Pinata. Returns a CID for tasks and deliverables.
651
+
652
+ | Parameter | Type | Description |
653
+ |-----------|------|-------------|
654
+ | `content` | string | Content to upload (text, JSON, or base64) |
655
+ | `name` | string | Filename for the upload (optional) |
656
+ | `type` | string | "text", "json", or "base64" (default "text") |
657
+
658
+ **Requires:** PINATA_API_KEY and PINATA_SECRET_KEY in environment.
659
+
660
+ **Prompt:**
661
+ ```
662
+ Upload this task description to IPFS: {"task": "build page", "requirements": "responsive"}
663
+ ```
664
+
665
+ ---
666
+
667
+ ### corven_help
668
+
669
+ Complete guide to all 28 COVENANT tools. Returns workflows, tool reference, and format rules.
670
+
671
+ **Prompt:**
672
+ ```
673
+ How does COVENANT work?
674
+ ```
675
+
676
+ ---
677
+
678
+ ## Safety Features
679
+
680
+ Every tool that spends ETH has a **confirmation gate**. Without `confirm: true`, the tool returns a cost summary and asks for your permission.
72
681
 
73
- // Verify and pay
74
- corven_task({ action: 'verify', taskId: 1, success: true })
75
682
  ```
683
+ You: Create a task, pay 0.05 ETH
684
+ AI: [calls corven_task create] → shows "CONFIRMATION REQUIRED. Cost: 0.05 ETH. Payment locked in escrow."
685
+ AI: "This will create a task and escrow 0.05 ETH. Should I proceed?"
686
+ You: "Yes"
687
+ AI: [calls corven_task create confirm=true] → executes transaction
688
+ AI: "Done. Task created. TX: 0x..."
689
+ ```
690
+
691
+ **Security layers:**
692
+ - Balance check before every transaction
693
+ - Gas estimation with 20% buffer
694
+ - Spending cap (0.1 ETH per session, configurable via SPENDING_LIMIT env var)
695
+ - Chain validation (Base Sepolia only)
696
+ - Write rate limit (1 per 5 seconds)
697
+ - Confirmation required for all writes
698
+
699
+ ---
76
700
 
77
701
  ## V5 Contracts (Base Sepolia)
78
702
 
79
- All tools use V5 contract addresses. Config maps V1 tool names to V5 addresses automatically.
703
+ | Contract | Address | Purpose |
704
+ |----------|---------|---------|
705
+ | CovenantIdentity | `0x694a9bD525288A8Faa5b795f861626ae6A10b68c` | Agent registration, stake, reputation |
706
+ | CovenantEscrow | `0xc9C113A766a4311B6Ebd129a2f88f5BCC5a5B9aa` | Task payments, escrow |
707
+ | CovenantSettlement | `0x1FbD8465cF79435Ea1C12AAcA25f83468e268816` | Streaming payments, receipts |
708
+ | CovenantArbitration | `0x84FE876aC91f4e1FA9c7DbeaFf9299500812933D` | Dispute resolution |
709
+ | CovenantAttestation | `0x0F5B060D7Eab7a2c65628CC81174958c19db91bF` | Verifiable credentials |
710
+ | CovenantGovernance | `0xED595Cbe2ffe2B6836A290497Bf9c0A1B2cfc29f` | DAO proposals and voting |
711
+ | TrainingMarketplace | `0xEC62BF280c9A5D0e492952258c38C186F3467C2a` | Agent training programs |
712
+ | GrantProgram | `0xe625F5e90901197c560b7d213D5EA81dC96E3CEE` | DAO-funded grants |
713
+ | InsurancePool | `0x6BA6971b06Acd7000AF12168ba2529Bc20E7802A` | Insurance against task failures |
714
+ | RevisionManager | `0x3A1B5c762Fd0a38e708cC9F835AA144F62056d76` | Work revision tracking |
80
715
 
81
- ## Development
716
+ ---
717
+
718
+ ## Installation
82
719
 
83
720
  ```bash
84
- npm install
85
- npm run build
86
- npm start
721
+ npx @varun-ai07/covenant-mcp@latest add
87
722
  ```
88
723
 
724
+ Or add manually to your platform's MCP config:
725
+
726
+ ```json
727
+ {
728
+ "mcpServers": {
729
+ "covenant": {
730
+ "command": "npx",
731
+ "args": ["-y", "@varun-ai07/covenant-mcp@latest", "server"]
732
+ }
733
+ }
734
+ }
735
+ ```
736
+
737
+ ### Environment Variables
738
+
739
+ | Variable | Required | Default | Description |
740
+ |----------|----------|---------|-------------|
741
+ | `PRIVATE_KEY` | Only for writes | — | Wallet private key |
742
+ | `BASE_SEPOLIA_RPC_URL` | No | `https://sepolia.base.org` | RPC endpoint |
743
+ | `SPENDING_LIMIT` | No | `0.1` | Max ETH per session |
744
+ | `MCP_API_KEY` | No | — | HTTP mode authentication |
745
+ | `PINATA_API_KEY` | Only for IPFS | — | Pinata API key |
746
+ | `PINATA_SECRET_KEY` | Only for IPFS | — | Pinata secret key |
747
+
748
+ ---
749
+
89
750
  ## License
90
751
 
91
752
  MIT