Skip to content

Commit 3947d1e

Browse files
committed
clean up imports and update comments for clarity, export functions for internal repo
1 parent 240793a commit 3947d1e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/index-internals.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
*/
44

55
import { defaults, HelperTools } from './const.js';
6-
import { parseInputParamsFromUrl, processParamsGetTools } from './mcp/utils.js';
6+
import { processParamsGetTools } from './mcp/utils.js';
77
import { addTool } from './tools/helpers.js';
88
import { defaultTools, getActorsAsTools, toolCategories, toolCategoriesEnabledByDefault } from './tools/index.js';
99
import { actorNameToToolName } from './tools/utils.js';
1010
import type { ToolCategory } from './types.js';
11-
import { getToolPublicFieldOnly } from './utils/tools.js';
11+
import { getExpectedToolNamesByCategories, getToolPublicFieldOnly } from './utils/tools.js';
12+
import { TTLLRUCache } from './utils/ttl-lru.js';
1213

1314
export {
14-
parseInputParamsFromUrl,
15+
getExpectedToolNamesByCategories,
16+
TTLLRUCache,
1517
actorNameToToolName,
1618
HelperTools,
1719
defaults,

tests/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { ToolCategory } from '../src/types.js';
1010
export interface McpClientOptions {
1111
actors?: string[];
1212
enableAddingActors?: boolean;
13-
tools?: (ToolCategory | string)[]; // Tool categories or specific tool names to include
13+
tools?: (ToolCategory | string)[]; // Tool categories, specific tool or Actor names to include
1414
}
1515

1616
export async function createMcpSseClient(

tests/integration/suite.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { ToolListChangedNotificationSchema } from '@modelcontextprotocol/sdk/typ
44
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it } from 'vitest';
55

66
import { defaults, HelperTools } from '../../src/const.js';
7-
import { latestNewsOnTopicPrompt } from '../../src/prompts/latest-news-on-topic.js';
87
import { addTool } from '../../src/tools/helpers.js';
98
import { defaultTools, toolCategories } from '../../src/tools/index.js';
109
import { actorNameToToolName } from '../../src/tools/utils.js';
@@ -609,7 +608,7 @@ export function createIntegrationTestsSuite(
609608

610609
const topic = 'apify';
611610
const prompt = await client.getPrompt({
612-
name: latestNewsOnTopicPrompt.name,
611+
name: 'GetLatestNewsOnTopic',
613612
arguments: {
614613
topic,
615614
},

0 commit comments

Comments
 (0)