You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Export = camelCase tool name, no Tool suffix: getDatasetList, getKeyValueStoreList, getActorRunList, addActor, fetchApifyDocs, searchApifyDocs, searchActorsWidget, etc.
Keep HelperTools enum values untouched (wire contract). Enum key reorder to match (DATASET_LIST_GET → GET_DATASET_LIST) is optional and must be coordinated with apify-mcp-server-internal, which imports HelperTools — suggest leaving keys out of scope here.
index_internals.ts re-exports addTool — keep an alias or coordinate the rename with internal.
Renames only, no logic changes. Use git mv. Depends on #975, #978 (runs after the domain regroup so files move once). Optionally folds into the #978 PR if reviewers prefer one pass.
Plan
Rename *_collection.ts files to tool names
Normalize all ToolEntry export names
Check index_internals.ts surface; alias addTool if internal isn't updated in lockstep
Problem
Three vocabularies exist for the same tool. Examples:
dataset_collection.tsexportsgetUserDatasetsList, which is toolget-dataset-list(enum keyDATASET_LIST_GET).run_collection.ts→getUserRunsList→get-actor-run-list.addTool,getDataset,fetchApifyDocsTool,searchActorsWidgetTool— sometimes aToolsuffix, sometimes bare.Proposed solution
One rule, derived from the wire-level tool name (the only name users see):
get-dataset-list→get_dataset_list.ts. Renames:dataset_collection.ts,key_value_store_collection.ts,run_collection.ts(paths per the domain layout from refactor: Regroup src/tools by domain (actors/runs/storage/docs/widgets) #978, e.g.storage/get_dataset_list.ts).Toolsuffix:getDatasetList,getKeyValueStoreList,getActorRunList,addActor,fetchApifyDocs,searchApifyDocs,searchActorsWidget, etc.HelperToolsenum values untouched (wire contract). Enum key reorder to match (DATASET_LIST_GET→GET_DATASET_LIST) is optional and must be coordinated withapify-mcp-server-internal, which importsHelperTools— suggest leaving keys out of scope here.index_internals.tsre-exportsaddTool— keep an alias or coordinate the rename with internal.Renames only, no logic changes. Use
git mv. Depends on #975, #978 (runs after the domain regroup so files move once). Optionally folds into the #978 PR if reviewers prefer one pass.Plan
*_collection.tsfiles to tool namesToolEntryexport namesindex_internals.tssurface; aliasaddToolif internal isn't updated in lockstep