MCPcopy Index your code
hub / github.com/infinitered/reactotron / getClientRedactionConfig

Function getClientRedactionConfig

lib/reactotron-mcp/src/redaction.ts:98–108  ·  view source on GitHub ↗
(server: ReactotronServer, clientId?: string)

Source from the content-addressed store, hash-verified

96 * resource reads that aggregate across apps must pass clientId per event.
97 */
98export function getClientRedactionConfig(server: ReactotronServer, clientId?: string): McpRedactionConfig | undefined {
99 const connections = server.connections as any[]
100 if (clientId) {
101 const conn = connections.find((c) => c.clientId === clientId)
102 return conn?.mcpRedaction
103 }
104 if (connections.length === 1) {
105 return connections[0]?.mcpRedaction
106 }
107 return undefined
108}
109
110/**
111 * Scoped redactor that caches resolved rules per clientId. Create one per

Callers 1

parsedForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected