communication
Mattermost MCP Gateway for AI Agents
Expose Mattermost tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.
7 functions 6 read 1 write Bearer token auth
Mattermost MCP Gateway
Expose Mattermost to MCP clients with `kosmokrator mcp:serve --integration=mattermost`.
If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash kosmokrator mcp:gateway:install --integration=mattermost --write=deny --json {
"mcpServers": {
"kosmokrator-mattermost": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=mattermost",
"--write=deny"
]
}
}
} Serve Manually
kosmokrator mcp:serve --integration=mattermost --write=deny MCP Tool Names
KosmoKrator exposes integration tools through the gateway with stable names:
| MCP tool | Source function | Type |
|---|---|---|
integration__mattermost__mattermost_list_channels | mattermost.mattermost_list_channels | Read read |
integration__mattermost__mattermost_get_channel | mattermost.mattermost_get_channel | Read read |
integration__mattermost__mattermost_create_post | mattermost.mattermost_create_post | Write write |
integration__mattermost__mattermost_list_posts | mattermost.mattermost_list_posts | Read read |
integration__mattermost__mattermost_get_post | mattermost.mattermost_get_post | Read read |
integration__mattermost__mattermost_list_teams | mattermost.mattermost_list_teams | Read read |
integration__mattermost__mattermost_get_current_user | mattermost.mattermost_get_current_user | Read read |
Write Access
Start with --write=deny for read-only MCP clients. Use --write=ask or
--write=allow only when the client and workspace are trusted.