Loading...
Loading...
Read and search Mattermost chat using the `mm` CLI. Use this skill whenever the user mentions Mattermost, chat messages, team chat, unread messages, DMs, channel history, mentions, or wants to catch up on what happened in chat. Also triggers when the user asks about specific people's messages, channel activity, searching for something someone said, or checking notifications. The CLI outputs agent-friendly JSON by default with thread IDs, bot detection, and channel refs - no parsing needed.
npx skill4agent add rhnvrm/mattermost-cli mattermostmm--humanmmmm whoamimmpip install mattermost-cli # adds `mm` to PATH
# or
pipx install mattermost-cli # isolated global install
# or
uvx --from mattermost-cli mm # run without installing (needs uvx)mm login --url https://your.mattermost.server
mm whoami # verifymm login --url https://your.mattermost.server --token YOUR_TOKENmm overviewmm overview # last 6 hours (default)
mm overview --since 1d # last 24 hoursrefmm messages <channel> # last 30 messages, chronological
mm messages <channel> --since 2h # messages from last 2 hours
mm messages <channel> --threads # thread index: root + reply count + last reply
mm messages @username # DMs with someone<channel>off-topic@usernamethread_idmm thread <thread_id> # root + last 9 replies
mm thread <thread_id> --limit 0 # entire thread
mm thread <thread_id> --since 1h # just recent replies (root always included)mm search "deployment issue"
mm search "from:alice in:devops after:2025-01-01"
mm mentions # @-mentions in last 24h
mm mentions --since 3drootmm channel <name> # purpose, header, member/pinned count
mm pinned <channel> # important/pinned posts
mm members <channel> # who's here + online status
mm channels --since 6h # all channels with recent activity
mm channels --type dm # just DMsmm user @someone # profile, role, status, timezone| Field | What it's for |
|---|---|
| Pass to |
| On channel entries; pass to |
| Webhook and bot posts are flagged automatically |
| On reply-mentions; the original message being replied to |
| Thread structure |
| Emoji counts like |