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

Method write

cli/src/mcp/cache.ts:21–21  ·  view source on GitHub ↗
(value: { endpoint: string; sessionId?: string; tools?: ListedTool[] })

Source from the content-addressed store, hash-verified

19export interface LearnSessionCacheStore {
20 read(endpoint: string): Promise<LearnSessionCacheValue | undefined>;
21 write(value: { endpoint: string; sessionId?: string; tools?: ListedTool[] }): Promise<LearnSessionCacheValue>;
22 clear(endpoint: string): Promise<void>;
23}
24

Callers 3

cache.test.tsFile · 0.65
createDefaultContextFunction · 0.65
persistCacheMethod · 0.65

Implementers 1

FileLearnSessionCacheStorecli/src/mcp/cache.ts

Calls

no outgoing calls

Tested by

no test coverage detected