diff options
| author | olcan <[email protected]> | 2025-05-04 12:11:19 -0700 |
|---|---|---|
| committer | Olcan <[email protected]> | 2025-05-05 17:10:45 -0700 |
| commit | 9742f6e4a2fd6b3373ceaeeae0934184e983a938 (patch) | |
| tree | 793c53fbcec90cd530897bbd5c3a55c59335c5df /packages/server/src/config/config.ts | |
| parent | 6b6eef5b80f2cb01ba7b5b94074f8f56937ad04d (diff) | |
support for mcp tools
Diffstat (limited to 'packages/server/src/config/config.ts')
| -rw-r--r-- | packages/server/src/config/config.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/server/src/config/config.ts b/packages/server/src/config/config.ts index de70144d..0a2761c2 100644 --- a/packages/server/src/config/config.ts +++ b/packages/server/src/config/config.ts @@ -34,6 +34,7 @@ export class Config { private readonly fullContext: boolean = false, // Default value here private readonly toolDiscoveryCommand: string | undefined, private readonly toolCallCommand: string | undefined, + private readonly mcpServerCommand: string | undefined, ) { // toolRegistry still needs initialization based on the instance this.toolRegistry = createToolRegistry(this); @@ -77,6 +78,10 @@ export class Config { getToolCallCommand(): string | undefined { return this.toolCallCommand; } + + getMcpServerCommand(): string | undefined { + return this.mcpServerCommand; + } } function findEnvFile(startDir: string): string | null { @@ -112,6 +117,7 @@ export function createServerConfig( fullContext?: boolean, toolDiscoveryCommand?: string, toolCallCommand?: string, + mcpServerCommand?: string, ): Config { return new Config( apiKey, @@ -123,6 +129,7 @@ export function createServerConfig( fullContext, toolDiscoveryCommand, toolCallCommand, + mcpServerCommand, ); } |
