MCPcopy Create free account
hub / github.com/ShipSecAI/studio / createInitialState

Function createInitialState

frontend/src/store/mcpGroupStore.ts:43–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41const STALE_MS = 30_000; // Groups cache for 30 seconds
42
43const createInitialState = (): McpGroupStoreState => ({
44 groups: [],
45 groupServers: new Map(),
46 isLoading: false,
47 error: null,
48 lastFetched: null,
49});
50
51export const useMcpGroupStore = create<McpGroupStore>((set, get) => ({
52 ...createInitialState(),

Callers 2

mcpGroupStore.tsFile · 0.70
resetMcpGroupStoreStateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected