(
private readonly configService: MCPConfigService,
options?: MCPServerManagerOptions,
policyService?: PolicyService
)
| 609 | this.mcpOauthService = service; |
| 610 | } |
| 611 | constructor( |
| 612 | private readonly configService: MCPConfigService, |
| 613 | options?: MCPServerManagerOptions, |
| 614 | policyService?: PolicyService |
| 615 | ) { |
| 616 | this.policyService = policyService ?? null; |
| 617 | this.idleCheckInterval = setInterval(() => this.cleanupIdleServers(), IDLE_CHECK_INTERVAL_MS); |
| 618 | this.idleCheckInterval.unref?.(); |
| 619 | if (options?.inlineServers) { |
| 620 | this.inlineServers = options.inlineServers; |
| 621 | } |
| 622 | if (options?.ignoreConfigFile) { |
| 623 | this.ignoreConfigFile = options.ignoreConfigFile; |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | /** |
| 628 | * Stop the idle cleanup interval. Call when shutting down. |
nothing calls this directly
no test coverage detected