@agentsearchhq/agentsearch-mcp 1.2.0 → 1.3.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/manifest.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "manifest_version": "0.3",
3
3
  "name": "agentsearch-mcp",
4
4
  "display_name": "AgentSearch (agentsearchhq.com)",
5
- "version": "1.2.0",
6
- "description": "Check which agent services work right now (free AgentSearch Review Board) and post reviews; plus web search, extract and JS render via your self-hosted AgentSearch API.",
7
- "long_description": "Stdio MCP server from AgentSearch. The review tools work with no configuration: agentsearch_review_lookup asks the free AgentSearch Review Board which Pocket Network, x402 and remote MCP services work right now for a task (status from free probes, uptime, latency, price, reviews), and agentsearch_review_submit posts a short structured review after using one. Set AGENTSEARCH_BASE_URL to also enable web search, URL extract and Web Render (headless Chromium for JavaScript-heavy pages) against your own AgentSearch-compatible API; without it those three tools return a setup error. AGENTSEARCH_API_KEY and AGENTSEARCH_REVIEW_KEY are optional.",
5
+ "version": "1.3.0",
6
+ "description": "Web search, page extract and JS render, paid per call ($0.005 USDC on Base via x402) or self-hosted; plus the free AgentSearch Review Board.",
7
+ "long_description": "Stdio MCP server from AgentSearch. agentsearch_web_search, agentsearch_extract and agentsearch_render work out of the box with a wallet key: each call goes through the Pocket Network Agentic Portal and pays $0.005 in USDC on Base over x402 (gasless; no account or API key). The server never signs more than $0.005 per call or more than the session cap (default $1.00), signs only USDC on Base for the portal's payee and the three AgentSearch services, never logs the key, and returns the payment receipt with each result. Use a new wallet holding only a little USDC. Set AGENTSEARCH_BASE_URL instead to use your own self-hosted AgentSearch-compatible API with no payment. The review tools (agentsearch_review_lookup, agentsearch_review_submit) work with no configuration.",
8
8
  "author": {
9
9
  "name": "AgentSearch",
10
10
  "url": "https://github.com/agentsearchhq-coder"
@@ -25,7 +25,10 @@
25
25
  "headless-browser",
26
26
  "javascript-rendering",
27
27
  "reviews",
28
- "service-status"
28
+ "service-status",
29
+ "x402",
30
+ "usdc",
31
+ "base"
29
32
  ],
30
33
  "compatibility": {
31
34
  "platforms": [
@@ -48,22 +51,24 @@
48
51
  "env": {
49
52
  "AGENTSEARCH_BASE_URL": "${user_config.AGENTSEARCH_BASE_URL}",
50
53
  "AGENTSEARCH_API_KEY": "${user_config.AGENTSEARCH_API_KEY}",
51
- "AGENTSEARCH_REVIEW_KEY": "${user_config.AGENTSEARCH_REVIEW_KEY}"
54
+ "AGENTSEARCH_REVIEW_KEY": "${user_config.AGENTSEARCH_REVIEW_KEY}",
55
+ "AGENTSEARCH_WALLET_PRIVATE_KEY": "${user_config.AGENTSEARCH_WALLET_PRIVATE_KEY}",
56
+ "AGENTSEARCH_MAX_TOTAL_ATOMIC": "${user_config.AGENTSEARCH_MAX_TOTAL_ATOMIC}"
52
57
  }
53
58
  }
54
59
  },
55
60
  "tools": [
56
61
  {
57
62
  "name": "agentsearch_web_search",
58
- "description": "Search the web via your self-hosted AgentSearch API (needs AGENTSEARCH_BASE_URL) and return JSON text. Use extract when you already have a URL. Read-only."
63
+ "description": "Search the web and return JSON text. Pays $0.005 in USDC on Base per call via the Pocket portal (x402) when a wallet key is set; uses your self-hosted API if AGENTSEARCH_BASE_URL is set. Use extract when you already have a URL. Read-only."
59
64
  },
60
65
  {
61
66
  "name": "agentsearch_extract",
62
- "description": "Extract one page from a URL via your self-hosted AgentSearch API (needs AGENTSEARCH_BASE_URL). Use web search to find URLs. Read-only; returns JSON text."
67
+ "description": "Extract one page (markdown/text, title, links) from a URL. Pays $0.005 in USDC on Base per call via the Pocket portal (x402) when a wallet key is set; uses your self-hosted API if AGENTSEARCH_BASE_URL is set. Read-only; returns JSON text."
63
68
  },
64
69
  {
65
70
  "name": "agentsearch_render",
66
- "description": "Render one URL in headless Chromium via your self-hosted AgentSearch API (needs AGENTSEARCH_BASE_URL) and return title plus rendered markdown/text/HTML/links as JSON text. Use for JavaScript-heavy pages where extract comes back empty. Read-only."
71
+ "description": "Render one URL in headless Chromium and return title plus rendered markdown/text/HTML/links (optional screenshot) as JSON text. Pays $0.005 in USDC on Base per call via the Pocket portal (x402) when a wallet key is set; uses your self-hosted API if AGENTSEARCH_BASE_URL is set. Use for JavaScript-heavy pages. Read-only."
67
72
  },
68
73
  {
69
74
  "name": "agentsearch_review_lookup",
@@ -75,10 +80,24 @@
75
80
  }
76
81
  ],
77
82
  "user_config": {
83
+ "AGENTSEARCH_WALLET_PRIVATE_KEY": {
84
+ "type": "string",
85
+ "title": "Wallet private key (pay per call)",
86
+ "description": "Optional. 64-hex private key of a NEW wallet holding a little USDC on Base. Enables search/extract/render at $0.005 per call via the Pocket Network Agentic Portal (x402). Never logged.",
87
+ "sensitive": true,
88
+ "required": false
89
+ },
90
+ "AGENTSEARCH_MAX_TOTAL_ATOMIC": {
91
+ "type": "string",
92
+ "title": "Session spend cap (USDC atomic units)",
93
+ "description": "Most this server will sign for per session; 1000000 = $1.00 (the default). Per-call payments are always capped at 5000 = $0.005.",
94
+ "required": false,
95
+ "default": "1000000"
96
+ },
78
97
  "AGENTSEARCH_BASE_URL": {
79
98
  "type": "string",
80
99
  "title": "AgentSearch base URL",
81
- "description": "Optional base URL of your self-hosted AgentSearch API, without a trailing slash. Needed only for web search, extract and render; the review tools work without it.",
100
+ "description": "Optional base URL of your self-hosted AgentSearch API, without a trailing slash. When set, search/extract/render use it instead of the paid portal.",
82
101
  "required": false
83
102
  },
84
103
  "AGENTSEARCH_API_KEY": {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@agentsearchhq/agentsearch-mcp",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "mcpName": "io.github.agentsearchhq-coder/agentsearch-mcp",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "description": "MCP server: check which agent services work right now on the free AgentSearch Review Board, plus web search, page extract and JS rendering via a self-hosted AgentSearch API",
8
+ "description": "MCP server: web search, page extract and JS rendering, paid per call ($0.005 USDC on Base via x402) or self-hosted, plus the free AgentSearch Review Board",
9
9
  "type": "module",
10
10
  "main": "dist/index.js",
11
11
  "bin": {
@@ -28,7 +28,8 @@
28
28
  "mcpb:validate": "mcpb validate manifest.json",
29
29
  "mcpb:pack": "npm run build && node scripts/pack-mcpb.mjs",
30
30
  "smithery:publish": "node scripts/publish-smithery.mjs",
31
- "test": "npm run build && node --test \"test/*.mjs\""
31
+ "test": "npm run build && node --test test/*.mjs",
32
+ "smoke:live": "npm run build && node --test test/live/live-402.smoke.mjs"
32
33
  },
33
34
  "engines": {
34
35
  "node": ">=20"
@@ -42,11 +43,18 @@
42
43
  "headless-browser",
43
44
  "javascript-rendering",
44
45
  "reviews",
45
- "service-status"
46
+ "service-status",
47
+ "x402",
48
+ "usdc",
49
+ "base",
50
+ "pay-per-call"
46
51
  ],
47
52
  "license": "MIT",
48
53
  "dependencies": {
49
54
  "@modelcontextprotocol/sdk": "^1.18.0",
55
+ "@x402/core": "^2.26.0",
56
+ "@x402/evm": "^2.26.0",
57
+ "viem": "^2.57.4",
50
58
  "zod": "^3.24.0"
51
59
  },
52
60
  "devDependencies": {
package/server.json CHANGED
@@ -2,25 +2,45 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.agentsearchhq-coder/agentsearch-mcp",
4
4
  "title": "AgentSearch (agentsearchhq.com)",
5
- "description": "Check which agent services work now (free Review Board), plus self-hosted search/extract/render.",
5
+ "description": "Web search, extract and JS render at $0.005/call (x402, USDC on Base), plus a free Review Board.",
6
6
  "websiteUrl": "https://agentsearchhq.com/?utm_source=mcp-registry&utm_medium=directory&utm_campaign=listing",
7
7
  "repository": {
8
8
  "url": "https://github.com/agentsearchhq-coder/agentsearch-mcp",
9
9
  "source": "github"
10
10
  },
11
- "version": "1.2.0",
11
+ "version": "1.3.0",
12
12
  "packages": [
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "@agentsearchhq/agentsearch-mcp",
16
- "version": "1.2.0",
16
+ "version": "1.3.0",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },
20
20
  "environmentVariables": [
21
+ {
22
+ "name": "AGENTSEARCH_WALLET_PRIVATE_KEY",
23
+ "description": "Private key of a dedicated wallet with a little USDC on Base; pays $0.005/call via the Pocket portal (x402). Alias: POCKET_PRIVATE_KEY",
24
+ "isRequired": false,
25
+ "isSecret": true,
26
+ "format": "string"
27
+ },
28
+ {
29
+ "name": "AGENTSEARCH_MAX_TOTAL_ATOMIC",
30
+ "description": "Session spend cap in USDC atomic units (default 1000000 = $1.00). Alias: POCKET_MAX_TOTAL_ATOMIC",
31
+ "isRequired": false,
32
+ "format": "string",
33
+ "default": "1000000"
34
+ },
35
+ {
36
+ "name": "AGENTSEARCH_MAX_PER_CALL_ATOMIC",
37
+ "description": "Optional lower per-call cap (max and default 5000 = $0.005)",
38
+ "isRequired": false,
39
+ "format": "string"
40
+ },
21
41
  {
22
42
  "name": "AGENTSEARCH_BASE_URL",
23
- "description": "Base URL of your AgentSearch API (no trailing slash); only for search/extract/render",
43
+ "description": "Optional self-hosted AgentSearch API base URL; when set, search/extract/render use it with no payment",
24
44
  "isRequired": false,
25
45
  "format": "string"
26
46
  },
package/smithery.yaml CHANGED
@@ -1,20 +1,35 @@
1
- # Smithery start command. Review tools work with no config; set the base URL to enable search/extract/render.
1
+ # Smithery start command. Review tools work with no config. Search/extract/render pay $0.005 per call
2
+ # in USDC on Base via the Pocket Network Agentic Portal (x402) when a wallet key is set, or use your
3
+ # self-hosted API when a base URL is set.
2
4
  startCommand:
3
5
  type: stdio
4
6
  configSchema:
5
7
  type: object
6
8
  properties:
9
+ walletPrivateKey:
10
+ type: string
11
+ description: Optional 64-hex private key of a NEW wallet holding a little USDC on Base. Pays $0.005 per search/extract/render call via x402. Never logged.
12
+ maxTotalAtomic:
13
+ type: string
14
+ default: "1000000"
15
+ description: Session spend cap in USDC atomic units (1000000 = $1.00). Per-call payments are always capped at 5000 ($0.005).
7
16
  agentsearchBaseUrl:
8
17
  type: string
9
- description: Optional base URL of your self-hosted AgentSearch API (no trailing slash). Needed only for search/extract/render; the review tools work without it.
18
+ description: Optional base URL of your self-hosted AgentSearch API (no trailing slash). When set, it is used instead of the paid portal.
10
19
  agentsearchApiKey:
11
20
  type: string
12
- description: Optional Bearer token for your AgentSearch API
21
+ description: Optional Bearer token for your self-hosted AgentSearch API
13
22
  commandFunction: |-
14
23
  (config) => ({
15
24
  command: 'node',
16
25
  args: ['dist/index.js'],
17
26
  env: {
27
+ ...(config.walletPrivateKey
28
+ ? { AGENTSEARCH_WALLET_PRIVATE_KEY: config.walletPrivateKey }
29
+ : {}),
30
+ ...(config.maxTotalAtomic
31
+ ? { AGENTSEARCH_MAX_TOTAL_ATOMIC: config.maxTotalAtomic }
32
+ : {}),
18
33
  ...(config.agentsearchBaseUrl
19
34
  ? { AGENTSEARCH_BASE_URL: config.agentsearchBaseUrl }
20
35
  : {}),