Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToMap ¶
ConvertToMap converts any value (including structs, slices of structs) to map[string]any or []any by marshaling to JSON and unmarshaling back. This ensures the redactor can process all fields. If conversion fails, the original value is returned to avoid impacting the server.
func CopySessionToEvent ¶
CopySessionToEvent copies session metadata fields to the event.
func NewEventID ¶
func NewEventID() string
NewEventID generates a new unique event ID with the MCPCat prefix.
Types ¶
type Event ¶
func CreateIdentifyEvent ¶
CreateIdentifyEvent creates an Event for mcpcat:identify event type.
Click to show internal directories.
Click to hide internal directories.