Mattermost Workflows for Codex

Mattermost Workflows for Codex

A local-first Codex plugin that bundles an MCP server to safely interact with Mattermost, enabling channel/thread summarization, conversation search, and reviewed post publishing via the Mattermost REST API.

Category
Visit Server

README

Mattermost Workflows for Codex

Русская версия

A local-first Codex plugin for working safely with Mattermost through a bundled MCP server. It uses the standard Mattermost REST API v4 and is compatible with Mattermost 10.11, so it does not require the official Agents MCP plugin or administrator access.

Codex can summarize channels and threads, search conversations, and publish a reviewed post. The MCP process runs locally and connects directly from the user's machine to the user's Mattermost deployment. The publisher never receives that traffic.

This project is not affiliated with, endorsed by, or sponsored by Mattermost, Inc. or OpenAI.

MVP

  • Identify the connected user and list accessible teams.
  • Resolve team and channel names using the account's existing permissions.
  • Read and summarize a channel or thread.
  • Search posts within a requested team or channel scope.
  • Freeze a new post or reply, show the exact target and text, and publish it only after explicit approval.
  • Store local credentials outside the repository, with macOS Keychain support.

Creating users, teams, or channels; membership changes; impersonation; attachments; bulk posting; background indexing; and browser-cookie reuse are outside the MVP. See MVP scope.

Requirements

  • Mattermost 10.11 or another deployment exposing the compatible REST API v4 endpoints.
  • A normal Mattermost account with access to the channels you want to use. No admin access is required.
  • Codex with plugin and local MCP support.
  • Node.js 18 or later only when building from source. The plugin includes the built server.

Install

From this repository marketplace:

codex plugin marketplace add shanginn/codex-mattermost --ref main
codex plugin add mattermost-workflows@personal

Start a new task after installation so Codex loads the plugin and its MCP server.

Connect your Mattermost account

On macOS, the recommended setup creates an ordinary Mattermost session and stores only the resulting token in Keychain. Run this from the cloned repository and substitute your own host and login locally:

node plugins/mattermost-workflows/scripts/configure-macos.mjs \
  --server-url https://chat.example.com \
  --login-id YOUR_LOGIN

The password is entered interactively, is not printed, and is not saved. The generated config lives at ~/.config/codex-mattermost/config.json; it contains the server URL and Keychain lookup metadata, but no secret.

You can alternatively supply an existing session token or personal access token through standard input, or use the MATTERMOST_URL and MATTERMOST_TOKEN environment variables. Never commit either value or paste secrets into chat. See the complete setup guide.

Example prompts

  • “Who am I connected as, and which Mattermost teams can I access?”
  • “Summarize decisions and action items from the channel I name since Monday.”
  • “Find posts in this team about database connection exhaustion.”
  • “Draft a maintenance notice for the channel I name. Do not post it until I approve.”

Development and tests

The plugin lives at plugins/mattermost-workflows; the local marketplace is .agents/plugins/marketplace.json.

npm install
npm test

The test suite builds the bundled server, exercises the MCP protocol and Mattermost API adapter against local fixtures, and validates the plugin, bilingual documentation, safety gates, attribution, and reviewer cases. It never connects to a real Mattermost deployment.

Privacy, support, and terms

License and required attribution

This project uses the custom Shangin Attribution License 1.0. Any use, deployment, derivative, or fork must include:

Based on Mattermost Workflows for Codex by Nikolai Shangin (shanginn@gmail.com).

The custom license is source-available and attribution-required; it is not represented as an OSI-approved license. Third-party components remain under their own licenses.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured