package chats import ( "bufio" "context" "encoding/json" "fmt" "os" "os/exec" "path/filepath" "regexp" "strings" "time" ) type LinkedInMCPSource struct { userDataDir string limit int } type lnInboxItem struct { ThreadID string `json:"thread_id"` Participants string `json:"participants"` LastMessage string `json:"last_message"` LastMessageDate string `json:"last_message_date"` Unread bool `json:"unread"` } // mcp-server-linkedin v4.22 returns get_inbox / get_conversation as // {url, sections:{inbox|conversation: textblob}, references:{...}}. // The conversation list lives in references (kind=conversation); messages live // in the sections text blob, delimited by " sent the following message // at