xdcai 0.1.13

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/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "xdcai",
3
+ "version": "0.1.13",
4
+ "description": "Pay for x402 services on XDC with USDC via a custodial wallet. The agent never pays gas (EIP-3009).",
5
+ "type": "module",
6
+ "bin": {
7
+ "xdcai": "bin/xdcai.js"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "providers.json",
12
+ "SKILL.md",
13
+ "skill.json"
14
+ ],
15
+ "engines": {
16
+ "node": ">=20"
17
+ },
18
+ "keywords": [
19
+ "x402",
20
+ "xdc",
21
+ "usdc",
22
+ "agent",
23
+ "payments",
24
+ "eip-3009",
25
+ "agentic-commerce"
26
+ ],
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/0xbeny/xdctaskman.git"
31
+ },
32
+ "homepage": "https://xdctaskman-web.vercel.app",
33
+ "publishConfig": {
34
+ "access": "public"
35
+ }
36
+ }
package/providers.json ADDED
@@ -0,0 +1,31 @@
1
+ [
2
+ {
3
+ "id": "x402-server",
4
+ "name": "XDC AI x402 Server",
5
+ "description": "First-party pay-per-call resources on XDC via x402. Gasless (EIP-3009) - agents pay only USDC, gas is sponsored. Discovery over MCP at /mcp.",
6
+ "mcpUrl": "https://xdctaskman-x402-server.vercel.app/mcp",
7
+ "services": [
8
+ {
9
+ "url": "https://xdctaskman-x402-server.vercel.app/x402/echo",
10
+ "method": "GET",
11
+ "priceUSDC": "0.0001",
12
+ "capability": "demo.echo"
13
+ },
14
+ {
15
+ "url": "https://xdctaskman-x402-server.vercel.app/x402/time",
16
+ "method": "GET",
17
+ "priceUSDC": "0.0003",
18
+ "capability": "demo.time"
19
+ },
20
+ {
21
+ "url": "https://xdctaskman-x402-server.vercel.app/x402/xdc-gas",
22
+ "method": "GET",
23
+ "priceUSDC": "0.0002",
24
+ "capability": "xdc.gas-price"
25
+ }
26
+ ],
27
+ "tags": ["xdc", "mcp", "demo"],
28
+ "active": true,
29
+ "payTo": "0x06543dA3c5183941B958f0562Fe015C3d02D3708"
30
+ }
31
+ ]
package/skill.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "xdcai",
3
+ "version": "0.1.0",
4
+ "description": "Pay for x402 services on XDC with USDC via a custodial wallet. The agent never pays gas (EIP-3009).",
5
+ "bin": "xdcai",
6
+ "tools": [
7
+ {
8
+ "name": "login",
9
+ "description": "Authenticate with email + OTP; creates or loads the user's XDC wallet. Login requires Terms & Conditions acceptance: before running, show the user https://xdctaskman-web.vercel.app/terms and only pass --accept-terms with their consent.",
10
+ "command": "xdcai login --email {email} --code {code} --accept-terms",
11
+ "parameters": {
12
+ "type": "object",
13
+ "properties": {
14
+ "email": { "type": "string", "description": "User email for the OTP login." },
15
+ "code": { "type": "string", "description": "The one-time code (omit to be prompted)." }
16
+ },
17
+ "required": ["email"]
18
+ }
19
+ },
20
+ {
21
+ "name": "wallet_address",
22
+ "description": "Print the user's XDC wallet address (to fund with USDC).",
23
+ "command": "xdcai wallet address",
24
+ "parameters": { "type": "object", "properties": {} }
25
+ },
26
+ {
27
+ "name": "wallet_balance",
28
+ "description": "Show the wallet's USDC and native XDC balance.",
29
+ "command": "xdcai wallet balance",
30
+ "parameters": { "type": "object", "properties": {} }
31
+ },
32
+ {
33
+ "name": "wallet_transfer",
34
+ "description": "Gaslessly transfer a token (USDC) to another EVM address; a relayer pays the XDC gas. Returns the explorer link and success/failure.",
35
+ "command": "xdcai wallet transfer {amount} {token} {to}",
36
+ "parameters": {
37
+ "type": "object",
38
+ "properties": {
39
+ "amount": { "type": "string", "description": "Amount as a decimal string, e.g. \"0.5\"." },
40
+ "token": { "type": "string", "description": "Token symbol or address. Currently USDC." },
41
+ "to": { "type": "string", "description": "Recipient EVM address (0x...)." }
42
+ },
43
+ "required": ["amount", "token", "to"]
44
+ }
45
+ },
46
+ {
47
+ "name": "marketplace_list",
48
+ "description": "List/search curated x402 services on the live catalog. Use search (comma-separated keywords) to rank by tags + capability and find the most relevant API for a task.",
49
+ "command": "xdcai marketplace list --search {search} --capability {capability} --max-price {maxPrice}",
50
+ "parameters": {
51
+ "type": "object",
52
+ "properties": {
53
+ "search": { "type": "string", "description": "Comma-separated keywords, e.g. \"email,domains\" - ranked, best match first." },
54
+ "capability": { "type": "string" },
55
+ "maxPrice": { "type": "string", "description": "Max price in USDC, e.g. \"0.05\"." }
56
+ }
57
+ }
58
+ },
59
+ {
60
+ "name": "call",
61
+ "description": "Call an x402 URL; auto-pays on HTTP 402 and returns the result. No gas paid by the user.",
62
+ "command": "xdcai call {url} --method {method} --data {data}",
63
+ "parameters": {
64
+ "type": "object",
65
+ "properties": {
66
+ "url": { "type": "string", "description": "The x402 service URL." },
67
+ "method": { "type": "string", "enum": ["GET", "POST"], "default": "GET" },
68
+ "data": { "type": "string", "description": "JSON body for POST requests." }
69
+ },
70
+ "required": ["url"]
71
+ }
72
+ }
73
+ ]
74
+ }