MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getContext

Method getContext

packages/mcp/src/session-manager.ts:38–40  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

36 }
37
38 getContext(id: string): Promise<McpAuthContext | null> {
39 return getRedisCache().getJson<McpAuthContext>(redisKey(id));
40 }
41
42 async touchContext(id: string): Promise<void> {
43 await getRedisCache().expire(redisKey(id), SESSION_TTL_SECONDS);

Callers 15

handleMcpPostFunction · 0.80
xaFunction · 0.80
HaFunction · 0.80
gMethod · 0.80
mcpRouterFunction · 0.80
getRouterFunction · 0.80
index.tsxFile · 0.80
renderCellFunction · 0.80
VirtualRowFunction · 0.80
ReportTableFunction · 0.80
index.tsxFile · 0.80

Calls 2

getRedisCacheFunction · 0.90
redisKeyFunction · 0.85

Tested by

no test coverage detected