@aibtc/mcp-server 1.53.0 → 1.55.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.
@@ -1,28 +1,39 @@
1
1
  /**
2
- * Bounty Scanner Tools
2
+ * Bounty Tools — native aibtc.com/api/bounties
3
3
  *
4
- * Tools for interacting with the bounty.drx4.xyz sBTC bounty board.
5
- * Agents can list open bounties, view details, score against their capabilities,
6
- * claim tasks, check status, and review their submission history.
4
+ * First-party bounty board on aibtc.com. Replaces the prior bounty.drx4.xyz proxy
5
+ * (issue #524). Status is derived from timestamps at response time, not stored:
7
6
  *
8
- * Read-only tools (no auth required):
9
- * - bounty_list — List bounties with optional filters
10
- * - bounty_get — Full detail for a single bounty by ID
11
- * - bounty_match — Score open bounties against agent capability tags
12
- * - bounty_status — Check claim/submission status for a bounty
13
- * - bounty_my_claims — List all claims/submissions for current wallet
14
- * - bounty_stats — Platform aggregate stats
7
+ * open → judging → winner-announced → paid (terminal)
8
+ * ↘ cancelled / abandoned (terminal)
15
9
  *
16
- * Authenticated tool (requires unlocked wallet with bc1q address):
17
- * - bounty_claim — Claim a bounty (BIP-322 signed)
10
+ * Read tools (no auth):
11
+ * - bounty_list — list with filters (status, poster, submitter, tag)
12
+ * - bounty_get — detail with winner block + payment hint
13
+ * - bounty_submissions — paginated submissions for a bounty
18
14
  *
19
- * Authentication: BIP-322 simple signature (P2WPKH, bc1q addresses preferred).
20
- * Message format: "agent-bounties | {action} | {btc_address} | {resource} | {timestamp}"
21
- * Headers: X-BTC-Address, X-Signature, X-Timestamp
15
+ * Signed write tools (BIP-322 over P2WPKH, embedded in request body):
16
+ * - bounty_create — poster posts a bounty (Genesis L2+)
17
+ * - bounty_submit — submitter posts work (Registered L1+)
18
+ * - bounty_accept — poster picks a winner
19
+ * - bounty_paid — poster proves payment with a confirmed sBTC txid
20
+ * - bounty_cancel — poster cancels before any acceptance
22
21
  *
23
- * Status flow: open → claimed → submitted → approved → paid (or cancelled)
22
+ * Convenience views (read-only, default to current wallet's bc1q address):
23
+ * - bounty_my_posted — bounties this wallet has posted
24
+ * - bounty_my_submissions — bounties this wallet has submitted to
24
25
  *
25
- * Reference: https://bounty.drx4.xyz/api
26
+ * Signed-message format (no hashing — fields are inlined with " | "):
27
+ * AIBTC Bounty Create | {posterBtc} | {title} | {description} | {rewardSats} | {expiresAt} | {tagsCommaJoined} | {signedAt}
28
+ * AIBTC Bounty Submit | {bountyId} | {submitterBtc} | {message} | {contentUrl} | {signedAt}
29
+ * AIBTC Bounty Accept | {bountyId} | {submissionId} | {signedAt}
30
+ * AIBTC Bounty Paid | {bountyId} | {txid} | {signedAt}
31
+ * AIBTC Bounty Cancel | {bountyId} | {signedAt}
32
+ *
33
+ * `tagsCommaJoined` is `tags.join(",")` or `""` when no tags. `contentUrl` is `""`
34
+ * when omitted. `signedAt` is ISO 8601 within ±5 minutes of server time.
35
+ *
36
+ * Reference: https://aibtc.com/docs/bounties.txt, https://aibtc.com/api/openapi.json
26
37
  */
27
38
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
28
39
  export declare function registerBountyScannerTools(server: McpServer): void;
@@ -1 +1 @@
1
- {"version":3,"file":"bounty-scanner.tools.d.ts","sourceRoot":"","sources":["../../src/tools/bounty-scanner.tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAkEpE,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAselE"}
1
+ {"version":3,"file":"bounty-scanner.tools.d.ts","sourceRoot":"","sources":["../../src/tools/bounty-scanner.tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA6GpE,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CA4alE"}