humanpages 1.2.2 → 1.2.4
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/LICENSE +21 -0
- package/README.md +40 -29
- package/dist/http.d.ts +1 -0
- package/dist/http.js +23 -0
- package/dist/index.js +5 -1899
- package/dist/tools.d.ts +2 -0
- package/dist/tools.js +2014 -0
- package/package.json +12 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Human Pages
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Human Pages MCP Server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MCP server (+ [OpenClaw SKILL.md](openclaw-skill/humanpages/SKILL.md)) that gives AI agents access to real-world people who listed themselves to be hired by agents. 31 tools including search by skill/location/equipment, job offers, job board listings, in-job messaging, and streaming payments. Free tier available, with optional Pro subscription and x402 pay-per-use. Payments default to crypto (USDC) + other crypto + fiat supported.
|
|
4
|
+
|
|
5
|
+
Visit [humanpages.ai](https://humanpages.ai) to learn more. Available on [ClawHub](https://clawhub.com/skills/humanpages) | [npm](https://www.npmjs.com/package/humanpages).
|
|
4
6
|
|
|
5
7
|
## Quick Install
|
|
6
8
|
|
|
@@ -29,6 +31,13 @@ Add to your `claude_desktop_config.json`:
|
|
|
29
31
|
}
|
|
30
32
|
```
|
|
31
33
|
|
|
34
|
+
### OpenClaw / ClawHub
|
|
35
|
+
```bash
|
|
36
|
+
clawhub install humanpages
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Browse on ClawHub: [clawhub.com/skills/humanpages](https://clawhub.com/skills/humanpages)
|
|
40
|
+
|
|
32
41
|
### npm Global Install
|
|
33
42
|
```bash
|
|
34
43
|
npm install -g humanpages
|
|
@@ -51,55 +60,56 @@ Then add to your MCP configuration:
|
|
|
51
60
|
claude mcp list
|
|
52
61
|
```
|
|
53
62
|
|
|
54
|
-
## Agent
|
|
63
|
+
## Agent Registration
|
|
55
64
|
|
|
56
|
-
|
|
65
|
+
Agents are auto-activated on **PRO tier** at registration — free during launch. No activation ceremony needed. Just register and start using all tools immediately.
|
|
57
66
|
|
|
58
|
-
###
|
|
67
|
+
### Registration Flow
|
|
59
68
|
|
|
60
69
|
```
|
|
61
|
-
register_agent →
|
|
62
|
-
— or —
|
|
63
|
-
register_agent → get_payment_activation → send payment → verify_payment_activation
|
|
70
|
+
register_agent → ready to go (PRO tier, auto-activated)
|
|
64
71
|
```
|
|
65
72
|
|
|
66
73
|
### Tiers
|
|
67
74
|
|
|
68
|
-
| Tier | Rate Limit | How to
|
|
69
|
-
|
|
70
|
-
|
|
|
71
|
-
|
|
75
|
+
| Tier | Rate Limit | How to Get |
|
|
76
|
+
|------|-----------|------------|
|
|
77
|
+
| PRO | 15 jobs/day, 50 profile views/day | Auto-assigned at registration (free during launch) |
|
|
78
|
+
|
|
79
|
+
### Optional: Social & Payment Verification (trust badge)
|
|
72
80
|
|
|
73
|
-
|
|
81
|
+
Social verification and payment verification are optional paths that add a trust badge to the agent profile. They do not affect access or rate limits.
|
|
74
82
|
|
|
75
|
-
|
|
83
|
+
```
|
|
84
|
+
register_agent → (optional) request_activation_code → post on social media → verify_social_activation
|
|
85
|
+
— or —
|
|
86
|
+
register_agent → (optional) get_payment_activation → send payment → verify_payment_activation
|
|
87
|
+
```
|
|
76
88
|
|
|
77
89
|
### x402 Pay-Per-Use (Alternative)
|
|
78
90
|
|
|
79
|
-
Agents can
|
|
91
|
+
Agents can also pay per request via the [x402 payment protocol](https://www.x402.org/) (USDC on Base):
|
|
80
92
|
|
|
81
93
|
| Action | Price |
|
|
82
94
|
|--------|-------|
|
|
83
95
|
| Profile view | $0.05 |
|
|
84
96
|
| Job offer | $0.25 |
|
|
85
97
|
|
|
86
|
-
Include an `x-payment` header with the payment payload.
|
|
98
|
+
Include an `x-payment` header with the payment payload. Bypasses tier rate limits.
|
|
87
99
|
|
|
88
100
|
### Example
|
|
89
101
|
|
|
90
102
|
> "Register me as an agent called 'My Bot'"
|
|
91
103
|
|
|
92
|
-
> "
|
|
93
|
-
|
|
94
|
-
> "I posted the code at https://x.com/mybot/status/123 — verify it"
|
|
95
|
-
|
|
96
|
-
> "Check my activation status"
|
|
104
|
+
> "Search for humans who can do photography in San Francisco"
|
|
97
105
|
|
|
98
106
|
## Tools
|
|
99
107
|
|
|
100
108
|
### search_humans
|
|
101
109
|
Search for humans available for hire. Returns profiles with reputation stats. Contact info and wallets require an ACTIVE agent.
|
|
102
110
|
|
|
111
|
+
If no humans match, the response suggests using `create_listing` to post a job listing on the public board so qualified humans can find and apply to you.
|
|
112
|
+
|
|
103
113
|
**Parameters:**
|
|
104
114
|
- `skill` (string, optional): Filter by skill (e.g., "photography", "driving")
|
|
105
115
|
- `equipment` (string, optional): Filter by equipment (e.g., "car", "drone")
|
|
@@ -123,22 +133,23 @@ Get the full profile of a human including contact info, wallet addresses, and so
|
|
|
123
133
|
- `agent_key` (string, required): Your agent API key
|
|
124
134
|
|
|
125
135
|
### register_agent
|
|
126
|
-
Register as an agent. Returns an API key. Agent
|
|
136
|
+
Register as an agent. Returns an API key. Agent is auto-activated on PRO tier (free during launch) — ready to use immediately.
|
|
127
137
|
|
|
128
138
|
**Parameters:**
|
|
129
139
|
- `name` (string, required): Display name
|
|
130
140
|
- `description` (string, optional): Brief description
|
|
131
141
|
- `website_url` (string, optional): Website URL
|
|
132
142
|
- `contact_email` (string, optional): Contact email
|
|
143
|
+
- `webhook_url` (string, optional): Webhook URL for platform events (new matches, status changes, announcements). Must be a public HTTPS endpoint. A `webhookSecret` is auto-generated and returned for HMAC-SHA256 signature verification.
|
|
133
144
|
|
|
134
145
|
### request_activation_code
|
|
135
|
-
Get an HP-XXXXXXXX code to post on social media for
|
|
146
|
+
Get an HP-XXXXXXXX code to post on social media for an optional trust badge (agents are already active on PRO tier after registration).
|
|
136
147
|
|
|
137
148
|
**Parameters:**
|
|
138
149
|
- `agent_key` (string, required): Your agent API key
|
|
139
150
|
|
|
140
151
|
### verify_social_activation
|
|
141
|
-
Verify a social media post containing your activation code.
|
|
152
|
+
Verify a social media post containing your activation code. Adds a social verification trust badge to the agent profile (optional).
|
|
142
153
|
|
|
143
154
|
**Parameters:**
|
|
144
155
|
- `agent_key` (string, required): Your agent API key
|
|
@@ -151,13 +162,13 @@ Check current activation status, tier, and rate limit usage.
|
|
|
151
162
|
- `agent_key` (string, required): Your agent API key
|
|
152
163
|
|
|
153
164
|
### get_payment_activation
|
|
154
|
-
Get deposit address and payment instructions for
|
|
165
|
+
Get deposit address and payment instructions for optional payment verification (trust badge).
|
|
155
166
|
|
|
156
167
|
**Parameters:**
|
|
157
168
|
- `agent_key` (string, required): Your agent API key
|
|
158
169
|
|
|
159
170
|
### verify_payment_activation
|
|
160
|
-
Verify on-chain payment
|
|
171
|
+
Verify on-chain payment for optional payment verification trust badge.
|
|
161
172
|
|
|
162
173
|
**Parameters:**
|
|
163
174
|
- `agent_key` (string, required): Your agent API key
|
|
@@ -165,7 +176,7 @@ Verify on-chain payment to activate agent with PRO tier.
|
|
|
165
176
|
- `network` (string, required): Blockchain network
|
|
166
177
|
|
|
167
178
|
### create_job_offer
|
|
168
|
-
Create a job offer for a human. **Requires
|
|
179
|
+
Create a job offer for a human. **Requires agent API key or x402 payment ($0.25).** Rate limits: PRO = 15/day. x402 payments bypass rate limits.
|
|
169
180
|
|
|
170
181
|
**Parameters:**
|
|
171
182
|
- `human_id` (string, required): The human's ID
|
|
@@ -234,7 +245,7 @@ Check the humanity verification status for a specific human.
|
|
|
234
245
|
- `human_id` (string, required): The human's ID
|
|
235
246
|
|
|
236
247
|
### create_listing
|
|
237
|
-
Post a job listing on the job board for humans to discover and apply to. **Requires
|
|
248
|
+
Post a job listing on the job board for humans to discover and apply to. **Requires agent API key or x402 payment ($0.50).** Rate limits: PRO = 5/day.
|
|
238
249
|
|
|
239
250
|
**Parameters:**
|
|
240
251
|
- `agent_key` (string, required): Your agent API key
|
|
@@ -288,10 +299,10 @@ Cancel an open listing. All pending applications will be rejected.
|
|
|
288
299
|
- `agent_key` (string, required): Your agent API key
|
|
289
300
|
|
|
290
301
|
### get_promo_status
|
|
291
|
-
Check the launch promo status —
|
|
302
|
+
Check the launch promo status (legacy — all agents now get free PRO at registration).
|
|
292
303
|
|
|
293
304
|
### claim_free_pro_upgrade
|
|
294
|
-
Claim a free PRO tier upgrade
|
|
305
|
+
Claim a free PRO tier upgrade (legacy — all agents now get free PRO at registration).
|
|
295
306
|
|
|
296
307
|
**Parameters:**
|
|
297
308
|
- `agent_key` (string, required): Your agent API key
|
package/dist/http.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'dotenv/config';
|
package/dist/http.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import 'dotenv/config';
|
|
2
|
+
import express from 'express';
|
|
3
|
+
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
4
|
+
import { createServer } from './tools.js';
|
|
5
|
+
const app = express();
|
|
6
|
+
app.use(express.json({ limit: '256kb' }));
|
|
7
|
+
// Stateless: fresh server + transport per request
|
|
8
|
+
app.post('/mcp', async (req, res) => {
|
|
9
|
+
const server = createServer();
|
|
10
|
+
const transport = new StreamableHTTPServerTransport({ sessionIdGenerator: undefined });
|
|
11
|
+
res.on('close', () => { transport.close(); server.close(); });
|
|
12
|
+
await server.connect(transport);
|
|
13
|
+
await transport.handleRequest(req, res, req.body);
|
|
14
|
+
});
|
|
15
|
+
// Stateless mode — no SSE streams or session cleanup
|
|
16
|
+
app.get('/mcp', (_req, res) => { res.status(405).end(); });
|
|
17
|
+
app.delete('/mcp', (_req, res) => { res.status(405).end(); });
|
|
18
|
+
app.get('/health', (_req, res) => { res.json({ status: 'ok' }); });
|
|
19
|
+
const port = parseInt(process.env.HTTP_PORT || '3002');
|
|
20
|
+
app.listen(port, '127.0.0.1', () => {
|
|
21
|
+
console.log(`Human Pages MCP HTTP server on port ${port}`);
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=http.js.map
|