pub fn compact_items(items: &[Value], fields: &[&str]) -> Value
Flatten a list of items to only include the specified fields with flattened values. Returns a JSON array. Used by MCP server for token-efficient responses.