summaryrefslogtreecommitdiff
path: root/packages/server/src/config/config.ts
diff options
context:
space:
mode:
authorAllen Hutchison <[email protected]>2025-05-20 11:36:21 -0700
committerGitHub <[email protected]>2025-05-20 11:36:21 -0700
commit93e89215e3fe8e3fc9cd1a0ced4cc0e44ccecc4e (patch)
treeed5d3893a90efe045506c9678395fcca831c57b4 /packages/server/src/config/config.ts
parentd1210f2e0aca59083de2be8ee4ec6229622d3a1e (diff)
Implementation of web search as a tool (#307)
Diffstat (limited to 'packages/server/src/config/config.ts')
-rw-r--r--packages/server/src/config/config.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/server/src/config/config.ts b/packages/server/src/config/config.ts
index 6ed270cc..0a9bc2bf 100644
--- a/packages/server/src/config/config.ts
+++ b/packages/server/src/config/config.ts
@@ -20,6 +20,7 @@ import { WriteFileTool } from '../tools/write-file.js';
import { WebFetchTool } from '../tools/web-fetch.js';
import { ReadManyFilesTool } from '../tools/read-many-files.js';
import { MemoryTool } from '../tools/memoryTool.js';
+import { WebSearchTool } from '../tools/web-search.js';
export class MCPServerConfig {
constructor(
@@ -202,7 +203,7 @@ export function createServerConfig(
);
}
-function createToolRegistry(config: Config): ToolRegistry {
+export function createToolRegistry(config: Config): ToolRegistry {
const registry = new ToolRegistry(config);
const targetDir = config.getTargetDir();
const tools = config.getCoreTools()
@@ -228,7 +229,7 @@ function createToolRegistry(config: Config): ToolRegistry {
registerCoreTool(ReadManyFilesTool, targetDir);
registerCoreTool(ShellTool, config);
registerCoreTool(MemoryTool);
-
+ registerCoreTool(WebSearchTool, config);
registry.discoverTools();
return registry;
}