communication
Mattermost MCP Integration for OpenAI Agents SDK
Connect Mattermost to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Mattermost to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Mattermost MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-mattermost": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=mattermost",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=mattermost --write=deny Why Use KosmoKrator Here
Expose only Mattermost instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Mattermost Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Mattermost integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__mattermost__mattermost_list_channels | mattermost.mattermost_list_channels | Read | List channels the current user belongs to in Mattermost. Returns channel IDs, names, types, and team associations. Use this to discover available channels before posting messages or reading posts. |
integration__mattermost__mattermost_get_channel | mattermost.mattermost_get_channel | Read | Get details of a specific Mattermost channel by ID. Returns channel name, display name, type, header, purpose, and member counts. |
integration__mattermost__mattermost_create_post | mattermost.mattermost_create_post | Write | Post a message to a Mattermost channel. Provide the channel_id and the message text. Returns the created post with its ID and timestamp. |
integration__mattermost__mattermost_list_posts | mattermost.mattermost_list_posts | Read | List posts in a Mattermost channel. Returns post IDs, messages, author info, and timestamps. Use page and per_page for pagination. |
integration__mattermost__mattermost_get_post | mattermost.mattermost_get_post | Read | Get a specific Mattermost post by ID. Returns the full post including message content, author, channel, and timestamps. |
integration__mattermost__mattermost_list_teams | mattermost.mattermost_list_teams | Read | List teams the current user belongs to in Mattermost. Returns team IDs, names, display names, and types. Use this to discover available teams before working with channels. |
integration__mattermost__mattermost_get_current_user | mattermost.mattermost_get_current_user | Read | Get the profile of the currently authenticated Mattermost user. Returns username, email, display name, roles, and locale. |