MCPcopy Index your code
hub / github.com/ReAPI-com/mcp-openapi / constructor

Method constructor

src/McpService.ts:12–21  ·  view source on GitHub ↗
(
    private readonly specExplorer: ISpecExplorer,
    logger?: Logger
  )

Source from the content-addressed store, hash-verified

10 private readonly logger: Logger;
11
12 constructor(
13 private readonly specExplorer: ISpecExplorer,
14 logger?: Logger
15 ) {
16 this.logger = logger || new ConsoleLogger();
17 this.initializeExplorer().catch(error => {
18 this.logger.error('Failed to initialize spec explorer', { error });
19 throw error;
20 });
21 }
22
23 private async initializeExplorer() {
24 try {

Callers

nothing calls this directly

Calls 2

initializeExplorerMethod · 0.95
errorMethod · 0.65

Tested by

no test coverage detected