Loading...
Loading...
This skill should be used when the user asks to "check my mattermost messages", "fetch DMs", "what did X say", "check messages from coworker", "read mattermost", or mentions mattermost conversations, chat history, or finding tasks mentioned in chat.
npx skill4agent add ardasevinc/agent-devtools mattermost-climmmm# Test if working
mm channelsmm config --init~/.config/mattermost-cli/config.tomlMM_URLMM_TOKEN--url--tokenmm channels # Pretty output - who have I chatted with?
mm channels --json # Structured outputmm dms # All DMs, last 7 days
mm dms -u <username> # From specific user
mm dms -u alice -u bob # Multiple users
mm dms --since 24h # Last 24 hours
mm dms --since 30d --limit 100 # More history
mm dms --json # For parsingmm config # Show config status
mm config --init # Create config file with template
mm config --path # Print config file path| Task | Command |
|---|---|
| Recent messages | |
| From specific person | |
| All channels list | |
| JSON for processing | |
| Extended history | |
| Setup config | |
| Context | Format | Use Case |
|---|---|---|
| Terminal (TTY) | Pretty | Reading directly |
| Piped/non-TTY | Markdown | Passing to tools |
| JSON | Parsing, analysis |
--no-relativemm channels # "2 days ago" (under agent)
mm channels --no-relative # "29 Jan 2026"
mm channels --relative # Force relative timeghp_abc123xyz789secretghp_...cret--url--tokenMM_URLMM_TOKEN~/.config/mattermost-cli/config.toml| Error | Cause | Solution |
|---|---|---|
| "Mattermost URL required" | Not configured | Run |
| "Mattermost token required" | Not configured | Edit config file or set |
| "Could not find DM channel" | User doesn't exist or no DM history | Check username spelling |
| Connection errors | Network/server issues | Verify URL is correct and accessible |
mm dms -u alice --since 7dmm dms --since 24hmm dms -u bob --limit 50 --json > /tmp/bob-chat.json