@apify/actors-mcp-server 0.9.21-beta.4 → 0.9.21-beta.5
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/dist/tools/categories.d.ts +11 -3
- package/dist/tools/categories.d.ts.map +1 -1
- package/dist/tools/categories.js +32 -6
- package/dist/tools/categories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/server-instructions/index.js +1 -1
- package/dist/utils/server-instructions/index.js.map +1 -1
- package/dist/utils/tools_loader.d.ts.map +1 -1
- package/dist/utils/tools_loader.js +33 -20
- package/dist/utils/tools_loader.js.map +1 -1
- package/package.json +4 -1
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* - A mode map (e.g. { default: ToolEntry, apps: ToolEntry }) — resolver picks entry[mode]
|
|
14
14
|
* - A partial mode map (e.g. { apps: ToolEntry }) — included only for listed modes
|
|
15
15
|
*/
|
|
16
|
+
import { HelperTools } from '../const.js';
|
|
16
17
|
import type { ToolEntry } from '../types.js';
|
|
17
18
|
import { ServerMode } from '../types.js';
|
|
18
19
|
/**
|
|
@@ -29,9 +30,6 @@ export declare const toolCategories: {
|
|
|
29
30
|
default: ToolEntry;
|
|
30
31
|
apps: ToolEntry;
|
|
31
32
|
})[];
|
|
32
|
-
ui: {
|
|
33
|
-
apps: ToolEntry;
|
|
34
|
-
}[];
|
|
35
33
|
docs: ToolEntry[];
|
|
36
34
|
runs: ToolEntry[];
|
|
37
35
|
storage: ToolEntry[];
|
|
@@ -56,4 +54,14 @@ export type ToolCategoryMap = Record<(typeof CATEGORY_NAMES)[number], ToolEntry[
|
|
|
56
54
|
*/
|
|
57
55
|
export declare function getCategoryTools(mode?: ServerMode): ToolCategoryMap;
|
|
58
56
|
export declare const toolCategoriesEnabledByDefault: (typeof CATEGORY_NAMES)[number][];
|
|
57
|
+
/**
|
|
58
|
+
* Apps-mode pairing: each base tool name maps to its widget sibling.
|
|
59
|
+
* In apps mode, a widget is added to the resolved tool list iff its base
|
|
60
|
+
* tool is already present — see `getToolsForServerMode` in tools_loader.ts.
|
|
61
|
+
*
|
|
62
|
+
* Pairing is intentionally one-way (base → widget). Selecting a widget alone
|
|
63
|
+
* does NOT auto-bring its base; callers asking for widget-only get a UI without
|
|
64
|
+
* the programmatic data tool. To get both, select the base (or both explicitly).
|
|
65
|
+
*/
|
|
66
|
+
export declare const WIDGET_BY_BASE_TOOL: ReadonlyMap<HelperTools, ToolEntry>;
|
|
59
67
|
//# sourceMappingURL=categories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categories.d.ts","sourceRoot":"","sources":["../../src/tools/categories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAyCzC;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"categories.d.ts","sourceRoot":"","sources":["../../src/tools/categories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAyCzC;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;CAiCoB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,cAAc,EAAkC,CAAC,MAAM,OAAO,cAAc,CAAC,EAAE,CAAC;AAE7F,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAAmC,CAAC;AAEtF,mEAAmE;AACnE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;AAwBnF;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,UAA+B,GAAG,eAAe,CAIvF;AAED,eAAO,MAAM,8BAA8B,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,EAG3E,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,WAAW,EAAE,SAAS,CAKlE,CAAC"}
|
package/dist/tools/categories.js
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool categories and their associated tools.
|
|
3
|
+
* This file is separate from index.ts to avoid circular dependencies.
|
|
4
|
+
*
|
|
5
|
+
* Tools within each category are ordered by the typical workflow:
|
|
6
|
+
* search/discover → get details → execute → check status → get results
|
|
7
|
+
*
|
|
8
|
+
* The final tool ordering presented to MCP clients is determined by tools-loader.ts,
|
|
9
|
+
* which also auto-injects get-actor-run and get-actor-output right after call-actor.
|
|
10
|
+
*
|
|
11
|
+
* Each tool entry can be:
|
|
12
|
+
* - A plain ToolEntry — mode-independent, always included
|
|
13
|
+
* - A mode map (e.g. { default: ToolEntry, apps: ToolEntry }) — resolver picks entry[mode]
|
|
14
|
+
* - A partial mode map (e.g. { apps: ToolEntry }) — included only for listed modes
|
|
15
|
+
*/
|
|
16
|
+
import { HelperTools } from '../const.js';
|
|
1
17
|
import { ServerMode } from '../types.js';
|
|
2
18
|
import { appsCallActor } from './apps/call_actor.js';
|
|
3
19
|
import { appsCallActorWidget } from './apps/call_actor_widget.js';
|
|
@@ -42,14 +58,9 @@ export const toolCategories = {
|
|
|
42
58
|
actors: [
|
|
43
59
|
defaultSearchActors,
|
|
44
60
|
defaultFetchActorDetails,
|
|
61
|
+
// call-actor is different for default and apps mode (sync vs async call)
|
|
45
62
|
{ default: defaultCallActor, apps: appsCallActor },
|
|
46
63
|
],
|
|
47
|
-
ui: [
|
|
48
|
-
{ apps: searchActorsWidgetTool },
|
|
49
|
-
{ apps: fetchActorDetailsWidgetTool },
|
|
50
|
-
{ apps: appsCallActorWidget },
|
|
51
|
-
{ apps: getActorRunWidgetTool },
|
|
52
|
-
],
|
|
53
64
|
docs: [
|
|
54
65
|
searchApifyDocsTool,
|
|
55
66
|
fetchApifyDocsTool,
|
|
@@ -117,4 +128,19 @@ export const toolCategoriesEnabledByDefault = [
|
|
|
117
128
|
'actors',
|
|
118
129
|
'docs',
|
|
119
130
|
];
|
|
131
|
+
/**
|
|
132
|
+
* Apps-mode pairing: each base tool name maps to its widget sibling.
|
|
133
|
+
* In apps mode, a widget is added to the resolved tool list iff its base
|
|
134
|
+
* tool is already present — see `getToolsForServerMode` in tools_loader.ts.
|
|
135
|
+
*
|
|
136
|
+
* Pairing is intentionally one-way (base → widget). Selecting a widget alone
|
|
137
|
+
* does NOT auto-bring its base; callers asking for widget-only get a UI without
|
|
138
|
+
* the programmatic data tool. To get both, select the base (or both explicitly).
|
|
139
|
+
*/
|
|
140
|
+
export const WIDGET_BY_BASE_TOOL = new Map([
|
|
141
|
+
[HelperTools.STORE_SEARCH, searchActorsWidgetTool],
|
|
142
|
+
[HelperTools.ACTOR_GET_DETAILS, fetchActorDetailsWidgetTool],
|
|
143
|
+
[HelperTools.ACTOR_CALL, appsCallActorWidget],
|
|
144
|
+
[HelperTools.ACTOR_RUNS_GET, getActorRunWidgetTool],
|
|
145
|
+
]);
|
|
120
146
|
//# sourceMappingURL=categories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categories.js","sourceRoot":"","sources":["../../src/tools/categories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"categories.js","sourceRoot":"","sources":["../../src/tools/categories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAs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