Files
2cce4231cb docs: fix broken internal links and fail CI on new ones (#39953)
* docs: fix broken internal links in developer and product docs

Contributor guide linked to root-level /why-contribute, /good-decisions,
/expectations and /more-info; switch these and other root-relative or
moved-page links to relative file links or current paths. Repoint absolute
docs.mattermost.com links that no longer resolve, demote body-level H1s
that Docusaurus renders without ids, and fix stale anchors.

* docs: register plugin reference anchors with the broken-link checker

The generated server/webapp/manifest reference components render raw
elements with ids, which Docusaurus does not see, so every deep link into
them was reported as a broken anchor.

* docs: fail CI on broken links and unresolvable absolute docs links

Set onBrokenLinks and onBrokenMarkdownLinks to throw now that the build is
clean, keep onBrokenAnchors at warn, and add check:absolute-links to Docs CI
to validate absolute https://docs.mattermost.com links against the build.

* chore(docs): refresh rendered IME diagram

Auto-generated by .github/workflows/docs-ime-render.yml.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-12 09:36:39 +02:00

3.3 KiB

title, sidebar_position
title sidebar_position
Server plugins 10

Server plugins are subprocesses invoked by the server that communicate with Mattermost using remote procedure calls (RPC).

Looking for a quick start? See our "Hello, world!" tutorial.

Want the Server SDK reference doc? Find it here.

Features

RPC API

Use the RPC API to execute create, read, update and delete (CRUD) operations on server data models.

For example, your plugin can consume events from a third-party webhook and create corresponding posts in Mattermost, without having to host your code outside Mattermost.

Hooks

Register for hooks and get alerted when certain events occur.

For example, consume the OnConfigurationChange hook to respond to server configuration changes, or the MessageHasBeenPosted hook to respond to posts.

REST API

Implement the ServeHTTP hook to extend the existing Mattermost REST API.

Plugins with both a web app and server component can leverage this REST API to exchange data. Alternatively, expose your REST API to services and developers connecting from outside Mattermost.

How it works

When starting a plugin, the server consults the plugin's manifest to determine if a server component was included. If found, the server launches a new process using the executable included with the plugin.

The server will trigger the OnActivate hook if the plugin is successfully started, allowing you to perform startup events. If the plugin is disabled, the server will trigger the OnDeactivate hook. While running, the server plugin can consume hook events, make API calls, launch threads or subprocesses of its own, interact with third-party services or do anything else a regular program can do.

Properties and access control

To attach typed data to Mattermost objects, such as a status for posts or a region for channels, without managing your own database tables, see Store custom data with the property system. To protect your plugin's own resources with attribute-based access policies, and to respect Mattermost's file upload and download policies, see Enforce access control in your plugin.

High availability

Considerations for plugins in a high availability configuration are documented here: High Availability

Best practices

Some best practices for working with the server component of a plugin are documented here: Best Practices

Debug Server plugins

Guidelines for debugging the server-side of plugins are documented here: Debug Server plugins