MCPcopy Create free account
hub / github.com/MicrosoftDocs/mcp / constructor

Method constructor

cli/src/mcp/client.ts:81–86  ·  view source on GitHub ↗
(private readonly options: LearnClientOptions)

Source from the content-addressed store, hash-verified

79 private hasLoadedPersistentCache = false;
80
81 constructor(private readonly options: LearnClientOptions) {
82 this.endpoint = new URL(options.endpoint);
83 this.cacheStore = options.cacheStore ?? createFileLearnSessionCacheStore();
84 this.fetchImpl = options.fetchImpl ?? globalThis.fetch.bind(globalThis);
85 this.client = options.createSdkClient?.() ?? this.createDefaultSdkClient();
86 }
87
88 async close(): Promise<void> {
89 if (!this.transport) {

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected