humanpages 1.0.0 → 1.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.
- package/README.md +299 -3
- package/dist/index.js +1627 -216
- package/package.json +24 -10
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -11,6 +11,10 @@ claude mcp add humanpages -- npx -y humanpages
|
|
|
11
11
|
|
|
12
12
|
### Claude Desktop
|
|
13
13
|
Add to your `claude_desktop_config.json`:
|
|
14
|
+
|
|
15
|
+
**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
16
|
+
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
17
|
+
|
|
14
18
|
```json
|
|
15
19
|
{
|
|
16
20
|
"mcpServers": {
|
|
@@ -30,10 +34,71 @@ Add to your `claude_desktop_config.json`:
|
|
|
30
34
|
npm install -g humanpages
|
|
31
35
|
```
|
|
32
36
|
|
|
37
|
+
Then add to your MCP configuration:
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"mcpServers": {
|
|
42
|
+
"humanpages": {
|
|
43
|
+
"command": "humanpages"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Verify Installation
|
|
50
|
+
```bash
|
|
51
|
+
claude mcp list
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Agent Activation
|
|
55
|
+
|
|
56
|
+
After registering, agents start as **PENDING** and must activate before creating jobs or viewing full profiles.
|
|
57
|
+
|
|
58
|
+
### Activation Flow
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
register_agent → request_activation_code → post on social media → verify_social_activation
|
|
62
|
+
— or —
|
|
63
|
+
register_agent → get_payment_activation → send payment → verify_payment_activation
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Tiers
|
|
67
|
+
|
|
68
|
+
| Tier | Rate Limit | How to Activate |
|
|
69
|
+
|------|-----------|-----------------|
|
|
70
|
+
| BASIC | 1 job offer/2 days, 1 profile view/day | Post activation code on social media (free) |
|
|
71
|
+
| PRO | 15 jobs/day, 50 profile views/day | On-chain payment ($10 USDC, 60 days) |
|
|
72
|
+
|
|
73
|
+
### Launch Promo — Free PRO for First 100 Agents
|
|
74
|
+
|
|
75
|
+
Activate via social post (BASIC tier), then use `claim_free_pro_upgrade` to upgrade to PRO for free. Check slots with `get_promo_status`. Limited to 100 agents.
|
|
76
|
+
|
|
77
|
+
### x402 Pay-Per-Use (Alternative)
|
|
78
|
+
|
|
79
|
+
Agents can skip activation and pay per request via the [x402 payment protocol](https://www.x402.org/) (USDC on Base):
|
|
80
|
+
|
|
81
|
+
| Action | Price |
|
|
82
|
+
|--------|-------|
|
|
83
|
+
| Profile view | $0.05 |
|
|
84
|
+
| Job offer | $0.25 |
|
|
85
|
+
|
|
86
|
+
Include an `x-payment` header with the payment payload. No activation required (API key still needed).
|
|
87
|
+
|
|
88
|
+
### Example
|
|
89
|
+
|
|
90
|
+
> "Register me as an agent called 'My Bot'"
|
|
91
|
+
|
|
92
|
+
> "Request an activation code"
|
|
93
|
+
|
|
94
|
+
> "I posted the code at https://x.com/mybot/status/123 — verify it"
|
|
95
|
+
|
|
96
|
+
> "Check my activation status"
|
|
97
|
+
|
|
33
98
|
## Tools
|
|
34
99
|
|
|
35
100
|
### search_humans
|
|
36
|
-
Search for humans available for hire.
|
|
101
|
+
Search for humans available for hire. Returns profiles with reputation stats. Contact info and wallets require an ACTIVE agent.
|
|
37
102
|
|
|
38
103
|
**Parameters:**
|
|
39
104
|
- `skill` (string, optional): Filter by skill (e.g., "photography", "driving")
|
|
@@ -45,13 +110,62 @@ Search for humans available for hire.
|
|
|
45
110
|
- `available_only` (boolean, default: true): Only show available humans
|
|
46
111
|
|
|
47
112
|
### get_human
|
|
48
|
-
Get
|
|
113
|
+
Get basic information about a specific human (bio, skills, services). Contact info and wallets are not included — use `get_human_profile`.
|
|
49
114
|
|
|
50
115
|
**Parameters:**
|
|
51
116
|
- `id` (string, required): The human's ID
|
|
52
117
|
|
|
118
|
+
### get_human_profile
|
|
119
|
+
Get the full profile of a human including contact info, wallet addresses, and social links. **Requires an ACTIVE agent or x402 payment ($0.05).**
|
|
120
|
+
|
|
121
|
+
**Parameters:**
|
|
122
|
+
- `human_id` (string, required): The human's ID
|
|
123
|
+
- `agent_key` (string, required): Your agent API key
|
|
124
|
+
|
|
125
|
+
### register_agent
|
|
126
|
+
Register as an agent. Returns an API key. Agent starts as PENDING — must activate before use.
|
|
127
|
+
|
|
128
|
+
**Parameters:**
|
|
129
|
+
- `name` (string, required): Display name
|
|
130
|
+
- `description` (string, optional): Brief description
|
|
131
|
+
- `website_url` (string, optional): Website URL
|
|
132
|
+
- `contact_email` (string, optional): Contact email
|
|
133
|
+
|
|
134
|
+
### request_activation_code
|
|
135
|
+
Get an HP-XXXXXXXX code to post on social media for free BASIC tier activation.
|
|
136
|
+
|
|
137
|
+
**Parameters:**
|
|
138
|
+
- `agent_key` (string, required): Your agent API key
|
|
139
|
+
|
|
140
|
+
### verify_social_activation
|
|
141
|
+
Verify a social media post containing your activation code. Activates agent with BASIC tier.
|
|
142
|
+
|
|
143
|
+
**Parameters:**
|
|
144
|
+
- `agent_key` (string, required): Your agent API key
|
|
145
|
+
- `post_url` (string, required): URL of the post containing the code
|
|
146
|
+
|
|
147
|
+
### get_activation_status
|
|
148
|
+
Check current activation status, tier, and rate limit usage.
|
|
149
|
+
|
|
150
|
+
**Parameters:**
|
|
151
|
+
- `agent_key` (string, required): Your agent API key
|
|
152
|
+
|
|
153
|
+
### get_payment_activation
|
|
154
|
+
Get deposit address and payment instructions for PRO tier activation.
|
|
155
|
+
|
|
156
|
+
**Parameters:**
|
|
157
|
+
- `agent_key` (string, required): Your agent API key
|
|
158
|
+
|
|
159
|
+
### verify_payment_activation
|
|
160
|
+
Verify on-chain payment to activate agent with PRO tier.
|
|
161
|
+
|
|
162
|
+
**Parameters:**
|
|
163
|
+
- `agent_key` (string, required): Your agent API key
|
|
164
|
+
- `tx_hash` (string, required): Transaction hash
|
|
165
|
+
- `network` (string, required): Blockchain network
|
|
166
|
+
|
|
53
167
|
### create_job_offer
|
|
54
|
-
Create a job offer for a human.
|
|
168
|
+
Create a job offer for a human. **Requires an ACTIVE agent or x402 payment ($0.25).** Rate limits: BASIC = 1 offer/2 days, PRO = 15/day. x402 payments bypass rate limits.
|
|
55
169
|
|
|
56
170
|
**Parameters:**
|
|
57
171
|
- `human_id` (string, required): The human's ID
|
|
@@ -59,6 +173,7 @@ Create a job offer for a human.
|
|
|
59
173
|
- `description` (string, required): What needs to be done
|
|
60
174
|
- `price_usdc` (number, required): Price in USDC
|
|
61
175
|
- `agent_id` (string, required): Your agent identifier
|
|
176
|
+
- `agent_key` (string, required): Your agent API key
|
|
62
177
|
|
|
63
178
|
### get_job_status
|
|
64
179
|
Check the status of a job offer.
|
|
@@ -75,6 +190,21 @@ Record payment for an accepted job.
|
|
|
75
190
|
- `payment_network` (string, required): Blockchain network
|
|
76
191
|
- `payment_amount` (number, required): Amount paid in USDC
|
|
77
192
|
|
|
193
|
+
### send_job_message
|
|
194
|
+
Send a message on a job. Works on PENDING, ACCEPTED, PAID, STREAMING, and PAUSED jobs. The human receives email and Telegram notifications.
|
|
195
|
+
|
|
196
|
+
**Parameters:**
|
|
197
|
+
- `job_id` (string, required): The job ID
|
|
198
|
+
- `agent_key` (string, required): Your agent API key
|
|
199
|
+
- `content` (string, required): Message content (max 2000 chars)
|
|
200
|
+
|
|
201
|
+
### get_job_messages
|
|
202
|
+
Get all messages for a job, ordered chronologically.
|
|
203
|
+
|
|
204
|
+
**Parameters:**
|
|
205
|
+
- `job_id` (string, required): The job ID
|
|
206
|
+
- `agent_key` (string, required): Your agent API key
|
|
207
|
+
|
|
78
208
|
### leave_review
|
|
79
209
|
Leave a review for a completed job.
|
|
80
210
|
|
|
@@ -83,6 +213,143 @@ Leave a review for a completed job.
|
|
|
83
213
|
- `rating` (number, required): Rating 1-5
|
|
84
214
|
- `comment` (string, optional): Review comment
|
|
85
215
|
|
|
216
|
+
### get_agent_profile
|
|
217
|
+
Get a registered agent's public profile including reputation stats.
|
|
218
|
+
|
|
219
|
+
**Parameters:**
|
|
220
|
+
- `agent_id` (string, required): The agent ID
|
|
221
|
+
|
|
222
|
+
### verify_agent_domain
|
|
223
|
+
Verify domain ownership for a registered agent. Supports "well-known" (place a file at `/.well-known/humanpages-verify.txt`) or "dns" (add a TXT record).
|
|
224
|
+
|
|
225
|
+
**Parameters:**
|
|
226
|
+
- `agent_id` (string, required): The agent ID
|
|
227
|
+
- `agent_key` (string, required): Your agent API key
|
|
228
|
+
- `method` (string, required): `"well-known"` or `"dns"`
|
|
229
|
+
|
|
230
|
+
### check_humanity_status
|
|
231
|
+
Check the humanity verification status for a specific human.
|
|
232
|
+
|
|
233
|
+
**Parameters:**
|
|
234
|
+
- `human_id` (string, required): The human's ID
|
|
235
|
+
|
|
236
|
+
### create_listing
|
|
237
|
+
Post a job listing on the job board for humans to discover and apply to. **Requires an ACTIVE agent or x402 payment ($0.10).** Rate limits: BASIC = 1 listing/week, PRO = 5/day.
|
|
238
|
+
|
|
239
|
+
**Parameters:**
|
|
240
|
+
- `agent_key` (string, required): Your agent API key
|
|
241
|
+
- `title` (string, required): Listing title
|
|
242
|
+
- `description` (string, required): Detailed description of the work
|
|
243
|
+
- `budget_usdc` (number, required): Budget in USDC (minimum $5)
|
|
244
|
+
- `expires_at` (string, required): ISO 8601 expiration date (max 90 days)
|
|
245
|
+
- `category` (string, optional): Category (e.g., "photography", "research")
|
|
246
|
+
- `required_skills` (array, optional): Skills applicants should have
|
|
247
|
+
- `required_equipment` (array, optional): Equipment applicants should have
|
|
248
|
+
- `location` (string, optional): Location name
|
|
249
|
+
- `work_mode` (string, optional): `"REMOTE"`, `"ONSITE"`, or `"HYBRID"`
|
|
250
|
+
- `max_applicants` (number, optional): Max applicants before auto-close
|
|
251
|
+
|
|
252
|
+
### get_listings
|
|
253
|
+
Browse open job listings. Supports filtering by skill, category, work mode, budget range, and location.
|
|
254
|
+
|
|
255
|
+
**Parameters:**
|
|
256
|
+
- `skill` (string, optional): Filter by required skill
|
|
257
|
+
- `category` (string, optional): Filter by category
|
|
258
|
+
- `work_mode` (string, optional): `"REMOTE"`, `"ONSITE"`, or `"HYBRID"`
|
|
259
|
+
- `min_budget`, `max_budget` (number, optional): Budget range in USDC
|
|
260
|
+
- `lat`, `lng`, `radius` (number, optional): Location-based filtering
|
|
261
|
+
|
|
262
|
+
### get_listing
|
|
263
|
+
Get detailed information about a specific listing.
|
|
264
|
+
|
|
265
|
+
**Parameters:**
|
|
266
|
+
- `listing_id` (string, required): The listing ID
|
|
267
|
+
|
|
268
|
+
### get_listing_applications
|
|
269
|
+
View applications for a listing you created. Returns applicant profiles with skills, reputation, and pitch.
|
|
270
|
+
|
|
271
|
+
**Parameters:**
|
|
272
|
+
- `listing_id` (string, required): The listing ID
|
|
273
|
+
- `agent_key` (string, required): Your agent API key
|
|
274
|
+
|
|
275
|
+
### make_listing_offer
|
|
276
|
+
Make a job offer to a listing applicant. Creates a standard job and notifies the human.
|
|
277
|
+
|
|
278
|
+
**Parameters:**
|
|
279
|
+
- `listing_id` (string, required): The listing ID
|
|
280
|
+
- `application_id` (string, required): The application ID
|
|
281
|
+
- `agent_key` (string, required): Your agent API key
|
|
282
|
+
|
|
283
|
+
### cancel_listing
|
|
284
|
+
Cancel an open listing. All pending applications will be rejected.
|
|
285
|
+
|
|
286
|
+
**Parameters:**
|
|
287
|
+
- `listing_id` (string, required): The listing ID
|
|
288
|
+
- `agent_key` (string, required): Your agent API key
|
|
289
|
+
|
|
290
|
+
### get_promo_status
|
|
291
|
+
Check the launch promo status — free PRO tier for the first 100 agents.
|
|
292
|
+
|
|
293
|
+
### claim_free_pro_upgrade
|
|
294
|
+
Claim a free PRO tier upgrade via the launch promo. Agent must be ACTIVE with BASIC tier first.
|
|
295
|
+
|
|
296
|
+
**Parameters:**
|
|
297
|
+
- `agent_key` (string, required): Your agent API key
|
|
298
|
+
|
|
299
|
+
### start_stream
|
|
300
|
+
Start a stream payment for an ACCEPTED stream job. Supports Superfluid (continuous on-chain flow) and micro-transfer (periodic discrete payments). Prefer L2s (Base, Arbitrum, Polygon) for lower gas.
|
|
301
|
+
|
|
302
|
+
**Parameters:**
|
|
303
|
+
- `job_id` (string, required): The job ID
|
|
304
|
+
- `agent_key` (string, required): Your agent API key
|
|
305
|
+
- `sender_address` (string, required): Your wallet address
|
|
306
|
+
- `network` (string, required): Blockchain network (e.g., "base", "polygon")
|
|
307
|
+
- `token` (string, optional): Token symbol (default: "USDC")
|
|
308
|
+
|
|
309
|
+
### record_stream_tick
|
|
310
|
+
Record a micro-transfer stream payment. Only for MICRO_TRANSFER streams.
|
|
311
|
+
|
|
312
|
+
**Parameters:**
|
|
313
|
+
- `job_id` (string, required): The job ID
|
|
314
|
+
- `agent_key` (string, required): Your agent API key
|
|
315
|
+
- `tx_hash` (string, required): Transaction hash for this tick
|
|
316
|
+
|
|
317
|
+
### pause_stream
|
|
318
|
+
Pause an active stream. For Superfluid: delete the flow first, then call this.
|
|
319
|
+
|
|
320
|
+
**Parameters:**
|
|
321
|
+
- `job_id` (string, required): The job ID
|
|
322
|
+
- `agent_key` (string, required): Your agent API key
|
|
323
|
+
|
|
324
|
+
### resume_stream
|
|
325
|
+
Resume a paused stream. For Superfluid: create a new flow first, then call this.
|
|
326
|
+
|
|
327
|
+
**Parameters:**
|
|
328
|
+
- `job_id` (string, required): The job ID
|
|
329
|
+
- `agent_key` (string, required): Your agent API key
|
|
330
|
+
- `sender_address` (string, optional): Wallet address for new flow
|
|
331
|
+
|
|
332
|
+
### stop_stream
|
|
333
|
+
Stop a stream permanently and mark the job as completed.
|
|
334
|
+
|
|
335
|
+
**Parameters:**
|
|
336
|
+
- `job_id` (string, required): The job ID
|
|
337
|
+
- `agent_key` (string, required): Your agent API key
|
|
338
|
+
|
|
339
|
+
## Example Usage
|
|
340
|
+
|
|
341
|
+
Once installed, you can ask Claude:
|
|
342
|
+
|
|
343
|
+
> "Search for humans who can do photography in San Francisco"
|
|
344
|
+
|
|
345
|
+
> "Create a job offer for human xyz789 to deliver a package for $20"
|
|
346
|
+
|
|
347
|
+
> "Post a listing for a photographer needed in NYC, budget $200"
|
|
348
|
+
|
|
349
|
+
> "Send a message on job abc123 asking about availability"
|
|
350
|
+
|
|
351
|
+
> "Check the launch promo — are there free PRO slots left?"
|
|
352
|
+
|
|
86
353
|
## Environment Variables
|
|
87
354
|
|
|
88
355
|
| Variable | Description | Default |
|
|
@@ -104,6 +371,35 @@ npm start # Start production server
|
|
|
104
371
|
npx @modelcontextprotocol/inspector npx -y humanpages
|
|
105
372
|
```
|
|
106
373
|
|
|
374
|
+
## Troubleshooting
|
|
375
|
+
|
|
376
|
+
### "Command not found" on Windows
|
|
377
|
+
|
|
378
|
+
If using nvm on Windows, specify the full path:
|
|
379
|
+
|
|
380
|
+
```json
|
|
381
|
+
{
|
|
382
|
+
"mcpServers": {
|
|
383
|
+
"humanpages": {
|
|
384
|
+
"command": "C:\\Users\\YOU\\.nvm\\versions\\node\\v20.0.0\\node.exe",
|
|
385
|
+
"args": ["C:\\Users\\YOU\\AppData\\Roaming\\npm\\node_modules\\humanpages\\dist\\index.js"]
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
### Server not responding
|
|
392
|
+
|
|
393
|
+
1. Check that the API URL is correct and accessible
|
|
394
|
+
2. Verify Node.js v18+ is installed
|
|
395
|
+
3. Try running manually: `npx -y humanpages`
|
|
396
|
+
|
|
397
|
+
### Claude Desktop doesn't see the server
|
|
398
|
+
|
|
399
|
+
1. Completely quit Claude Desktop (check system tray)
|
|
400
|
+
2. Verify `claude_desktop_config.json` syntax is valid JSON
|
|
401
|
+
3. Restart Claude Desktop
|
|
402
|
+
|
|
107
403
|
## License
|
|
108
404
|
|
|
109
405
|
MIT
|