Skip to content

Commit e1f529d

Browse files
authored
fix: export internals for apify-mcp-server (#179)
export internals used in apify-mcp-server repo
1 parent 90113f1 commit e1f529d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
"node": ">=18.0.0"
88
},
99
"main": "dist/index.js",
10+
"exports": {
11+
".": "./dist/index.js",
12+
"./internals": "./dist/index-internals.js",
13+
"./internals.js": "./dist/index-internals.js"
14+
},
1015
"bin": {
1116
"actors-mcp-server": "./dist/stdio.js"
1217
},

src/index-internals.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
This file provides essential internal functions for Apify MCP servers, serving as an internal library.
3+
*/
4+
5+
import { defaults, HelperTools } from './const.js';
6+
import { parseInputParamsFromUrl } from './mcp/utils.js';
7+
import { addRemoveTools, defaultTools, toolCategories, toolCategoriesEnabledByDefault } from './tools/index.js';
8+
import { actorNameToToolName } from './tools/utils.js';
9+
import type { ToolCategory } from './types.js';
10+
11+
export {
12+
parseInputParamsFromUrl,
13+
actorNameToToolName,
14+
HelperTools,
15+
defaults,
16+
defaultTools,
17+
addRemoveTools,
18+
toolCategories,
19+
toolCategoriesEnabledByDefault,
20+
type ToolCategory,
21+
};

0 commit comments

Comments
 (0)