MCPcopy Index your code
hub / github.com/docsagent/docsagent / constructor

Method constructor

src/index.ts:34–40  ·  view source on GitHub ↗

* Initialize DocsAgent and start the C++ engine immediately. * @param path Local folder directory or an array of file paths. Optional.

(path?: string | string[])

Source from the content-addressed store, hash-verified

32 * @param path Local folder directory or an array of file paths. Optional.
33 */
34 constructor(path?: string | string[]) {
35 this.binaryPath = getBinaryPath();
36 this.initialPath = path;
37
38 // Start the C++ engine immediately upon construction
39 this.readyPromise = this.startEngine();
40 }
41
42 /**
43 * Checks if a port is available to listen on.

Callers

nothing calls this directly

Calls 2

startEngineMethod · 0.95
getBinaryPathFunction · 0.85

Tested by

no test coverage detected