Skip to content
agents.store
opscollaboration

mattermost-ops

Mattermost collaboration ops plugin. Drive the full Mattermost REST API v4 by curl — users, teams, channels (public/private/DM/group), posts & threads, reactions, files, custom emoji, webhooks, slash commands, bots, OAuth apps, plus system administration: config, RBAC roles & schemes, LDAP/SAML groups, compliance, data retention, plugins, jobs, and analytics. Authenticates with MATTERMOST_ADMIN_USERNAME + MATTERMOST_ADMIN_PASSWORD to obtain a session token against MATTERMOST_API_URL.

v1.1.4Updated

  • mattermost
  • messaging
  • collaboration
  • chat
  • teams
  • channels
  • rest-api
  • webhooks
  • bots
  • system-admin
  • rbac
  • ops
  • agents-store

Install

Pick your agent for the steps.

Install on Claude Code

  1. 1.Add the marketplace

    /plugin marketplace add Agents-Store/claude-plugins
  2. 2.Install the plugin

    /plugin install mattermost-ops@agents-store-claude-plugins

    Type it inside Claude Code.

Claude Code install docs

What is inside

Skills (5)

  • api-reference

    This skill should be used when the user asks for "Mattermost API endpoints", "Mattermost REST API", "Mattermost curl examples", "Mattermost API documentation", the exact path/method for any Mattermost resource, or needs HTTP details for users, teams, channels, posts, reactions, files, emoji, webhooks, slash commands, bots, OAuth apps, system config, roles, schemes, groups, LDAP/SAML, compliance, or data retention. Index into the full per-domain endpoint catalog.

  • common-operations

    This skill should be used when the user wants to do collaboration work in Mattermost — "post a message to a channel", "send a DM in Mattermost", "create a channel", "add users to a team/channel", "deactivate a user", "create a team", "set up a webhook", "react to a post", or any everyday Mattermost operation. Provides plain-language workflows that drive the REST API and route to the exact endpoints.

  • examples

    This skill should be used when the user wants a worked end-to-end Mattermost example or walkthrough — "show me a full Mattermost workflow", "example of onboarding a team in Mattermost", "how do I broadcast a message to several channels via the API", "end-to-end channel management example", or wants to see several Mattermost API calls chained together for a real scenario.

  • setup

    This skill should be used when the user wants to "connect to Mattermost", "log into Mattermost", "authenticate with Mattermost", "get a Mattermost token", "set up Mattermost access", or before running any Mattermost REST API call. Establishes the session token (read from the login Token response header) and the global request conventions (base path, headers, pagination, rate limits).

  • troubleshoot

    Use when a Mattermost REST API call fails or behaves unexpectedly — 401 or 403 mid-session, an expired personal access token, 404 from names used instead of ids, 429 rate limits, missing rows from pagination, 400 on a write, no token after login, or behaviour that changed silently after a server upgrade such as v12 dropping webhook and bot identity props from posts. Maps symptoms to causes and fixes.

Agents (1)

  • mattermost-assistant

    Use this agent when the user needs help running collaboration operations in Mattermost — managing users, teams, channels, posts & threads, reactions, files, custom emoji, webhooks, slash commands, bots, OAuth apps, or system administration (config, roles, schemes, groups, LDAP/SAML, compliance, data retention, plugins) — by driving the Mattermost REST API. <example> Context: User wants to post an announcement user: "Post an announcement to #general in the Engineering team that the release is live" assistant: "I'll use the mattermost-assistant agent to resolve the team and channel and post the message." <commentary> Resolve team/channel by name, then create the post — a core Mattermost ops flow. </commentary> </example> <example> Context: User wants to stand up a workspace user: "Spin up a 'Launch' team with #announcements and #support and add alice, bob, and carol" assistant: "I'll use the mattermost-assistant agent to create the team, channels, and add the members." <commentary> Team + channel creation followed by membership management — a multi-step onboarding flow. </commentary> </example> <example> Context: User wants an admin report user: "Give me a report of total users, posts, and channel counts per team" assistant: "I'll use the mattermost-assistant agent to gather the stats and analytics and format the report." <commentary> Reporting from stats and analytics endpoints (System Admin) — the agent aggregates and presents. </commentary> </example>

README

Drive the full Mattermost REST API v4 from Claude Code. Mattermost is an open-source, self-hostable team collaboration platform; this plugin teaches Claude every operation its API exposes — no MCP server required, just curl and a session token obtained from your admin credentials.

Built from the official API reference: https://docs.mattermost.com/api (OpenAPI 3.0 spec bundled in skills/api-reference/references/mattermost-openapi-v4.yaml — 512 path templates / 640 operations, built from the official sources of server v11.11.1).

What it covers

Every documented resource group, including system administration:

  • Auth & users — login/logout, sessions, personal access tokens (expiry, rotation), MFA, users CRUD, search/autocomplete, activation/deactivation, roles, preferences, status, profile images
  • Teams — teams CRUD, members, invites, stats, search, team schemes
  • Channels — public/private channels, direct & group messages, members, stats, bookmarks, sidebar categories, moderation
  • Posts — posts & threads, replies, pinning, reactions, drafts, ephemeral messages, full-text search
  • Files & emoji — multipart uploads, metadata, thumbnails/previews, custom emoji
  • Integrations — incoming/outgoing webhooks, slash commands, bots, OAuth apps, interactive dialogs
  • System administration — server config, license, analytics & logs, compliance, data retention, plugins, jobs, cluster, ping/health, cloud
  • Access control — RBAC roles, schemes, and LDAP/SAML groups

Skills

SkillAuto-loads?Purpose
setupyesObtain the session token from username/password (read from the Token response header); learn the global conventions (Bearer header, base path, pagination, rate limits)
common-operationsyesPlain-language playbooks for everyday work — post messages, manage channels & members, onboard users, run reports
api-referenceon requestFull endpoint catalog, split across 9 domain files under references/, plus the raw OpenAPI spec
troubleshootyesSymptom → cause → fix for 401/403/404/429, empty Token header, name-vs-ID mistakes, pagination
examplesyesEnd-to-end scenarios: onboard a team, channel management, bulk messaging, admin audit

Plus the mattermost-assistant agent — a plain-language collaboration assistant that orchestrates these operations.

Prerequisites

Set these environment variables (shell, or this repo's .env):

VariableRequiredExampleNotes
MATTERMOST_API_URLyeshttps://mattermost.example.comServer root — the API is served under /api/v4. No trailing slash needed.
MATTERMOST_ADMIN_USERNAMEyesadminUsername or email used to log in.
MATTERMOST_ADMIN_PASSWORDyes••••••••Password for that account (must hold the System Admin role for admin operations).
MATTERMOST_TOKENderived—Obtained at runtime by the setup skill from the login Token header; reused for the session.

In this repo, add the three input vars to .env.example, store real values in Infisical, and run ./scripts/setup.sh dev .env .claude/settings.local.json to pull them locally.

Quick start

Ask Claude in plain language, e.g.:

  • "Log into Mattermost and list my teams"
  • "Post an announcement to #general in the Engineering team"
  • "Create a 'Launch' team with #announcements and #support, then add these 4 users"
  • "Give me a report of inactive users and channel counts per team"
  • "Create an incoming webhook on the #alerts channel"

Authentication flow

# setup skill runs this for you — the token comes back in the Token RESPONSE HEADER, not the body
MATTERMOST_TOKEN=$(curl -si -X POST "${MATTERMOST_API_URL%/}/api/v4/users/login" \
  -H "Content-Type: application/json" \
  -d "{\"login_id\":\"${MATTERMOST_ADMIN_USERNAME}\",\"password\":\"${MATTERMOST_ADMIN_PASSWORD}\"}" \
  | awk 'tolower($1)=="token:"{print $2}' | tr -d '\r')
# sent on every call as: Authorization: Bearer ${MATTERMOST_TOKEN}

Notes

  • No MCP dependency. This is a pure REST knowledge plugin so it can cover all operations. Mattermost now ships an official MCP server inside its Agents plugin (server v11.2+): enable System Console → Plugins → Agents → Model Context Protocol (MCP) → Enable Mattermost MCP Server (HTTP), then point your MCP client at https://<your-server>/plugins/mattermost-ai/mcp-server/mcp (streamable HTTP; a personal access token works out of the box, OAuth 2.0 needs Enable OAuth 2.0 Service Provider on, plus Dynamic Client Registration for automatic client registration). It exposes 16 native tools — read/search/create posts, DMs, channels, teams, members, list_agents — plus an on-demand extended catalogue, and runs with the calling user's permissions; read-only tools work on every licence, state-changing ones need Enterprise or above. See the Agents admin guide and the announcement. It is optional and not a match for full admin work (RBAC, config, compliance); community servers (kakehashi-inc/mcp-server-mattermost, pvev/mattermost-mcp) exist too.
  • Token lives in a header. Unlike most APIs, Mattermost returns the session token in the Token HTTP response header on login — the setup skill extracts it. A 401 mid-session means it expired: log in again.
  • Personal access tokens can expire (v11.9+). Create them with expires_at (Unix milliseconds); an admin may force an expiry through MaximumPersonalAccessTokenLifetimeDays; an expired PAT answers 401; v11.10 adds POST /users/tokens/rotate, DM warnings 7/3/1 days before expiry and a bulk revoke of non-compliant tokens. Tokens made without expires_at (and all older ones) never expire. Details: setup and references/auth-sessions.md.
  • Admin role required for system endpoints. A 403 on /api/v4/system/*, /config, /roles, /ldap, etc. means the account lacks the System Admin role — not a workaround target.
  • Heads-up for Mattermost v12.0 (October 2026). A user session or PAT can no longer set sender-identity props (from_webhook, override_username, override_icon_url, …) on posts — the server silently drops them (use an incoming webhook or a bot instead); channel-member responses omit last_viewed_at/last_update_at for other users instead of returning -1; the built-in Slack team import endpoint is gone (use mmetl + mmctl import). Removed already: POST /posts/ids/reactions (v11.11) and the format parameter on /config/client.

License

Part of the AGENTS.STORE Claude Code plugin marketplace.