MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / setStateStore

Function setStateStore

server/src/training-agent/state.ts:66–71  ·  view source on GitHub ↗
(store: AdcpStateStore | null)

Source from the content-addressed store, hash-verified

64
65/** Override the store (tests only — refuses to run in production). */
66export function setStateStore(store: AdcpStateStore | null): void {
67 if (process.env.NODE_ENV === 'production') {
68 throw new Error('setStateStore is not allowed in production');
69 }
70 storeInstance = store;
71}
72
73// ── Per-request cache via AsyncLocalStorage ──────────────────────
74

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected