@apify/actors-mcp-server 0.9.21-beta.2 → 0.9.21-beta.3

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.
Files changed (31) hide show
  1. package/dist/const.d.ts +1 -0
  2. package/dist/const.d.ts.map +1 -1
  3. package/dist/const.js +1 -0
  4. package/dist/const.js.map +1 -1
  5. package/dist/tools/apps/call_actor.d.ts +2 -2
  6. package/dist/tools/apps/call_actor.d.ts.map +1 -1
  7. package/dist/tools/apps/call_actor.js +4 -10
  8. package/dist/tools/apps/call_actor.js.map +1 -1
  9. package/dist/tools/apps/call_actor_widget.d.ts +3 -0
  10. package/dist/tools/apps/call_actor_widget.d.ts.map +1 -0
  11. package/dist/tools/apps/call_actor_widget.js +142 -0
  12. package/dist/tools/apps/call_actor_widget.js.map +1 -0
  13. package/dist/tools/categories.d.ts.map +1 -1
  14. package/dist/tools/categories.js +2 -0
  15. package/dist/tools/categories.js.map +1 -1
  16. package/dist/tools/core/call_actor_common.d.ts +3 -1
  17. package/dist/tools/core/call_actor_common.d.ts.map +1 -1
  18. package/dist/tools/core/call_actor_common.js +5 -4
  19. package/dist/tools/core/call_actor_common.js.map +1 -1
  20. package/dist/tools/core/get_actor_run_common.d.ts.map +1 -1
  21. package/dist/tools/core/get_actor_run_common.js +3 -5
  22. package/dist/tools/core/get_actor_run_common.js.map +1 -1
  23. package/dist/tools/default/call_actor.d.ts.map +1 -1
  24. package/dist/tools/default/call_actor.js +1 -7
  25. package/dist/tools/default/call_actor.js.map +1 -1
  26. package/dist/tsconfig.tsbuildinfo +1 -1
  27. package/dist/utils/server-instructions/index.d.ts +3 -3
  28. package/dist/utils/server-instructions/index.d.ts.map +1 -1
  29. package/dist/utils/server-instructions/index.js +9 -8
  30. package/dist/utils/server-instructions/index.js.map +1 -1
  31. package/package.json +1 -1
@@ -6,9 +6,9 @@
6
6
  * see widget tool names like `search-actors-widget` or `fetch-actor-details-widget`,
7
7
  * avoiding hallucinated calls to tools absent from `tools/list`.
8
8
  *
9
- * Note: the `-widget` suffix split is rolling out per-tool.
10
- * `fetch-actor-details` and `search-actors` are already split; `call-actor` and
11
- * `get-actor-run` still render widgets on their base names until their own splits land.
9
+ * Note: the `-widget` suffix split is rolling out per-tool. `fetch-actor-details`,
10
+ * `search-actors`, and `call-actor` are already split; `get-actor-run` still renders
11
+ * a widget on its base name until its own split lands.
12
12
  */
13
13
  import { ServerMode } from '../../types.js';
14
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/server-instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,GAAE,UAA+B,GAAG,MAAM,CA6DnF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/server-instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,GAAE,UAA+B,GAAG,MAAM,CA8DnF"}
@@ -6,9 +6,9 @@
6
6
  * see widget tool names like `search-actors-widget` or `fetch-actor-details-widget`,
7
7
  * avoiding hallucinated calls to tools absent from `tools/list`.
8
8
  *
9
- * Note: the `-widget` suffix split is rolling out per-tool.
10
- * `fetch-actor-details` and `search-actors` are already split; `call-actor` and
11
- * `get-actor-run` still render widgets on their base names until their own splits land.
9
+ * Note: the `-widget` suffix split is rolling out per-tool. `fetch-actor-details`,
10
+ * `search-actors`, and `call-actor` are already split; `get-actor-run` still renders
11
+ * a widget on its base name until its own split lands.
12
12
  */
13
13
  import { HelperTools, RAG_WEB_BROWSER } from '../../const.js';
14
14
  import { ServerMode } from '../../types.js';
@@ -49,9 +49,8 @@ ${isApps ? `
49
49
  ## Widget workflow (applies when tool responses include widget metadata)
50
50
  Some clients render widget-backed Actor tools: the response includes a live UI that automatically polls run status. When a widget is rendered, follow-up status polling by the model is a forbidden duplicate.
51
51
 
52
- - **Never call \`${HelperTools.ACTOR_RUNS_GET}\` after a widget-backed \`${HelperTools.ACTOR_CALL}\` response.** The widget renders live progress and polls itself — stop after the widget response and defer to it for run status.
53
- - When \`${HelperTools.ACTOR_CALL}\` runs without a widget (the tool response is plain text / structured data only), polling \`${HelperTools.ACTOR_RUNS_GET}\` for status is expected.
54
- - The \`-widget\` suffix split is rolling out per-tool (\`${HelperTools.ACTOR_GET_DETAILS_WIDGET}\` and \`${HelperTools.STORE_SEARCH_WIDGET}\` already split); until the rest split, widget rendering happens on the base \`${HelperTools.ACTOR_CALL}\` and \`${HelperTools.ACTOR_RUNS_GET}\` tool names when the client supports it.
52
+ - **Never call \`${HelperTools.ACTOR_RUNS_GET}\` after \`${HelperTools.ACTOR_CALL_WIDGET}\`.** The widget renders live progress and polls itself — stop after the widget response and defer to it for run status.
53
+ - Polling \`${HelperTools.ACTOR_RUNS_GET}\` after \`${HelperTools.ACTOR_CALL}\` (the silent async variant, no widget) is fine that tool renders no UI, so polling is expected when you need the run status.
55
54
  ` : ''}
56
55
  ## Tool dependencies and disambiguation
57
56
 
@@ -59,10 +58,11 @@ Some clients render widget-backed Actor tools: the response includes a live UI t
59
58
  - \`${HelperTools.ACTOR_CALL}\`:
60
59
  - Use \`${HelperTools.ACTOR_GET_DETAILS}\` first to obtain the Actor's input schema.
61
60
  - Then call with proper input to execute the Actor.
62
- - For MCP server Actors, use format "actorName:toolName" to call specific tools.
61
+ - For MCP server Actors, use format "actorName:toolName" to call specific tools.${isApps ? `
62
+ - In this mode \`${HelperTools.ACTOR_CALL}\` always runs asynchronously — it starts the run and returns immediately with a runId. Use \`${HelperTools.ACTOR_RUNS_GET}\` to check status and \`${HelperTools.ACTOR_OUTPUT_GET}\` to fetch output once the run completes.` : `
63
63
  - Supports async execution via the \`async\` parameter:
64
64
  - \`async: false\` or unset: waits for completion and returns results immediately.
65
- - \`async: true\`: starts the run and returns immediately with a runId.
65
+ - \`async: true\`: starts the run and returns immediately with a runId.`}
66
66
 
67
67
  ### Tool disambiguation
68
68
  - **\`${HelperTools.ACTOR_OUTPUT_GET}\` vs \`${HelperTools.DATASET_GET_ITEMS}\`:**
@@ -72,6 +72,7 @@ Some clients render widget-backed Actor tools: the response includes a live UI t
72
72
  ${isApps ? `- **Data vs widget Actor tools (when the client supports widgets):**
73
73
  - \`${HelperTools.STORE_SEARCH}\` is a silent data lookup (Actor list for name resolution) with no UI; \`${HelperTools.STORE_SEARCH_WIDGET}\` renders an interactive UI element (widget) with Actor search results for the user to browse — use it only when the user explicitly asks to search or discover Actors.
74
74
  - \`${HelperTools.ACTOR_GET_DETAILS}\` is a silent data lookup (input schema, README, metadata) with no UI; \`${HelperTools.ACTOR_GET_DETAILS_WIDGET}\` renders an interactive UI element (widget) with Actor details — use it only when the user explicitly asks to see or browse the Actor.
75
+ - \`${HelperTools.ACTOR_CALL}\` is a silent async start (returns runId, no UI); \`${HelperTools.ACTOR_CALL_WIDGET}\` renders an interactive UI element (widget) that tracks live Actor run progress — use it only when the user explicitly asks to see progress.
75
76
  - When the next step is running an Actor, prefer silent lookups (\`${HelperTools.STORE_SEARCH}\`, \`${HelperTools.ACTOR_GET_DETAILS}\`) over widget-backed variants.
76
77
  ` : ''}- **\`${HelperTools.STORE_SEARCH}\` vs ${RAG_WEB_BROWSER}:**
77
78
  \`${HelperTools.STORE_SEARCH}\` finds robust and reliable Actors for specific websites; ${RAG_WEB_BROWSER} is a general and versatile web scraping tool.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/server-instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM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AAe,UAAU,WAAW,CAAC,UAAU;iDAChC,WAAW,CAAC,UAAU;CACtE,CAAC;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/actors-mcp-server",
3
- "version": "0.9.21-beta.2",
3
+ "version": "0.9.21-beta.3",
4
4
  "type": "module",
5
5
  "description": "Apify MCP Server",
6
6
  "mcpName": "com.apify/apify-mcp-server",