Mattermost CLI for humans and agents
Project description
mattermost-cli
Mattermost CLI for humans and agents.
Install
# Run directly (no install)
uvx --from mattermost-cli mm --help
# Or install globally
pip install mattermost-cli
Setup
# Interactive login (password + MFA)
mm login --url https://chat.example.com
# Or with a Personal Access Token
mm login --url https://chat.example.com --token <your-pat>
# Verify
mm whoami
Usage
# Get oriented (mentions + unread + active channels in one call)
mm overview
# Read messages
mm messages general
mm messages general --since 1h
mm messages general --threads # thread index view
mm messages @alice # DM with a user
# Threads
mm thread <post-id> # root + last 9 replies
mm thread <post-id> --limit 0 # full thread
# Search and mentions
mm search "deployment issue"
mm mentions # @-mentions in last 24h
# Download files by file ID
mm download abc123def456ghi789jkl012
mm download abc123... def456... --output downloads/
# Channel info
mm channel general # purpose, members, pinned count
mm channels --since 6h # recently active channels
mm unread # channels with unread messages
mm pinned general # pinned posts
mm members general # who's in the channel
# People
mm user @alice # profile, status, timezone
JSON Output
All commands output JSON by default. Key fields:
thread_idon every post - pass tomm threadrefon channel entries - pass tomm messagesfiles[].idon posts with attachments - pass tomm downloadis_bot/bot_name- webhook/bot posts flagged automaticallyrooton reply-mentions - the original message being replied toreactions- emoji counts like{"+1": 3}
Webhook posts automatically extract alert content from Slack-format attachments.
Add --human for readable markdown output instead.
Agent Skill
Install as a coding agent skill:
npx skills add rhnvrm/mattermost-cli
Options
--human Human-readable markdown output (default is JSON)
--team Filter to a specific team
--debug Enable debug output
Auth
Two methods supported:
Password + MFA (primary): mm login prompts interactively. Session token
is stored locally - password is never saved to disk. When the session expires,
run mm login again.
Personal Access Token (optional): mm login --token <pat>. Requires admin
to enable PATs on the Mattermost server. Tokens don't expire.
Credentials stored at ~/.config/mm/config.json (token only, 600 permissions).
Environment variables override config: MATTERMOST_URL, MATTERMOST_TOKEN,
MATTERMOST_TEAM.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mattermost_cli-0.0.4.tar.gz.
File metadata
- Download URL: mattermost_cli-0.0.4.tar.gz
- Upload date:
- Size: 40.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6ebd0540f9e175c73c7b8a9a5db85fe017c2474d62c8326c974691afe7cd486
|
|
| MD5 |
d8ebde0c44575f6ce58eaf181eb22f84
|
|
| BLAKE2b-256 |
f56b403ec03717f23ca8183946fb5f9b4a7a224a59de73c91d58712c67382227
|
Provenance
The following attestation bundles were made for mattermost_cli-0.0.4.tar.gz:
Publisher:
publish.yml on rhnvrm/mattermost-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mattermost_cli-0.0.4.tar.gz -
Subject digest:
c6ebd0540f9e175c73c7b8a9a5db85fe017c2474d62c8326c974691afe7cd486 - Sigstore transparency entry: 2003790043
- Sigstore integration time:
-
Permalink:
rhnvrm/mattermost-cli@9d2084cdf6b84df39eda8e68c7f3afb612326678 -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/rhnvrm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d2084cdf6b84df39eda8e68c7f3afb612326678 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mattermost_cli-0.0.4-py3-none-any.whl.
File metadata
- Download URL: mattermost_cli-0.0.4-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
026e491f1bb68043cca06936133c2ec87a17e4c5586e5e449d31de3d00c205d7
|
|
| MD5 |
88a6710b38a4533b679826fd2b4b6796
|
|
| BLAKE2b-256 |
b5ed65e9085be120ace81ef87b560a339f98142356cc5890228ae17cc1b5b09d
|
Provenance
The following attestation bundles were made for mattermost_cli-0.0.4-py3-none-any.whl:
Publisher:
publish.yml on rhnvrm/mattermost-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mattermost_cli-0.0.4-py3-none-any.whl -
Subject digest:
026e491f1bb68043cca06936133c2ec87a17e4c5586e5e449d31de3d00c205d7 - Sigstore transparency entry: 2003790386
- Sigstore integration time:
-
Permalink:
rhnvrm/mattermost-cli@9d2084cdf6b84df39eda8e68c7f3afb612326678 -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/rhnvrm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d2084cdf6b84df39eda8e68c7f3afb612326678 -
Trigger Event:
release
-
Statement type: