mattermost-plugin-agents

module
v2.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: Apache-2.0

README

Mattermost Agents Plugin Download Latest Master Build

Self-hosted AI agents for Mattermost that act on your behalf through tools and MCP servers, plus a built-in Mattermost MCP server for external AI clients such as Claude Code, Claude Desktop, Cursor, and VS Code.

Mattermost Agents workspace showing specialized agents, multi-tool execution, and an interactive HTML artifact

Mattermost Agents (plugin ID mattermost-ai) adds AI agents to a Mattermost server. Talk to an agent in the Agents workspace, the Agents pane, a direct message, or a channel. Agents search and post in Mattermost, call external tools through the Model Context Protocol (MCP), and create files and interactive HTML artifacts using your permissions. You choose the LLM, including on-premises and self-hosted models so conversations and data stay in your environment.

Key features

  • Sovereign AI: Connect on-premises and self-hosted models (Ollama, vLLM, and OpenAI-compatible servers) for air-gapped or private deployments, or choose OpenAI, Anthropic, AWS Bedrock, Azure OpenAI, Google Gemini, Vertex AI, Cohere (including Cohere North), and Mistral. See Sovereign AI deployments and Provider configuration.
  • Tools and MCP: Use built-in Mattermost tools, remote MCP servers with per-user OAuth or service accounts, and tools registered by other Mattermost plugins. See Use tools and approve actions.
  • Built-in Mattermost MCP server: Connect Claude Code, Claude Desktop, Cursor, VS Code, or any streamable HTTP MCP client to /plugins/mattermost-ai/mcp-server/mcp using OAuth or a personal access token, with over 100 tools running under the signed-in user's permissions. See Mattermost MCP server.
  • Governance and observability: Per-tool approval policies, user/team/channel and attribute-based access controls, delegated settings access, server audit logging, token usage logs, and OpenTelemetry tracing. See the Admin guide.
  • Summaries, search, and meetings: Summarize threads, channels, unread messages, and Mattermost Calls or Zoom recordings, and search with keyword and semantic search. See Summaries and AI search and Meeting summaries.
  • Files and HTML artifacts: Read attachments, analyze images with vision models, attach generated text files, and render sandboxed interactive HTML artifacts in the conversation. See Secure AI-generated links and HTML.
  • Dedicated Agents workspace: Create and manage multiple agents with custom instructions, models, version history, and conversation history from the Agents product view. See Use Mattermost Agents.
  • Channels and Skills: @mention agents or configure channel auto-reply with private/shared tool results, and save, pin, share, or auto-load reusable Skills.

Some features depend on your Mattermost license level. See License requirements.

Documentation

Product documentation lives in docs/ and is published on docs.mattermost.com (User guide, Admin guide).

For users
For admins
For developers

Installation and quick start

Check the system requirements in the Admin guide before installing.

  1. Download the latest release from the releases page (or the experimental latest master build).
  2. Upload and enable the plugin in System Console > Plugins > Plugin Management.
  3. Open Agents from the product switcher, go to Settings > AI services, and select Add an AI Service.
  4. Select All agents > Create agent, choose a username and service, and save.
  5. Start a conversation from the Agents page, the Agents pane, or a direct message.

See the Admin guide for full configuration details.

Development

Requires Go 1.27+ and Node.js 24.11+. Follow the Mattermost Server and Plugin setup guides, then build and deploy to a local or remote server:

export MM_SERVICESETTINGS_SITEURL=http://localhost:8065
export MM_ADMIN_USERNAME=<username>
export MM_ADMIN_PASSWORD=<password>
make deploy

Common commands (make help lists all targets):

  • make check: Run linters, unit tests, and drift checks
  • make test: Run Go and webapp unit tests
  • make e2e: Run Playwright end-to-end tests
  • make evals: Run prompt evaluations (see cmd/evalviewer/README.md)

License

This repository is licensed under Apache-2, except for the enterprise directory which is licensed under the Mattermost Source Available License. See Mattermost Source Available License to learn more.

Directories

Path Synopsis
Package accesscontrol is the plugin-side PEP for ABAC over agents, LLM services, and external MCP servers.
Package accesscontrol is the plugin-side PEP for ABAC over agents, LLM services, and external MCP servers.
Package audit carries server audit records through context so that handlers and services can enrich the record the API middleware created, mirroring how attributes are added to the ambient OpenTelemetry span.
Package audit carries server audit records through context so that handlers and services can enrich the record the API middleware created, mirroring how attributes are added to the ambient OpenTelemetry span.
Package autoreply stores and serves per-channel agent auto-reply settings.
Package autoreply stores and serves per-channel agent auto-reply settings.
Package bifrost provides a unified LLM interface using the Bifrost gateway library.
Package bifrost provides a unified LLM interface using the Bifrost gateway library.
build
govet command
agents-govet is the repo's go vet tool: go vet -vettool=bin/agents-govet ./...
agents-govet is the repo's go vet tool: go vet -vettool=bin/agents-govet ./...
govet/httpclienttimeout
Package httpclienttimeout reports net/http.Client literals without a Timeout.
Package httpclienttimeout reports net/http.Client literals without a Timeout.
manifest command
pluginctl command
main handles deployment of the plugin to a development server using the Client4 API.
main handles deployment of the plugin to a development server using the Client4 API.
Package dictation brokers live dictation calls.
Package dictation brokers live dictation calls.
external
pluginmcp
Package pluginmcp helps Mattermost plugins expose MCP tools to the Agents plugin.
Package pluginmcp helps Mattermost plugins expose MCP tools to the Agents plugin.
Package files serves the text contents of Mattermost file attachments to the LLM on demand.
Package files serves the text contents of Mattermost file attachments to the LLM on demand.
internal
mmcontainer
Package mmcontainer runs a Mattermost server backed by Postgres in Docker for integration tests.
Package mmcontainer runs a Mattermost server backed by Postgres in Docker for integration tests.
Package lifecycle owns the plugin-level root context.
Package lifecycle owns the plugin-level root context.
llm
Package llm provides a unified abstraction layer for Large Language Model interactions within the Mattermost AI plugin.
Package llm provides a unified abstraction layer for Large Language Model interactions within the Mattermost AI plugin.
llmtest
Package llmtest provides test and benchmark helpers for the llm package.
Package llmtest provides test and benchmark helpers for the llm package.
profile
Package profile defines the load-test mock LLM profile: its defaults, operator-JSON overlay parsing, and validation.
Package profile defines the load-test mock LLM profile: its defaults, operator-JSON overlay parsing, and validation.
Package mcp provides a client for the Model Control Protocol (MCP) that allows the AI plugin to access external tools provided by MCP servers.
Package mcp provides a client for the Model Control Protocol (MCP) that allows the AI plugin to access external tools provided by MCP servers.
cmd command
public
bridgeclient
Package bridgeclient provides a client library for Mattermost plugins and the server to interact with the AI plugin's LLM Bridge API to make requests to LLM providers.
Package bridgeclient provides a client library for Mattermost plugins and the server to interact with the AI plugin's LLM Bridge API to make requests to LLM providers.
Package skills lists the skills an agent may load for a request and provides the load_skill and refresh_skills tools that load them.
Package skills lists the skills an agent may load for a request and provides the load_skill and refresh_skills tools that load them.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL