MCPcopy Index your code
hub / github.com/coder/mux / constructor

Method constructor

src/node/services/mcpServerManager.ts:611–625  ·  view source on GitHub ↗
(
    private readonly configService: MCPConfigService,
    options?: MCPServerManagerOptions,
    policyService?: PolicyService
  )

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

cleanupIdleServersMethod · 0.95

Tested by

no test coverage detected