desearch-mcp-server 0.3.2 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ - `extract` and `web-crawl` take `full_page` (boolean). With `format: "text"` it returns all visible text of the page, every section, table and notice, instead of only the main content. The `extract` description says what the `js_required` and `blocked` errors mean.
6
+
7
+ - Server icon for connector UIs such as the ChatGPT mention chip. The `initialize` result `serverInfo` now has `title` ("Desearch"), `websiteUrl` (https://www.desearch.ai), and `icons`: `https://mcp.desearch.ai/icon-512.png` (512x512) and `https://mcp.desearch.ai/icon-64.png` (64x64), both `image/png`. The `MCP_PUBLIC_BASE_URL` environment variable changes the icon origin. `/icon-512.png`, `/icon-64.png`, `/favicon.png` (64x64), and `/favicon.ico` (16, 32, 48, 64) are served with no auth, `Cache-Control: public, max-age=86400`, `Access-Control-Allow-Origin: *`, and `Cross-Origin-Resource-Policy: cross-origin`. On Vercel they are static files in `public/`, served before any rewrite, with those headers and an explicit `Content-Type` set in `vercel.json`. The Node HTTP server (`npm run start:http`) serves the same bytes from `icons-data.ts` on GET and HEAD; other methods return 405. The icon matches the logo in the www.desearch.ai site header: the official Desearch glyph in black (`#000000`) centered on an opaque white (`#FFFFFF`) square, as the header renders it with CSS `brightness-0` on its white bar. Only the square glyph is used, since the header wordmark is wide. `scripts/gen-icons.py` composes each size separately with Pillow from `assets/desearch-mark-white.png` (byte-identical to https://www.desearch.ai/logo.png), recolors the glyph to black from its alpha channel, and only ever downscales it, writes them to `public/`, and embeds the same bytes in `icons-data.ts`.
8
+
9
+ - Breaking tool-name change: `people-search-control` is replaced by three tools, `people-search-pause`, `people-search-resume`, and `people-search-cancel`. Each takes only `task_id` and calls the same `POST /desearch/people/tasks/{task_id}/pause`, `/resume`, or `/cancel` route as before, with the same 409 handling. Errors are titled `People Search Pause error`, `People Search Resume error`, and `People Search Cancel error`. `people-search-control` is removed with no alias. The `people-search` description, the server instructions, and the `next` hints for pausing and paused tasks name the new tools.
10
+ - Annotation fixes: `people-search` sets `destructiveHint: false` (it was `true`); it creates a task and does not delete or overwrite anything. `people-search-pause` and `people-search-resume` set `destructiveHint: false` and `idempotentHint: true`. `people-search-cancel` sets `destructiveHint: true` and `idempotentHint: true`. `people-search-status`, `people-search-tasks`, and `people-profiles` set `readOnlyHint: true` and `destructiveHint: false` explicitly. `openWorldHint` stays `true` on every tool.
11
+ - Description updates only, no behavior, schema, name, or annotation change: `people-search`, `people-search-status`, `people-search-pause`, `people-search-resume`, `people-search-tasks`, and `people-profiles` now state what each returns, whether it spends credits (`reserved_cost_usd` and `final_cost_usd`, prices at https://desearch.ai/pricing), and where the personal data comes from (public X, YouTube, LinkedIn, and TikTok profiles and posts; only publicly listed contacts; kept 30 days after a search ends).
12
+ - The `people-search-pause` description, the `TASK_STATE_CHANGE` comment, and the README annotation paragraph spell out why pause keeps `destructiveHint: false`: it loses no data, changes no billing, and resume continues where it stopped with no new charge. Caveat: a search paused for more than 7 days is cancelled by the API and can no longer be resumed. `people-search-resume` says it works only on a paused search (409 otherwise).
13
+
14
+ - Accept OAuth state values up to 4096 characters so OpenAI Apps relay state survives sign-in. Report missing and oversized state values separately.
15
+
16
+ - Add the public OpenAI Apps domain verification route at `/.well-known/openai-apps-challenge` with the public token set in source. The `OPENAI_APPS_CHALLENGE_TOKEN` environment variable can override it; unset, empty, whitespace-only or placeholder values fall back to the source token.
17
+
18
+ ## 0.3.3
19
+
20
+ - `unverified_criteria` reads each check's `is_disqualifier`, which the API returns since 2026-10-20, and falls back to the keyword rule for checks scored before it, like the API's CSV `unverified_criteria` column.
21
+
3
22
  ## 0.3.2
4
23
 
5
24
  People Search summaries show the result fields the API returns since 2026-10-20.
package/README.md CHANGED
@@ -7,7 +7,7 @@ If Desearch is useful, a [star](https://github.com/Desearch-ai/mcp-desearch/star
7
7
 
8
8
  Remote: `https://mcp.desearch.ai/mcp` with header `Authorization: Bearer <DESEARCH_API_KEY>`.
9
9
 
10
- Local: `npx -y desearch-mcp-server` with env `DESEARCH_API_KEY`.
10
+ Local: `npx -y desearch-mcp-server@latest` with env `DESEARCH_API_KEY`.
11
11
 
12
12
  [Get a key](https://console.desearch.ai/api-keys).
13
13
 
@@ -57,7 +57,7 @@ AI search, X search and web search for AI agents, plus page extraction, X data t
57
57
 
58
58
  The Desearch MCP server includes the following tools.
59
59
 
60
- Lookup tools, including `search` and `fetch`, set `readOnlyHint: true`, `destructiveHint: false`, and `openWorldHint: true`. `people-search` starts a paid job billed to the user's Desearch balance, so `readOnlyHint` is false and `destructiveHint` is true. `people-search-control` can cancel a search, so `readOnlyHint` is false and `destructiveHint` is true. `openWorldHint` is true on every tool because the call reaches a live external source.
60
+ Lookup tools, including `search` and `fetch`, set `readOnlyHint: true`, `destructiveHint: false`, and `openWorldHint: true`. `people-search-status`, `people-search-tasks`, and `people-profiles` are lookups too. `people-search` starts a paid job billed to the user's Desearch balance, so `readOnlyHint` is false; it creates a new task and does not delete or overwrite anything, so `destructiveHint` is false. `people-search-pause` and `people-search-resume` change a task's state and undo each other, so `readOnlyHint` and `destructiveHint` are false and `idempotentHint` is true. Pausing loses no data (people found so far stay readable and the search keeps its progress) and changes no billing (nothing is charged or refunded; the reservation stays until the search ends), and resume continues from where the search stopped with no new charge. The caveat: the API cancels a search paused for more than 7 days, and a cancelled search cannot be resumed, so a pause is reversible only within those 7 days. `people-search-cancel` cannot be undone, so `readOnlyHint` is false and `destructiveHint` and `idempotentHint` are true. `openWorldHint` is true on every tool because the call reaches a live external source.
61
61
 
62
62
  - **AI Search** (`ai-search`): Performs AI Twitter and web searches with relevant links and summary. `tools` uses short source ids (`web`, `twitter`, `arxiv`, `wikipedia`, `hackernews`, `reddit`). Older labels such as `Web Search`, `ArXiv Search`, `Wikipedia Search`, `Hacker News Search`, and `Reddit Search` are still accepted and sent as the short id. `youtube` is not accepted. Default is `["web", "twitter"]`.
63
63
  - **X Search** (`x-search`): Tweet search on X. Arguments: `query` (required), `count` (optional, default 20). Sort stays Top. Optional filters: `user`, `start_date`, `end_date` (YYYY-MM-DD), `lang`, `verified`, `blue_verified`, `is_quote`, `is_video`, `is_image`, `min_retweets`, `min_replies`, `min_likes`.
@@ -65,7 +65,7 @@ Lookup tools, including `search` and `fetch`, set `readOnlyHint: true`, `destruc
65
65
  - **Fetch Page** (`fetch`): Read a public page as text. Argument: `id` (required, an `http` or `https` URL from `search`).
66
66
  - **Web Search** (`web-search`): SERP-style web search. Arguments: `query` (required), `start` (optional pagination offset).
67
67
  - **Web Links Search** (`web-links-search`): Web link search. Arguments: `prompt` (required), `tools` (optional, only `web`, default `["web"]`; `Web Search` is accepted and rewritten to `web`), `count` (optional, 10–200). The links/web API rejects other sources, so they are not in the enum.
68
- - **Extract** (`extract`): Read a public URL as text or HTML. Preferred over crawl. Arguments: `url` (required), `format` (optional, `html` or `text`), `js` (optional), `wait` (optional milliseconds).
68
+ - **Extract** (`extract`): Read a public URL as text or HTML. Preferred over crawl. Arguments: `url` (required), `format` (optional, `html` or `text`), `js` (optional), `wait` (optional milliseconds), `full_page` (optional: with `text`, every visible section of the page instead of its main content). Errors carry an `error_code`: `js_required` (retry with `js: true`), `blocked` (the site refused or showed a bot check), `page_not_found`.
69
69
  - **Web Crawl** (`web-crawl`): Same arguments as `extract`, on the legacy `/web/crawl` route. The SDK marks `webCrawl` deprecated in favor of `extract`; this tool stays so that route remains reachable. Prefer `extract` for new integrations.
70
70
  - **X Links Search** (`x-links-search`): AI search for X post links. Arguments: `prompt` (required), `count` (optional, 10–200).
71
71
  - **X Posts By URLs** (`x-posts-by-urls`): Full posts for a list of URLs. Argument: `urls` (required).
@@ -76,11 +76,13 @@ Lookup tools, including `search` and `fetch`, set `readOnlyHint: true`, `destruc
76
76
  - **X User Replies** (`x-user-replies`): Posts and replies by a user. Arguments: `user` (required), `count` (optional, 1–100), `query` (optional).
77
77
  - **X Post Replies** (`x-post-replies`): Replies to a post. Arguments: `post_id` (required), `count` (optional, 1–100), `query` (optional).
78
78
  - **X Trends** (`x-trends`): Trending topics for a location. Arguments: `woeid` (required), `count` (optional, 30–100).
79
- - **People Search** (`people-search`): Start a paid job billed to the user's Desearch balance: a search for people who match a plain-language description. Arguments: `platform` (required: `x`, `youtube`, `linkedin`, or `tiktok`), `query` (required, 3–1000 characters), `count` (optional, 5–200, API default 25), `min_score` (optional, 0–100), `exclude` (optional handles), `metadata` (optional labels, below), `idempotency_key` (optional), and that platform's filters (below). Returns the `task_id`, status, and `reserved_cost_usd`.
80
- - **People Search Status** (`people-search-status`): A task's status, progress, and cost, plus a page of the people found so far. Arguments: `task_id` (required), `cursor` (optional, `next_cursor` from the previous call), `limit` (optional, 1–100, default 25), `include_people` (optional, default `true`). Free.
81
- - **Control People Search** (`people-search-control`): Pause, resume, or cancel a task. Arguments: `task_id` (required), `action` (required: `pause`, `resume`, or `cancel`). Free.
82
- - **List People Search Tasks** (`people-search-tasks`): Your searches, newest first. Arguments: `platform` (optional), `status` (optional list, for example `["running", "paused"]`), `limit` (optional, 1–100), `cursor` (optional), `metadata` (optional, up to 3 labels a task must have, for example `{"campaign": "q4-outbound"}`). Free.
83
- - **List People Found** (`people-profiles`): Everyone your searches found on one platform, one entry per person, with the search that found them. Arguments: `platform` (required), `q` (optional text in name, handle, bio, or location), `sort` (optional: `score`, `recent`, or `audience`), `limit` (optional, 1–200, default 25), `cursor` (optional), and the filters `has` (channels every person must have: `email`, `website`, `x`, `linkedin`, `instagram`, `youtube`, `tiktok`), `min_audience`, `max_audience`, `min_score`, `location`, `verified`. Free.
79
+ - **People Search** (`people-search`): Start a paid job billed to the user's Desearch balance: a search for people who match a plain-language description. Arguments: `platform` (required: `x`, `youtube`, `linkedin`, or `tiktok`), `query` (required, 3–1000 characters), `count` (optional, 5–200, API default 25), `min_score` (optional, 0–100), `exclude` (optional handles), `metadata` (optional labels, below), `idempotency_key` (optional), and that platform's filters (below). Returns the `task_id`, status, and `reserved_cost_usd` (`count` times the platform's per-person price at the time of the call; prices at https://desearch.ai/pricing); the ended task carries `final_cost_usd`. Public data only: public X posts and profile fields, public YouTube channel pages plus the creator's own website for publicly listed contact details, public LinkedIn posts and profiles, and public TikTok videos and profiles. Contacts are only those the person lists publicly.
80
+ - **People Search Status** (`people-search-status`): A task's status, progress, and cost, plus a page of the people found so far. Arguments: `task_id` (required), `cursor` (optional, `next_cursor` from the previous call), `limit` (optional, 1–100, default 25), `include_people` (optional, default `true`). Free; it reads a search you already started (people come from public profiles and posts).
81
+ - **Pause People Search** (`people-search-pause`): Pause a task. A queued search pauses at once; a running one finishes its current batch first. No data is lost and billing does not change; `people-search-resume` continues where it stopped with no new charge. A search paused for more than 7 days is cancelled by the API and can no longer be resumed. Argument: `task_id` (required). Free.
82
+ - **Resume People Search** (`people-search-resume`): Resume a paused task from where it stopped, with no new charge. Works only on a paused search within 7 days of pausing (409 otherwise). Argument: `task_id` (required). Free.
83
+ - **Cancel People Search** (`people-search-cancel`): Stop a task for good. You pay only for the people it already delivered; the rest of the reservation is returned. Cannot be undone. Argument: `task_id` (required). Free.
84
+ - **List People Search Tasks** (`people-search-tasks`): Your searches, newest first. Arguments: `platform` (optional), `status` (optional list, for example `["running", "paused"]`), `limit` (optional, 1–100), `cursor` (optional), `metadata` (optional, up to 3 labels a task must have, for example `{"campaign": "q4-outbound"}`). Free; lists tasks, not the people they found.
85
+ - **List People Found** (`people-profiles`): Everyone your own searches found on one platform, one entry per person, with the search that found them. Runs no new search and queries no outside source. Arguments: `platform` (required), `q` (optional text in name, handle, bio, or location), `sort` (optional: `score`, `recent`, or `audience`), `limit` (optional, 1–200, default 25), `cursor` (optional), and the filters `has` (channels every person must have: `email`, `website`, `x`, `linkedin`, `instagram`, `youtube`, `tiktok`), `min_audience`, `max_audience`, `min_score`, `location`, `verified`. Free.
84
86
 
85
87
  The full SDK method → endpoint → MCP tool map is in [docs/API_MCP_PARITY.md](docs/API_MCP_PARITY.md). Every public `desearch-js` 1.5 method is a tool. `latestTweets` was removed from the SDK (`GET /twitter/latest` in 1.0.1) and is not exposed. People Search is not in `desearch-js` 1.5; its tools call the `/desearch/people/*` routes directly, and the parity doc lists them too.
86
88
 
@@ -92,7 +94,7 @@ A search is a background task:
92
94
 
93
95
  1. `people-search` starts a paid job billed to the user's Desearch balance and returns a `task_id` at once. It is the only billed People Search call. It reserves `count` people at the platform's per-person price (`reserved_cost_usd`). When the search ends you pay only for the people it delivered (a per-search minimum applies when it finds anyone; a search that finds no one is free), and the rest of the reservation is returned. Send the same `idempotency_key` to retry a call without starting, or paying for, a second search.
94
96
  2. The search usually runs for 1 to 5 minutes. `people-search-status` returns its status, progress, cost, and the people found so far. People arrive while it runs: pass `next_cursor` back as `cursor` to get only the new ones. When `done` is `true` and `has_more` is `false`, you have everyone it found.
95
- 3. `people-search-control` pauses, resumes, or cancels it. A cancelled search bills only the people it already delivered.
97
+ 3. `people-search-pause`, `people-search-resume`, and `people-search-cancel` pause, resume, or cancel it. A cancelled search bills only the people it already delivered.
96
98
 
97
99
  People found stay readable for 30 days after a search ends. `people-profiles` lists them per platform across all your searches, with filters such as `has: ["email"]`.
98
100
 
@@ -231,7 +233,7 @@ npm install -g desearch-mcp-server
231
233
  Or run it without a global install:
232
234
 
233
235
  ```bash
234
- npx -y desearch-mcp-server
236
+ npx -y desearch-mcp-server@latest
235
237
  ```
236
238
 
237
239
  Cursor or Claude can start that bin directly:
@@ -241,7 +243,7 @@ Cursor or Claude can start that bin directly:
241
243
  "mcpServers": {
242
244
  "desearch": {
243
245
  "command": "npx",
244
- "args": ["-y", "desearch-mcp-server"],
246
+ "args": ["-y", "desearch-mcp-server@latest"],
245
247
  "env": {
246
248
  "DESEARCH_API_KEY": "your-api-key"
247
249
  }
@@ -288,14 +290,14 @@ Hosted server (no local install). Remote servers use `serverUrl` with `headers`:
288
290
  "desearch": {
289
291
  "serverUrl": "https://mcp.desearch.ai/mcp",
290
292
  "headers": {
291
- "x-api-key": "your-api-key"
293
+ "Authorization": "Bearer your-api-key"
292
294
  }
293
295
  }
294
296
  }
295
297
  }
296
298
  ```
297
299
 
298
- To keep the key out of the file, Windsurf can interpolate an environment variable: `"x-api-key": "${env:DESEARCH_API_KEY}"`.
300
+ To keep the key out of the file, Windsurf can interpolate an environment variable: `"Authorization": "Bearer ${env:DESEARCH_API_KEY}"`.
299
301
 
300
302
  Local stdio alternative:
301
303
 
@@ -304,7 +306,7 @@ Local stdio alternative:
304
306
  "mcpServers": {
305
307
  "desearch": {
306
308
  "command": "npx",
307
- "args": ["-y", "desearch-mcp-server"],
309
+ "args": ["-y", "desearch-mcp-server@latest"],
308
310
  "env": {
309
311
  "DESEARCH_API_KEY": "your-api-key"
310
312
  }
@@ -327,7 +329,7 @@ Hosted server:
327
329
  "desearch": {
328
330
  "url": "https://mcp.desearch.ai/mcp",
329
331
  "headers": {
330
- "x-api-key": "your-api-key"
332
+ "Authorization": "Bearer your-api-key"
331
333
  }
332
334
  }
333
335
  }
@@ -341,7 +343,7 @@ Local stdio alternative:
341
343
  "context_servers": {
342
344
  "desearch": {
343
345
  "command": "npx",
344
- "args": ["-y", "desearch-mcp-server"],
346
+ "args": ["-y", "desearch-mcp-server@latest"],
345
347
  "env": {
346
348
  "DESEARCH_API_KEY": "your-api-key"
347
349
  }
@@ -438,7 +440,7 @@ The same server can run over MCP Streamable HTTP for a remote client. Local stdi
438
440
  Remote requests do not use that environment variable. Discovery does not need a key: `initialize`, `notifications/initialized`, `ping`, `tools/list`, `prompts/list`, `resources/list`, and `resources/templates/list` return 200 so a marketplace scanner can read the tool list. `tools/call` and every other method still require the caller's own Desearch API key, the same key from [console.desearch.ai/api-keys](https://console.desearch.ai/api-keys):
439
441
 
440
442
  - `Authorization: Bearer <DESEARCH_API_KEY>` (preferred)
441
- - `x-api-key: <DESEARCH_API_KEY>`
443
+ - `x-api-key: <DESEARCH_API_KEY>` (also accepted)
442
444
  - `Authorization: Bearer <oauth access token>` after the OAuth sign-in below
443
445
 
444
446
  A bare `Authorization: <DESEARCH_API_KEY>` value is also accepted. The key is not read from the query string. There is no shared server secret. A protected call without a valid key or access token returns 401 with a `WWW-Authenticate` header pointing at `/.well-known/oauth-protected-resource/mcp`. The hosted process forwards the per-request Desearch API key to the Desearch API only when a call needs it. An OAuth access token is opaque: the server looks up the key stored for that token and does not put the raw key in the token.
@@ -447,7 +449,7 @@ The MCP endpoint is `POST /mcp`. Responses are JSON (stateless Streamable HTTP).
447
449
 
448
450
  ## Hosted endpoint
449
451
 
450
- The public Streamable HTTP endpoint is `https://mcp.desearch.ai/mcp`. Listing the tools does not need a key. Send your Desearch API key on each `tools/call` in the `x-api-key` header. `Authorization: Bearer <key>` is also accepted. Use the key from [console.desearch.ai/api-keys](https://console.desearch.ai/api-keys). The server does not read a key from the query string. Remote requests do not use a process-level `DESEARCH_API_KEY`.
452
+ The public Streamable HTTP endpoint is `https://mcp.desearch.ai/mcp`. Listing the tools does not need a key. Send your Desearch API key on each `tools/call` using `Authorization: Bearer <DESEARCH_API_KEY>` (preferred). The `x-api-key` header is also accepted. Use the key from [console.desearch.ai/api-keys](https://console.desearch.ai/api-keys). The server does not read a key from the query string. Remote requests do not use a process-level `DESEARCH_API_KEY`.
451
453
 
452
454
  Cursor, or any remote MCP client:
453
455
 
@@ -457,7 +459,7 @@ Cursor, or any remote MCP client:
457
459
  "desearch": {
458
460
  "url": "https://mcp.desearch.ai/mcp",
459
461
  "headers": {
460
- "x-api-key": "your-api-key"
462
+ "Authorization": "Bearer your-api-key"
461
463
  }
462
464
  }
463
465
  }
@@ -521,7 +523,7 @@ Sources: [Custom remote MCP connectors](https://claude.com/docs/connectors/custo
521
523
  2. Select **Add**, then **Custom**. If asked for the connector type, choose **Web**.
522
524
  3. Server URL: `https://mcp.desearch.ai/mcp`
523
525
  4. Sign-in option: **No sign-in**.
524
- 5. Under **Request headers**, add `x-api-key` with your Desearch API key as the value.
526
+ 5. Under **Request headers**, add `Authorization` with `Bearer <DESEARCH_API_KEY>` as the value, replacing `<DESEARCH_API_KEY>` with your Desearch API key.
525
527
  6. Select **Add**.
526
528
 
527
529
  The header value is stored once and shared by everyone in the organization who uses the connector.
@@ -532,7 +534,7 @@ OAuth alternative: choose sign-in instead of a request header, leave the OAuth c
532
534
 
533
535
  ```bash
534
536
  claude mcp add --transport http desearch https://mcp.desearch.ai/mcp \
535
- --header "x-api-key: YOUR_DESEARCH_API_KEY"
537
+ --header "Authorization: Bearer your-api-key"
536
538
  ```
537
539
 
538
540
  ### Run locally
@@ -592,10 +594,16 @@ No server-side Desearch API key is required in the Vercel project. After deploy,
592
594
 
593
595
  `https://<project>.vercel.app/mcp`
594
596
 
595
- `https://mcp.desearch.ai/mcp` is the public hostname. This repo does not create DNS records. Clients send `x-api-key`, or `Authorization: Bearer <key>`.
597
+ `https://mcp.desearch.ai/mcp` is the public hostname. This repo does not create DNS records. Clients send `Authorization: Bearer <DESEARCH_API_KEY>` (preferred). The `x-api-key` header is also accepted.
596
598
 
597
599
  The same `node build/index.js --http` process is the fallback if you would rather run a long-lived Node host instead of Vercel. The Docker image defaults to stdio; pass `--http` or set `MCP_TRANSPORT=http` to serve Streamable HTTP from it.
598
600
 
601
+ ### OpenAI Apps domain verification
602
+
603
+ `GET https://mcp.desearch.ai/.well-known/openai-apps-challenge` serves the exact domain verification token as plain text, with no trailing newline and `Cache-Control: no-store`. It requires no authentication. `HEAD` returns the same headers with no body.
604
+
605
+ The public token from the OpenAI Apps portal (Verify Domain) is set in the `OPENAI_APPS_CHALLENGE_TOKEN` constant in `openai-apps-challenge.ts`. Set the `OPENAI_APPS_CHALLENGE_TOKEN` environment variable in Vercel and redeploy to override it. Environment values are trimmed; unset, empty, whitespace-only or `REPLACE_WITH_OPENAI_APPS_CHALLENGE_TOKEN` values fall back to the source token.
606
+
599
607
  ## Troubleshooting 🔧
600
608
 
601
609
  ### Common Issues
@@ -610,7 +618,7 @@ The same `node build/index.js --http` process is the fallback if you would rathe
610
618
  - Confirm your `DESEARCH_API_KEY` is valid
611
619
  - Check the `DESEARCH_API_KEY` is correctly set in the Cursor or Claude Desktop config
612
620
  - Verify that there are no spaces around the API key
613
- - For the remote HTTP server, send `Authorization: Bearer <key>` or `x-api-key`. A hosted `DESEARCH_API_KEY` environment variable is not used for those requests.
621
+ - For the remote HTTP server, send `Authorization: Bearer <DESEARCH_API_KEY>` (preferred); `x-api-key` is also accepted. A hosted `DESEARCH_API_KEY` environment variable is not used for those requests.
614
622
 
615
623
  3. **Connection Issues**
616
624
 
@@ -0,0 +1,2 @@
1
+ export declare const AGENT_TOOLS_ORG_TOKEN = "at_verify_gLV2Bm0Bsys8C0oKURWhJrhk";
2
+ //# sourceMappingURL=agent-tools-org.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-tools-org.d.ts","sourceRoot":"","sources":["../agent-tools-org.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,uCAAuC,CAAC"}
@@ -0,0 +1 @@
1
+ export const AGENT_TOOLS_ORG_TOKEN = "at_verify_gLV2Bm0Bsys8C0oKURWhJrhk";
@@ -0,0 +1,2 @@
1
+ export declare const AGENT_TOOLS_VERIFY_TOKEN = "atc_WeEc7PWtwwhYLbUau90rJj-5lvCrEKpD";
2
+ //# sourceMappingURL=agent-tools-verify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-tools-verify.d.ts","sourceRoot":"","sources":["../agent-tools-verify.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,yCAAyC,CAAC"}
@@ -0,0 +1 @@
1
+ export const AGENT_TOOLS_VERIFY_TOKEN = "atc_WeEc7PWtwwhYLbUau90rJj-5lvCrEKpD";
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../http.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAoBjC,MAAM,WAAW,iBAAiB;IA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/http.js CHANGED
@@ -1,5 +1,9 @@
1
1
  import { createServer } from "node:http";
2
2
  import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
3
+ import { PUBLIC_ICONS } from "./icons.js";
4
+ import { AGENT_TOOLS_ORG_TOKEN } from "./agent-tools-org.js";
5
+ import { AGENT_TOOLS_VERIFY_TOKEN } from "./agent-tools-verify.js";
6
+ import { openaiAppsChallengeToken } from "./openai-apps-challenge.js";
3
7
  import { DIRECT_CLIENT_IP_HEADER } from "./oauth/client-ip.js";
4
8
  import { OAuthConfigError } from "./oauth/errors.js";
5
9
  import { handleOAuthHttp, resolveRequestCredential } from "./oauth/http.js";
@@ -248,6 +252,60 @@ export async function handleMcpHttpRequest(request) {
248
252
  return withCors(new Response(null, { status: 204 }));
249
253
  }
250
254
  const pathname = normalizePath(new URL(request.url).pathname);
255
+ if (pathname === "/.well-known/openai-apps-challenge" || pathname === "/api/openai-apps-challenge") {
256
+ const token = openaiAppsChallengeToken();
257
+ if (token) {
258
+ if (request.method !== "GET" && request.method !== "HEAD") {
259
+ return withCors(jsonRpcError(405, -32000, "Method not allowed.", { Allow: "GET, HEAD" }));
260
+ }
261
+ return withCors(new Response(request.method === "HEAD" ? null : token, {
262
+ status: 200,
263
+ headers: {
264
+ "Content-Type": "text/plain; charset=utf-8",
265
+ "Cache-Control": "no-store",
266
+ },
267
+ }));
268
+ }
269
+ }
270
+ if (pathname === "/.well-known/agent-tools-verify.txt" || pathname === "/api/agent-tools-verify") {
271
+ if (request.method !== "GET" && request.method !== "HEAD") {
272
+ return withCors(jsonRpcError(405, -32000, "Method not allowed.", { Allow: "GET, HEAD" }));
273
+ }
274
+ return withCors(new Response(request.method === "HEAD" ? null : AGENT_TOOLS_VERIFY_TOKEN + "\n", {
275
+ status: 200,
276
+ headers: {
277
+ "Content-Type": "text/plain; charset=utf-8",
278
+ "Cache-Control": "no-store",
279
+ },
280
+ }));
281
+ }
282
+ if (pathname === "/.well-known/agent-tools.txt" || pathname === "/api/agent-tools") {
283
+ if (request.method !== "GET" && request.method !== "HEAD") {
284
+ return withCors(jsonRpcError(405, -32000, "Method not allowed.", { Allow: "GET, HEAD" }));
285
+ }
286
+ return withCors(new Response(request.method === "HEAD" ? null : AGENT_TOOLS_ORG_TOKEN, {
287
+ status: 200,
288
+ headers: {
289
+ "Content-Type": "text/plain; charset=utf-8",
290
+ "Cache-Control": "no-store",
291
+ },
292
+ }));
293
+ }
294
+ const icon = PUBLIC_ICONS.get(pathname);
295
+ if (icon) {
296
+ if (request.method !== "GET" && request.method !== "HEAD") {
297
+ return withCors(jsonRpcError(405, -32000, "Method not allowed.", { Allow: "GET, HEAD" }));
298
+ }
299
+ return withCors(new Response(request.method === "HEAD" ? null : icon.bytes, {
300
+ status: 200,
301
+ headers: {
302
+ "Content-Type": icon.contentType,
303
+ "Content-Length": String(icon.bytes.byteLength),
304
+ "Cache-Control": "public, max-age=86400",
305
+ "Cross-Origin-Resource-Policy": "cross-origin",
306
+ },
307
+ }));
308
+ }
251
309
  const oauthResponse = await handleOAuthHttp(request);
252
310
  if (oauthResponse) {
253
311
  return withCors(oauthResponse);
@@ -357,10 +415,13 @@ async function toWebRequest(req) {
357
415
  body: body && body.byteLength > 0 ? body : undefined,
358
416
  });
359
417
  }
360
- async function writeWebResponse(res, response) {
418
+ async function writeWebResponse(res, response, method) {
361
419
  const body = Buffer.from(await response.arrayBuffer());
362
420
  const headers = new Headers(response.headers);
363
- headers.set("content-length", String(body.byteLength));
421
+ // A HEAD response keeps the Content-Length of the GET body it describes.
422
+ if (method !== "HEAD" || !headers.has("content-length")) {
423
+ headers.set("content-length", String(body.byteLength));
424
+ }
364
425
  const outgoing = {};
365
426
  headers.forEach((value, key) => {
366
427
  outgoing[key] = value;
@@ -375,7 +436,7 @@ export function startHttpServer(options = {}) {
375
436
  try {
376
437
  const request = await toWebRequest(req);
377
438
  const response = await handleMcpHttpRequest(request);
378
- await writeWebResponse(res, response);
439
+ await writeWebResponse(res, response, request.method);
379
440
  }
380
441
  catch (error) {
381
442
  console.error(`HTTP server error: ${error instanceof Error ? error.message : String(error)}`);
@@ -0,0 +1,4 @@
1
+ export declare const ICON_512_PNG_BASE64: string;
2
+ export declare const ICON_64_PNG_BASE64: string;
3
+ export declare const FAVICON_ICO_BASE64: string;
4
+ //# sourceMappingURL=icons-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons-data.d.ts","sourceRoot":"","sources":["../icons-data.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,EAAE,MAAumpB,CAAC;AAC1opB,eAAO,MAAM,kBAAkB,EAAE,MAA2nE,CAAC;AAC7pE,eAAO,MAAM,kBAAkB,EAAE,MAA2oK,CAAC"}
@@ -0,0 +1,6 @@
1
+ // Generated by scripts/gen-icons.py from assets/desearch-mark-white.png
2
+ // (https://www.desearch.ai/logo.png). The site header renders it black on
3
+ // white via CSS brightness-0, so the icon is the black glyph on white. Do not edit.
4
+ export const ICON_512_PNG_BASE64 = "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAA9i0lEQVR4nO3debzOdf7/8ee1WLMvlcrSoCaVMmUrW5YWTFpQGFIUGiLh2LdzbAeTETJi0F4yaaGYBmU5ss2YvtLYUiHEcDq2nOtzfX5/+H0+PuciYznnXMv7cb/d5jbNRfUZ13Wu9/P9fr/er7fPtm1bAADAKP5oPwAAAMh9BAAAAAxEAAAAwEAEAAAADEQAAADAQAQAAAAMRAAAAMBABAAAAAxEAAAAwEAEAAAADEQAAADAQAQAAAAMRAAAAMBABAAAAAxEAAAAwEAEAAAADEQAAADAQAQAAAAMRAAAAMBABAAAAAxEAAAAwEAEAAAADEQAAADAQAQAAAAMRAAAAMBABAAAAAxEAAAAwEAEAAAADEQAAADAQAQAAAAMRAAAAMBABAAAAAxEAAAAwEAEAAAADEQAAADAQAQAAAAMRAAAAMBABAAAAAxEAAAAwEAEAAAADEQAAADAQAQAAAAMRAAAAM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r+5nFWfUqVKadq0aWrVqlWuLAs7g9Du3bvVsmVLffnll6xAZQPvn+GNN96ocePGqUWLFpLErB85igAQw3bv3q3BgwfTyQ+SlOX+hltvvVWvvfaabrvttlzdE3b+XYcOHVKXLl00f/58BYNBmkxdAu/Rvvz586tXr17q3bu3SpcunaX2AsgxNmJOKBSyp0yZYl911VW2JNvv99t+v9+WxH8M/U8wGHT/+rHHHrMPHjzoflZym2VZ7l/36tXLfa5AIBD1P6d4+Y/3/axbt669Zs2aLD//QG5gBSAGPfjgg/roo48kUeRnOufURzgcdovCnn76aUnRrQb3NqGaM2eOevTooaNHj2Z5XpzNe2KndOnSGjlypJ588kmK/BAVBIAYVKhQIZ04cUISR/tMFdn57aGHHtL48eNVqVIld6k9FgYK+//3H1i/fr2SkpK0dOlSSQTXSJHvZ9u2bTV8+HBVrlxZEkV+iA4+cTHoiiuuYK/fQE4luHO237IsVatWTR988IHef/99VapUyR1AYmHwl+TWJNx5551avHixxo0bp2LFismyLPf/j+m8nfxuvPFGLViwQG+88YYqV65MJz9EFSsAMah06dI6ePCgOxAgcTmnOpyB1HHjjTeqR48e6ty5s/LlyxfzRWHe7Yh///vfGjNmjN5++21JZ5a9bcOOrXqP9uXNm1fPP/+8+vTpo1KlSnFdL2ICASAGEQASm3OHgzMrdAQCATVu3FhPPfWUmjdvroIFC0qKn+VhO+L46scff6w///nPbtMqSe6vJfr2gHcLpE6dOkpNTVXt2rUl0ckPsYMAEIMIAInDWar3Ltl76zry5s2rChUqqGXLlnrooYdUvXp199fitSjM6RzoPPdnn32m6dOna8mSJcrIyJCkLL8uJc7qgLfIr1SpUhoxYoQ6depEkR9iEgEgBhEAElvZsmV1xx13qGbNmrr77rtVp06dLINCoswQI1cutmzZovnz52vRokVKS0s76/c7LYy9pwji5fN/rk5+I0aM0A033CApflZxYBYCQAwiAMQ/Z0AoV66cbrrpJlWrVk116tRR5cqVVapUKRUpUsT9vd7BLtFmiM5g7lTBS9KJEye0detWvf/++1q6dKl27typP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g6q656eHmSzWfWeMON8Q3u8dujr66tYyPzU85xztLS0oLe3F/F4HFevXsXPnz8B/E5uwsjx3cLXeUA2m0V3d3fVFXuj5tzWGGPIZDJ4//69GjfoZy4/8H0e8P37d4yOjiIWi7kKC6dIBw4cwNOnT9WYjY7zjeDLA5wztby8jNOnT9cMC8aYMr61tRVXrlxR3/RM09xUd68G32eClmVVHEbkcjns3bu3Is6dHpFKpbC0tKSe1+Hu1RD426DzYKJYLCKTyaCjo0MZvn37dkxNTanndbp7NTAgnMzGmaisrKzQyMgImaZJt27dop07d6osLux/cQmK0AT4r+LfNR0a0BRANwHdaAqgm4BuNAXQTUA3mgLoJqAbTQF0E9CNvwBm0Pco7jy1bwAAAABJRU5ErkJggg==";
@@ -0,0 +1,10 @@
1
+ export interface PublicIcon {
2
+ contentType: "image/png" | "image/x-icon";
3
+ bytes: Uint8Array<ArrayBuffer>;
4
+ }
5
+ /**
6
+ * Public icon paths for the Node HTTP server. On Vercel the same bytes are
7
+ * static files in public/, with headers set in vercel.json.
8
+ */
9
+ export declare const PUBLIC_ICONS: ReadonlyMap<string, PublicIcon>;
10
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../icons.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACvB,WAAW,EAAE,WAAW,GAAG,cAAc,CAAC;IAC1C,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;CAClC;AAUD;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAKvD,CAAC"}
package/build/icons.js ADDED
@@ -0,0 +1,17 @@
1
+ import { FAVICON_ICO_BASE64, ICON_512_PNG_BASE64, ICON_64_PNG_BASE64 } from "./icons-data.js";
2
+ function decode(base64) {
3
+ return new Uint8Array(Buffer.from(base64, "base64"));
4
+ }
5
+ const ICON_512 = { contentType: "image/png", bytes: decode(ICON_512_PNG_BASE64) };
6
+ const ICON_64 = { contentType: "image/png", bytes: decode(ICON_64_PNG_BASE64) };
7
+ const FAVICON = { contentType: "image/x-icon", bytes: decode(FAVICON_ICO_BASE64) };
8
+ /**
9
+ * Public icon paths for the Node HTTP server. On Vercel the same bytes are
10
+ * static files in public/, with headers set in vercel.json.
11
+ */
12
+ export const PUBLIC_ICONS = new Map([
13
+ ["/icon-512.png", ICON_512],
14
+ ["/icon-64.png", ICON_64],
15
+ ["/favicon.png", ICON_64],
16
+ ["/favicon.ico", FAVICON],
17
+ ]);
@@ -1 +1 @@
1
- {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../oauth/flow.ts"],"names":[],"mappings":"AAuDA,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,CAQzF;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,QAAQ,CAQvF;AAyDD,wBAAsB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAqFxE;AAwFD,wBAAsB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAOvE;AAmCD,wBAAsB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CA0DzE;AAgED,wBAAsB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAmBvE;AAoDD,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAUhG"}
1
+ {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../oauth/flow.ts"],"names":[],"mappings":"AA4DA,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,CAQzF;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,QAAQ,CAQvF;AAyDD,wBAAsB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAqFxE;AA2FD,wBAAsB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAOvE;AAmCD,wBAAsB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CA0DzE;AAgED,wBAAsB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAmBvE;AAoDD,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAUhG"}
@@ -5,6 +5,7 @@ import { authorizeKeyRateLimitConfig, registerRateLimitConfig, takeIpRateLimit }
5
5
  import { isAllowedRedirectUri, redirectsMatch } from "./redirects.js";
6
6
  import { accessTtlSec, codeTtlSec, getOAuthStore, refreshTtlSec, } from "./store.js";
7
7
  import { checkDesearchApiKey } from "./validate-key.js";
8
+ const MAX_STATE_LENGTH = 4096;
8
9
  const VERIFIER_PATTERN = /^[A-Za-z0-9\-._~]{43,128}$/;
9
10
  const HTML_HEADERS = {
10
11
  "Content-Type": "text/html; charset=utf-8",
@@ -12,10 +13,12 @@ const HTML_HEADERS = {
12
13
  "Referrer-Policy": "same-origin",
13
14
  "X-Frame-Options": "DENY",
14
15
  };
16
+ const EXTRA_FORM_ACTION_ORIGINS = {
17
+ "https://chatgpt.com": ["https://platform.openai.com"],
18
+ };
15
19
  /**
16
- * `form-action 'self'` blocks the 302 that follows a form POST in Chrome, so
17
- * the sign-in page also allows the validated callback origin (claude.ai,
18
- * chatgpt.com, or the loopback host and port).
20
+ * Chrome checks form-action on every redirect after a form POST, so allow the
21
+ * validated callback origin and ChatGPT's extra hop to the OpenAI platform portal.
19
22
  */
20
23
  function contentSecurityPolicy(redirectUri) {
21
24
  const targets = ["'self'"];
@@ -24,6 +27,7 @@ function contentSecurityPolicy(redirectUri) {
24
27
  const origin = new URL(redirectUri).origin;
25
28
  if (/^https?:\/\/[A-Za-z0-9.\[\]:-]+$/.test(origin)) {
26
29
  targets.push(origin);
30
+ targets.push(...(EXTRA_FORM_ACTION_ORIGINS[origin] ?? []));
27
31
  }
28
32
  }
29
33
  catch {
@@ -204,9 +208,12 @@ async function authorizeContext(request, query) {
204
208
  if (query.responseType !== "code") {
205
209
  return failAuthorize(request, client, fields, "unsupported_response_type", "Only authorization code is supported.");
206
210
  }
207
- if (!query.state || query.state.length > 512) {
211
+ if (!query.state) {
208
212
  return failAuthorize(request, client, fields, "invalid_request", "A state value is required.");
209
213
  }
214
+ if (query.state.length > MAX_STATE_LENGTH) {
215
+ return failAuthorize(request, client, fields, "invalid_request", "The state value is too long.");
216
+ }
210
217
  if (query.codeChallengeMethod !== "S256" || !VERIFIER_PATTERN.test(query.codeChallenge)) {
211
218
  return failAuthorize(request, client, fields, "invalid_request", "PKCE S256 is required.");
212
219
  }
@@ -0,0 +1,3 @@
1
+ export declare const OPENAI_APPS_CHALLENGE_TOKEN = "izKGHpAfQ5WzE5-QR0SrRad5StYDEzjKi434MfJGQPI";
2
+ export declare function openaiAppsChallengeToken(): string | null;
3
+ //# sourceMappingURL=openai-apps-challenge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openai-apps-challenge.d.ts","sourceRoot":"","sources":["../openai-apps-challenge.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,2BAA2B,gDAAgD,CAAC;AAGzF,wBAAgB,wBAAwB,IAAI,MAAM,GAAG,IAAI,CAGxD"}
@@ -0,0 +1,7 @@
1
+ // Public token from the OpenAI Apps portal (Verify Domain); the env var overrides it.
2
+ export const OPENAI_APPS_CHALLENGE_TOKEN = "izKGHpAfQ5WzE5-QR0SrRad5StYDEzjKi434MfJGQPI";
3
+ const PLACEHOLDER = "REPLACE_WITH_OPENAI_APPS_CHALLENGE_TOKEN";
4
+ export function openaiAppsChallengeToken() {
5
+ const token = process.env.OPENAI_APPS_CHALLENGE_TOKEN?.trim();
6
+ return token && token !== PLACEHOLDER ? token : OPENAI_APPS_CHALLENGE_TOKEN;
7
+ }
package/build/people.d.ts CHANGED
@@ -118,7 +118,7 @@ export declare function readPeopleStatus(client: PeopleClient, args: {
118
118
  limit?: number;
119
119
  include_people?: boolean;
120
120
  }): Promise<Record<string, unknown>>;
121
- /** `people-search-control`: pause, resume, or cancel a task. */
121
+ /** `people-search-pause`, `people-search-resume`, `people-search-cancel`: change a task's state. */
122
122
  export declare function controlPeopleTask(client: PeopleClient, args: {
123
123
  task_id: string;
124
124
  action: PeopleControlAction;
@@ -1 +1 @@
1
- {"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../people.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,mBAAmB,4BAA4B,CAAC;AAE7D,eAAO,MAAM,gBAAgB,iDAAkD,CAAC;AAChF,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,eAAO,MAAM,oBAAoB,6HAWvB,CAAC;AAEX,yDAAyD;AACzD,eAAO,MAAM,qBAAqB,EAAE,WAAW,CAAC,MAAM,CAMpD,CAAC;AAEH,uFAAuF;AACvF,eAAO,MAAM,sBAAsB,kFAQzB,CAAC;AAEX,eAAO,MAAM,oBAAoB,0CAA2C,CAAC;AAE7E,eAAO,MAAM,sBAAsB,wCAAyC,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,wBAAwB,CAAC;AACjE,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAA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C;AAED,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,EAAE,cAAc,CAAC;IACzB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,+EAA+E;AAC/E,wBAAsB,kBAAkB,CACpC,MAAM,EAAE,YAAY,EACpB,IAAI,EAAE,kBAAkB,GACzB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAqBlC"}
package/build/people.js CHANGED
@@ -221,8 +221,9 @@ function numberOf(value) {
221
221
  function stringOf(value) {
222
222
  return typeof value === "string" && value.trim() !== "" ? value : undefined;
223
223
  }
224
- // Same rule as the API's CSV `unverified_criteria` column (desearch-public-api
225
- // src/routers/people.py) and the console: a criterion naming a disqualifier.
224
+ // A check's `is_disqualifier` says whether it is a disqualifier. Checks scored before the
225
+ // flag existed fall back to the worker's keyword rule, which also sets the flag; the API's
226
+ // CSV `unverified_criteria` column (desearch-public-api src/utils/people_criteria.py) does the same.
226
227
  const DISQUALIFIER_CRITERION = /\b(disqualif(?:y|ier|iers)|exclude|excluding|not a fit|not qualified)\b/i;
227
228
  const MAX_UNVERIFIED = 5;
228
229
  const MAX_CRITERION_CHARS = 120;
@@ -238,7 +239,9 @@ export function unverifiedCriteria(score) {
238
239
  if (!criterion)
239
240
  continue;
240
241
  const met = check.verdict === "met";
241
- const disqualifier = DISQUALIFIER_CRITERION.test(criterion);
242
+ const disqualifier = typeof check.is_disqualifier === "boolean"
243
+ ? check.is_disqualifier
244
+ : DISQUALIFIER_CRITERION.test(criterion);
242
245
  if (met !== disqualifier)
243
246
  continue;
244
247
  const label = disqualifier ? "applies" : check.verdict === "not_met" ? "not met" : "unknown";
@@ -366,9 +369,9 @@ export function peopleNextStep(status, nextCursor, hasMore = false, task = {}) {
366
369
  ? `Still searching. Wait 15 to 30 seconds, then call ${again}.`
367
370
  : `Still searching. Wait 15 to 30 seconds, then call ${again} to get only the people found since this call.`;
368
371
  case "pausing":
369
- return "Pausing after the current batch. Resume it with people-search-control action \"resume\".";
372
+ return "Pausing after the current batch. Resume it with people-search-resume.";
370
373
  case "paused":
371
- return "Paused. Resume it with people-search-control action \"resume\", or cancel it.";
374
+ return "Paused. Resume it with people-search-resume, or cancel it with people-search-cancel.";
372
375
  case "cancelling":
373
376
  return "Cancelling. Call people-search-status again to read the final status.";
374
377
  case "completed":
@@ -441,7 +444,7 @@ export async function readPeopleStatus(client, args) {
441
444
  next: peopleNextStep(status, nextCursor, hasMore, summary),
442
445
  };
443
446
  }
444
- /** `people-search-control`: pause, resume, or cancel a task. */
447
+ /** `people-search-pause`, `people-search-resume`, `people-search-cancel`: change a task's state. */
445
448
  export async function controlPeopleTask(client, args) {
446
449
  const task = compactTask(await client.controlTask(args.task_id, args.action));
447
450
  const status = typeof task.status === "string" ? task.status : undefined;
package/build/server.d.ts CHANGED
@@ -1,7 +1,12 @@
1
1
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { type Icon } from "@modelcontextprotocol/sdk/types.js";
2
3
  import { type PeopleClient } from "./people.js";
3
4
  export declare const SERVER_NAME = "Desearch";
4
- export declare const SERVER_VERSION = "0.3.2";
5
+ export declare const SERVER_VERSION = "0.4.0";
6
+ export declare const SERVER_TITLE = "Desearch";
7
+ export declare const SERVER_WEBSITE_URL = "https://www.desearch.ai";
8
+ export declare const MCP_PUBLIC_BASE_URL: string;
9
+ export declare const SERVER_ICONS: Icon[];
5
10
  interface XSearchPayload {
6
11
  query: string;
7
12
  sort?: "Top" | "Latest";
@@ -24,6 +29,7 @@ interface PageContentPayload {
24
29
  format?: "html" | "text";
25
30
  js?: boolean;
26
31
  wait?: number;
32
+ full_page?: boolean;
27
33
  }
28
34
  interface DesearchClient {
29
35
  aiSearch(payload: Record<string, unknown>): Promise<unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AASpE,OAAO,EAiBH,KAAK,YAAY,EACpB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,WAAW,aAAa,CAAC;AACtC,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC,UAAU,cAAc;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,kBAAkB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;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AK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1F,YAAY,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7F,OAAO,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACtE,OAAO,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvD,QAAQ,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC3D;AAqOD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,yBAAyB,CAAC;AAuCvD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAYzD;AAgJD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACnC,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,cAAc,EACvB,YAAY,CAAC,EAAE,YAAY,GAC5B,SAAS,CA61BX"}
package/build/server.js CHANGED
@@ -2,10 +2,18 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
2
  import { ListPromptsRequestSchema, ListResourcesRequestSchema, ListResourceTemplatesRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
3
3
  import DesearchImport from "desearch-js";
4
4
  import { z } from "zod";
5
- import { PEOPLE_CONTROL_ACTIONS, PEOPLE_FILTER_CHANNELS, PEOPLE_METADATA_KEY_PATTERN, PEOPLE_METADATA_MAX_FILTERS, PEOPLE_METADATA_MAX_KEYS, PEOPLE_METADATA_VALUE_MAX, PEOPLE_PLATFORMS, PEOPLE_PROFILE_SORTS, PEOPLE_SEARCH_FILTERS, PEOPLE_TASK_STATUSES, controlPeopleTask, createPeopleClient, listPeopleProfiles, listPeopleTasks, readPeopleStatus, startPeopleSearch, } from "./people.js";
5
+ import { PEOPLE_FILTER_CHANNELS, PEOPLE_METADATA_KEY_PATTERN, PEOPLE_METADATA_MAX_FILTERS, PEOPLE_METADATA_MAX_KEYS, PEOPLE_METADATA_VALUE_MAX, PEOPLE_PLATFORMS, PEOPLE_PROFILE_SORTS, PEOPLE_SEARCH_FILTERS, PEOPLE_TASK_STATUSES, controlPeopleTask, createPeopleClient, listPeopleProfiles, listPeopleTasks, readPeopleStatus, startPeopleSearch, } from "./people.js";
6
6
  import { AI_SEARCH_TOOLS, WEB_LINK_TOOLS, toolIdSchema } from "./tool-sources.js";
7
7
  export const SERVER_NAME = "Desearch";
8
- export const SERVER_VERSION = "0.3.2";
8
+ export const SERVER_VERSION = "0.4.0";
9
+ export const SERVER_TITLE = "Desearch";
10
+ export const SERVER_WEBSITE_URL = "https://www.desearch.ai";
11
+ // Public origin of the hosted server, which serves the icons below.
12
+ export const MCP_PUBLIC_BASE_URL = (process.env.MCP_PUBLIC_BASE_URL?.trim() || "https://mcp.desearch.ai").replace(/\/+$/, "");
13
+ export const SERVER_ICONS = [
14
+ { src: `${MCP_PUBLIC_BASE_URL}/icon-512.png`, mimeType: "image/png", sizes: ["512x512"] },
15
+ { src: `${MCP_PUBLIC_BASE_URL}/icon-64.png`, mimeType: "image/png", sizes: ["64x64"] },
16
+ ];
9
17
  // desearch-js 1.5 publishes a default class. Node16 resolution types that package
10
18
  // as a module namespace, so the constructor is applied through a cast.
11
19
  const Desearch = DesearchImport;
@@ -22,20 +30,39 @@ const READ_ONLY_OPEN_WORLD = {
22
30
  };
23
31
  /**
24
32
  * `people-search` starts a paid job billed to the user's Desearch balance.
25
- * Spending that balance is irreversible, so destructiveHint is true.
33
+ * It creates a new task and reserves balance, but it does not delete or overwrite
34
+ * anything the caller already has, so destructiveHint is false. The unused part
35
+ * of the reservation is returned when the search ends.
26
36
  * Calling it again starts (and reserves) another search unless the same idempotency_key is sent.
27
37
  */
28
38
  const BILLED_TASK = {
29
39
  readOnlyHint: false,
30
- destructiveHint: true,
40
+ destructiveHint: false,
31
41
  idempotentHint: false,
32
42
  openWorldHint: true,
33
43
  };
34
44
  /**
35
- * `people-search-control` changes a task's state. `cancel` cannot be undone.
36
- * Repeating the same action has no further effect (the API answers 409).
45
+ * `people-search-pause` and `people-search-resume` change a task's state, and each
46
+ * undoes the other, so destructiveHint is false. Pausing loses no data (people found
47
+ * so far stay readable and the search keeps its progress) and changes no billing
48
+ * (nothing is charged or refunded; the reservation stays until the search ends).
49
+ * Resume continues from where the search stopped with no new charge.
50
+ * Caveat: the API cancels a search paused for more than 7 days, and a cancelled
51
+ * search cannot be resumed. Pause is reversible only within those 7 days; the
52
+ * cancel itself bills only the people already delivered and returns the rest.
53
+ * Repeating the same call has no further effect (the API answers 409).
54
+ */
55
+ const TASK_STATE_CHANGE = {
56
+ readOnlyHint: false,
57
+ destructiveHint: false,
58
+ idempotentHint: true,
59
+ openWorldHint: true,
60
+ };
61
+ /**
62
+ * `people-search-cancel` stops a task for good. It cannot be undone, so destructiveHint is true.
63
+ * Repeating it has no further effect (the API answers 409).
37
64
  */
38
- const TASK_CONTROL = {
65
+ const TASK_CANCEL = {
39
66
  readOnlyHint: false,
40
67
  destructiveHint: true,
41
68
  idempotentHint: true,
@@ -67,6 +94,10 @@ function pageContentFields() {
67
94
  .number()
68
95
  .optional()
69
96
  .describe("Post-load wait in milliseconds when JavaScript rendering is enabled."),
97
+ full_page: z
98
+ .boolean()
99
+ .optional()
100
+ .describe("With format 'text', return all visible text of the page (every section, table and notice) instead of only its main content."),
70
101
  };
71
102
  }
72
103
  const peopleTaskId = z
@@ -133,6 +164,44 @@ function definedFields(fields) {
133
164
  }
134
165
  return out;
135
166
  }
167
+ /**
168
+ * CrewAI's MCPServerAdapter (mcpadapt) sends an omitted optional argument as null.
169
+ * `.optional()` accepts a missing value and rejects null, which becomes
170
+ * "Expected number, received null". Null is the same as omitting the argument:
171
+ * defaults still apply, and a null is not forwarded to Desearch.
172
+ *
173
+ * `web-search` `start` has no schema default. The first page is offset 0, so
174
+ * `start: null` resolves to 0. An omitted `start` stays omitted.
175
+ */
176
+ function relaxOptional(key, field) {
177
+ if (!field.isOptional()) {
178
+ return field;
179
+ }
180
+ const whenNull = key === "start" ? 0 : undefined;
181
+ return z.preprocess((value) => (value === null ? whenNull : value), field);
182
+ }
183
+ function relaxShape(shape) {
184
+ const next = {};
185
+ for (const [key, field] of Object.entries(shape)) {
186
+ next[key] = relaxOptional(key, field);
187
+ }
188
+ return next;
189
+ }
190
+ function relaxInputSchema(inputSchema) {
191
+ if (!(inputSchema instanceof z.ZodObject)) {
192
+ return relaxShape(inputSchema);
193
+ }
194
+ const shape = relaxShape(inputSchema.shape);
195
+ const object = z.object(shape);
196
+ const unknownKeys = inputSchema._def.unknownKeys;
197
+ if (unknownKeys === "strict") {
198
+ return object.strict();
199
+ }
200
+ if (unknownKeys === "passthrough") {
201
+ return object.passthrough();
202
+ }
203
+ return object;
204
+ }
136
205
  /**
137
206
  * Payload note when a link search body has no link list.
138
207
  * Does not name web vs AI search, and does not say the query had "results".
@@ -295,7 +364,7 @@ function registerTool(server, apiKey, name, title, description, inputSchema, han
295
364
  register(name, {
296
365
  title,
297
366
  description,
298
- inputSchema,
367
+ inputSchema: relaxInputSchema(inputSchema),
299
368
  ...(outputSchema ? { outputSchema } : {}),
300
369
  annotations: { ...annotations, title },
301
370
  }, guarded);
@@ -310,11 +379,15 @@ function registerTool(server, apiKey, name, title, description, inputSchema, han
310
379
  export function createDesearchMcpServer(apiKey, client, peopleClient) {
311
380
  const desearch = client ?? new Desearch(apiKey);
312
381
  const people = peopleClient ?? createPeopleClient(apiKey);
313
- const server = new McpServer({
382
+ const serverInfo = {
314
383
  name: SERVER_NAME,
315
384
  version: SERVER_VERSION,
316
- }, {
317
- instructions: "Search the public web and X with Desearch. Use search for titles and links, then fetch with a result URL to read the page. Other tools cover AI search, X posts, and page extraction. People Search finds people and creators on X, YouTube, LinkedIn, and TikTok: people-search starts a paid job billed to the user's Desearch balance, people-search-status reads progress, and people-search-control can pause, resume, or cancel it. Calls need a Desearch API key.",
385
+ title: SERVER_TITLE,
386
+ websiteUrl: SERVER_WEBSITE_URL,
387
+ icons: SERVER_ICONS,
388
+ };
389
+ const server = new McpServer(serverInfo, {
390
+ instructions: "Search the public web and X with Desearch. Use search for titles and links, then fetch with a result URL to read the page. Other tools cover AI search, X posts, and page extraction. People Search finds people and creators on X, YouTube, LinkedIn, and TikTok: people-search starts a paid job billed to the user's Desearch balance, people-search-status reads progress, and people-search-pause, people-search-resume, and people-search-cancel pause, resume, or cancel it. Calls need a Desearch API key.",
318
391
  });
319
392
  registerTool(server, apiKey, "ai-search", "AI Search", "AI search and analysis on web using Desearch AI", {
320
393
  prompt: z.string().describe("Question, example: 'What is the latest news on AI?'"),
@@ -569,17 +642,17 @@ export function createDesearchMcpServer(apiKey, client, peopleClient) {
569
642
  return fail("X Post Replies error", error);
570
643
  }
571
644
  });
572
- registerTool(server, apiKey, "extract", "Extract Page Content", "Extract a public URL and return its content as plain text or HTML using Desearch. Preferred over web-crawl for new integrations. API docs: https://www.desearch.ai/docs/api-reference/get-web-extract", pageContentFields(), async ({ url, format, js, wait }) => {
645
+ registerTool(server, apiKey, "extract", "Extract Page Content", "Extract a public URL and return its content as plain text or HTML using Desearch. Text is the page's main content; set full_page for every section, such as opening hours or fee tables. A js_required error means the page needs js: true; blocked means the site refused or showed a bot check. Preferred over web-crawl for new integrations. API docs: https://www.desearch.ai/docs/api-reference/get-web-extract", pageContentFields(), async ({ url, format, js, wait, full_page }) => {
573
646
  try {
574
- return ok(await desearch.extract({ url, format, js, wait }));
647
+ return ok(await desearch.extract({ url, format, js, wait, full_page }));
575
648
  }
576
649
  catch (error) {
577
650
  return fail("Extract error", error);
578
651
  }
579
652
  });
580
- registerTool(server, apiKey, "web-crawl", "Crawl Web Page (Legacy)", "Crawl a public URL and return its content as plain text or HTML on the legacy Desearch /web/crawl route. The SDK marks webCrawl deprecated in favor of extract; this tool stays for parity with that route. Prefer extract for new integrations. API docs: https://www.desearch.ai/docs/guide/apis/extract-api", pageContentFields(), async ({ url, format, js, wait }) => {
653
+ registerTool(server, apiKey, "web-crawl", "Crawl Web Page (Legacy)", "Crawl a public URL and return its content as plain text or HTML on the legacy Desearch /web/crawl route. The SDK marks webCrawl deprecated in favor of extract; this tool stays for parity with that route. Prefer extract for new integrations. API docs: https://www.desearch.ai/docs/guide/apis/extract-api", pageContentFields(), async ({ url, format, js, wait, full_page }) => {
581
654
  try {
582
- return ok(await desearch.webCrawl({ url, format, js, wait }));
655
+ return ok(await desearch.webCrawl({ url, format, js, wait, full_page }));
583
656
  }
584
657
  catch (error) {
585
658
  return fail("Web Crawl error", error);
@@ -648,7 +721,10 @@ export function createDesearchMcpServer(apiKey, client, peopleClient) {
648
721
  url: z.string(),
649
722
  metadata: z.record(z.string(), z.string()).optional(),
650
723
  });
651
- registerTool(server, apiKey, "people-search", "People Search", "Start a paid job billed to the user's Desearch balance: find people on X, YouTube, LinkedIn, or TikTok who match a plain-language description. Each person comes back with a fit score, why they matched, their audience, and public contacts and links. This call reserves count times the platform's per-person price (reserved_cost_usd) and returns a task_id at once. When the search ends you pay only for the people it delivered (a per-search minimum applies when it finds anyone; a search that finds no one is free) and the rest of the reservation is returned. The search runs in the background, usually for 1 to 5 minutes: poll people-search-status with the task_id to read progress and the people found so far, and use people-search-control to pause, resume, or cancel it. Do not start the same search twice; send idempotency_key so a retry returns the first task instead of charging again. Filters depend on the platform. " +
724
+ registerTool(server, apiKey, "people-search", "People Search", "Start a paid job billed to the user's Desearch balance: find people on X, YouTube, LinkedIn, or TikTok who match a plain-language description. Returns a task_id at once, with the task's status and reserved_cost_usd. " +
725
+ "Cost: the call reserves count times the platform's per-person price at the time of the call (reserved_cost_usd; prices at https://desearch.ai/pricing). When the search ends you pay only for the people it delivered (final_cost_usd; a per-search minimum applies when it finds anyone; a search that finds no one is free) and the rest of the reservation is returned. " +
726
+ "Data: each person comes back with a fit score, why they matched, their audience, and only the contacts and links they list publicly. Desearch reads public data only. X: public posts and public profile fields (bio, followers, website, location). YouTube: public channel pages (About section, subscribers, country, links) and the creator's own website for publicly listed contact details. LinkedIn: public posts and public profiles (headline, company, location, followers, about). TikTok: public videos and public profiles (bio, followers, likes, latest videos, a public email listed in the bio). People found stay readable for 30 days after the search ends. " +
727
+ "The search runs in the background, usually for 1 to 5 minutes: poll people-search-status with the task_id to read progress and the people found so far, and use people-search-pause, people-search-resume, or people-search-cancel to pause, resume, or cancel it. Do not start the same search twice; send idempotency_key so a retry returns the first task instead of charging again. Filters depend on the platform. " +
652
728
  platformFilterList() +
653
729
  ".", strictArgs({
654
730
  platform: peoplePlatform.describe("Where to look: 'x' (X profiles), 'youtube' (YouTube creators), 'linkedin' (LinkedIn members), or 'tiktok' (TikTok creators)."),
@@ -734,7 +810,7 @@ export function createDesearchMcpServer(apiKey, client, peopleClient) {
734
810
  return fail("People Search error", error);
735
811
  }
736
812
  }, undefined, BILLED_TASK);
737
- registerTool(server, apiKey, "people-search-status", "Get People Search Status", "Status, progress, and cost of one People Search task, plus a page of the people found so far: name, handle, url, platform, audience, location, fit score, why they matched, contacts, and links. Free. People arrive while the search runs: pass the returned next_cursor as cursor on the next call to get only the people found since then. When done is true and has_more is false you have everyone the search found. An ended task has completion_reason (why it stopped), coverage_limited: true when a budget stopped it before count (more people may match), and warnings such as partial_enrichment (some profiles could not be read, so those people were scored on the search hit; they show enrichment: failed). Each person has fully_verified (every criterion confirmed by their own profile or posts) and unverified_criteria (criteria that are unknown or not met, or a disqualifier that applies). These are information only: the person still qualified.", strictArgs({
813
+ registerTool(server, apiKey, "people-search-status", "Get People Search Status", "Status, progress, and cost of one People Search task, plus a page of the people found so far: name, handle, url, platform, audience, location, fit score, why they matched, contacts, and links. Free: it reads a search you already started and runs no new search. Cost fields are reserved_cost_usd and, once the search ended, final_cost_usd. People come from public profiles and posts on the search's platform, with only the contacts they list publicly. People arrive while the search runs: pass the returned next_cursor as cursor on the next call to get only the people found since then. When done is true and has_more is false you have everyone the search found. An ended task has completion_reason (why it stopped), coverage_limited: true when a budget stopped it before count (more people may match), and warnings such as partial_enrichment (some profiles could not be read, so those people were scored on the search hit; they show enrichment: failed). Each person has fully_verified (every criterion confirmed by their own profile or posts) and unverified_criteria (criteria that are unknown or not met, or a disqualifier that applies). These are information only: the person still qualified.", strictArgs({
738
814
  task_id: peopleTaskId,
739
815
  cursor: z
740
816
  .string()
@@ -759,21 +835,38 @@ export function createDesearchMcpServer(apiKey, client, peopleClient) {
759
835
  catch (error) {
760
836
  return fail("People Search Status error", error);
761
837
  }
762
- });
763
- registerTool(server, apiKey, "people-search-control", "Control People Search", "Pause, resume, or cancel a People Search task. Free. pause: a queued search pauses at once; a running one finishes its current batch first (status pausing, then paused). A search paused for more than 7 days is cancelled. resume: continues a paused search where it stopped, with no new charge. cancel: stops the search for good; you pay only for the people it already delivered and the rest of the reservation is returned. People found so far stay readable for 30 days.", strictArgs({
838
+ }, undefined, READ_ONLY_OPEN_WORLD);
839
+ registerTool(server, apiKey, "people-search-pause", "Pause People Search", "Pause a People Search task and return its updated status. Free: it charges and refunds nothing. A queued search pauses at once; a running one finishes its current batch first (status pausing, then paused). Pausing loses no data: the people found so far stay readable with people-search-status, and the search keeps its progress. Billing does not change: the reservation made when the search started stays reserved while paused and is settled only when the search ends. Undo it with people-search-resume, which continues from where the search stopped with no new charge. Limit: a search paused for more than 7 days is cancelled by the API and can no longer be resumed; you then pay only for the people already delivered, the rest of the reservation is returned, and the people found stay readable for 30 days.", strictArgs({
764
840
  task_id: peopleTaskId,
765
- action: z
766
- .enum(PEOPLE_CONTROL_ACTIONS)
767
- .describe("'pause', 'resume', or 'cancel'. cancel cannot be undone."),
768
841
  }), async (args) => {
769
842
  try {
770
- return ok(await controlPeopleTask(people, args));
843
+ return ok(await controlPeopleTask(people, { task_id: args.task_id, action: "pause" }));
771
844
  }
772
845
  catch (error) {
773
- return fail("People Search Control error", error);
846
+ return fail("People Search Pause error", error);
774
847
  }
775
- }, undefined, TASK_CONTROL);
776
- registerTool(server, apiKey, "people-search-tasks", "List People Search Tasks", "Your People Search tasks, newest first, with status, counts, cost, why each ended search stopped (completion_reason, coverage_limited), and the metadata labels set on people-search. Free. Use it to find a task_id (filter by metadata to find the searches of one campaign), or to see which searches are still queued, running, or paused: a new search is refused while too many are active.", strictArgs({
848
+ }, undefined, TASK_STATE_CHANGE);
849
+ registerTool(server, apiKey, "people-search-resume", "Resume People Search", "Resume a paused People Search task and return its updated status. Free. The search continues from where it stopped, keeping the people already found, with no new charge: the cost already spent is carried forward and the original reservation still covers it. Works only on a paused search, within 7 days of pausing; a search in any other state, including one the API cancelled after 7 days paused, returns 409. Poll people-search-status for the new people.", strictArgs({
850
+ task_id: peopleTaskId,
851
+ }), async (args) => {
852
+ try {
853
+ return ok(await controlPeopleTask(people, { task_id: args.task_id, action: "resume" }));
854
+ }
855
+ catch (error) {
856
+ return fail("People Search Resume error", error);
857
+ }
858
+ }, undefined, TASK_STATE_CHANGE);
859
+ registerTool(server, apiKey, "people-search-cancel", "Cancel People Search", "Cancel a People Search task. Free. The search stops for good; you pay only for the people it already delivered and the rest of the reservation is returned. People found so far stay readable for 30 days. This cannot be undone.", strictArgs({
860
+ task_id: peopleTaskId,
861
+ }), async (args) => {
862
+ try {
863
+ return ok(await controlPeopleTask(people, { task_id: args.task_id, action: "cancel" }));
864
+ }
865
+ catch (error) {
866
+ return fail("People Search Cancel error", error);
867
+ }
868
+ }, undefined, TASK_CANCEL);
869
+ registerTool(server, apiKey, "people-search-tasks", "List People Search Tasks", "Your People Search tasks, newest first, with status, counts, cost, why each ended search stopped (completion_reason, coverage_limited), and the metadata labels set on people-search. Free; it lists your own tasks, not the people they found (read those with people-search-status or people-profiles). Use it to find a task_id (filter by metadata to find the searches of one campaign), or to see which searches are still queued, running, or paused: a new search is refused while too many are active.", strictArgs({
777
870
  platform: peoplePlatform.optional().describe("Only tasks on this platform: 'x', 'youtube', 'linkedin', or 'tiktok'."),
778
871
  status: z
779
872
  .array(z.enum(PEOPLE_TASK_STATUSES))
@@ -797,8 +890,8 @@ export function createDesearchMcpServer(apiKey, client, peopleClient) {
797
890
  catch (error) {
798
891
  return fail("People Search Tasks error", error);
799
892
  }
800
- });
801
- registerTool(server, apiKey, "people-profiles", "List People Found", "Everyone your People Searches found on one platform, one entry per person: their best-scoring result and the search that found them (found_by). Free; it does not run a new search. Search by name, handle, bio, or location with q, filter by contact channels (has), audience, fit score, location, or verification, and sort by score, recent, or audience. People from searches that ended more than 30 days ago are left out.", strictArgs({
893
+ }, undefined, READ_ONLY_OPEN_WORLD);
894
+ registerTool(server, apiKey, "people-profiles", "List People Found", "Everyone your own People Searches found on one platform, one entry per person: their best-scoring result (name, handle, url, audience, location, fit score, why they matched, public contacts, and links) and the search that found them (found_by). Free: it reads only people your earlier searches found, runs no new search, and queries no outside source. That data came from public profiles and posts, with only the contacts each person lists publicly. Search by name, handle, bio, or location with q, filter by contact channels (has), audience, fit score, location, or verification, and sort by score, recent, or audience. People from searches that ended more than 30 days ago are left out.", strictArgs({
802
895
  platform: peoplePlatform,
803
896
  q: z
804
897
  .string()
@@ -856,7 +949,7 @@ export function createDesearchMcpServer(apiKey, client, peopleClient) {
856
949
  catch (error) {
857
950
  return fail("People Profiles error", error);
858
951
  }
859
- });
952
+ }, undefined, READ_ONLY_OPEN_WORLD);
860
953
  // Scanners ask for these lists during discovery. There is nothing to return,
861
954
  // but an empty list is a successful response. Method-not-found looks like a
862
955
  // broken server to some directory crawlers.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "desearch-mcp-server",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "mcpName": "io.github.Desearch-ai/mcp-desearch",
5
5
  "description": "AI search (web, Reddit, Hacker News, arXiv, Wikipedia, and Twitter), X (Twitter) search, web search, page extraction, X data, and People Search (find people and creators on X, YouTube, LinkedIn, and TikTok) tools for AI agents.",
6
6
  "license": "MIT",