@apify/actors-mcp-server 0.9.17-beta.0 → 0.9.17-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -390,7 +390,7 @@ For detailed development setup, project structure, and local testing instruction
390
390
 
391
391
  ## Prerequisites
392
392
 
393
- - [Node.js](https://nodejs.org/en) (v18 or higher)
393
+ - [Node.js](https://nodejs.org/en) (v20 or higher)
394
394
 
395
395
  Create an environment file, `.env`, with the following content:
396
396
  ```text
@@ -446,37 +446,37 @@ The Apify MCP Server is also available on [Docker Hub](https://hub.docker.com/mc
446
446
 
447
447
  # 🐛 Troubleshooting (local MCP server)
448
448
 
449
- - Make sure you have `node` (v18 or higher) installed by running `node -v`.
449
+ - Make sure you have `node` (v20 or higher) installed by running `node -v`.
450
450
  - Make sure the `APIFY_TOKEN` environment variable is set.
451
451
  - Always use the latest version of the MCP server by using `@apify/actors-mcp-server@latest`.
452
452
 
453
453
  ### Common issues
454
454
 
455
- #### "Unable to connect to extension server" or tools not loading
455
+ #### "Unable to connect to extension server", "Cannot find module", or tools not loading
456
456
 
457
- This is most commonly caused by a **corrupted npx cache**. Fix it by clearing the cache and retrying:
457
+ This is most commonly caused by a **corrupted npx cache** — often left behind when Claude Desktop restarts the MCP server process mid-download. Fix it by clearing the cache:
458
458
 
459
459
  ```bash
460
- # Clear the npx cache
460
+ # macOS / Linux
461
461
  rm -rf ~/.npm/_npx
462
+ npx -y @apify/actors-mcp-server@latest
462
463
 
463
- # Retry
464
+ # Windows (PowerShell)
465
+ Remove-Item -Recurse -Force "$env:LOCALAPPDATA\npm-cache\_npx"
464
466
  npx -y @apify/actors-mcp-server@latest
465
467
  ```
466
468
 
469
+ After clearing the cache, restart Claude Desktop.
470
+
467
471
  #### Errors like "File is not defined" or "ReadableStream is not defined"
468
472
 
469
- You are running an **outdated version of Node.js**. The Apify MCP server requires Node.js 18 or higher:
473
+ You are running an **outdated version of Node.js**. The Apify MCP server requires Node.js **v20 or higher**:
470
474
 
471
475
  ```bash
472
476
  node -v # Check your version
473
477
  ```
474
478
 
475
- If your version is below 18, update Node.js from [nodejs.org](https://nodejs.org).
476
-
477
- #### "Cannot find module" errors
478
-
479
- This usually indicates a corrupted `npx` cache (see above). Clear it with `rm -rf ~/.npm/_npx` and retry.
479
+ If your version is below 20, update Node.js from [nodejs.org](https://nodejs.org).
480
480
 
481
481
  #### Server works in Claude Desktop chat but not in cowork mode
482
482
 
package/dist/stdio.js CHANGED
@@ -146,9 +146,9 @@ async function main() {
146
146
  var _a;
147
147
  // Node.js version guard — surface a clear error instead of cryptic failures
148
148
  const [major] = process.versions.node.split('.').map(Number);
149
- if (major < 18) {
149
+ if (major < 20) {
150
150
  // eslint-disable-next-line no-console
151
- console.error(`Error: Apify MCP server requires Node.js 18 or later (you have ${process.version}).\n`
151
+ console.error(`Error: Apify MCP server requires Node.js 20 or later (you have ${process.version}).\n`
152
152
  + 'Please update Node.js: https://nodejs.org');
153
153
  process.exit(1);
154
154
  }