MCPcopy
hub / github.com/simstudioai/sim / set

Method set

apps/sim/lib/mcp/storage/adapter.ts:10–10  ·  view source on GitHub ↗
(key: string, tools: McpTool[], ttlMs: number)

Source from the content-addressed store, hash-verified

8export interface McpCacheStorageAdapter {
9 get(key: string): Promise<McpCacheEntry | null>
10 set(key: string, tools: McpTool[], ttlMs: number): Promise<void>
11 delete(key: string): Promise<void>
12 clear(): Promise<void>
13 dispose(): void

Callers 15

persistMigratedBlocksFunction · 0.65
addBlockStateFunction · 0.65
createDAGNodeFunction · 0.65
createDAGFunction · 0.65
createDAGFromNodesFunction · 0.65
createLinearDAGFunction · 0.65
addNodeToDAGFunction · 0.65
connectDAGNodesFunction · 0.65
socket.mock.tsFile · 0.65
withBlockStateMethod · 0.65
withBlockStatesMethod · 0.65

Implementers 2

RedisMcpCacheapps/sim/lib/mcp/storage/redis-cache.t
MemoryMcpCacheapps/sim/lib/mcp/storage/memory-cache.

Calls

no outgoing calls

Tested by 11

createFakeRedisFunction · 0.52
headersFunction · 0.52
createRedisStubFunction · 0.52
requestWithWorkspaceFunction · 0.52
requestWithWorkspaceFunction · 0.52
createNodeFunction · 0.52
createDAGFunction · 0.52
createMockDAGFunction · 0.52
createMockDAGFunction · 0.52
createMockNodeFunction · 0.52
setCacheFunction · 0.52