I’m building an experimental add-on to use OpenAI Dots with Mattermost, with the goal of a workflow similar to using Dots in Slack. The first working step is new-message notification: a post in one Mattermost channel can wake my Dots conversation. This is not yet a complete chat integration, and it does not reply to Mattermost automatically.
The official Mattermost MCP tools let an agent read, search, post, and manage channels (Agents admin guide). Those tools are request-driven: the agent acts when asked. This PoC tests something complementary: event delivery that wakes a ChatGPT conversation when a new message arrives, during a finite, authorized window.
I have not verified whether the official MCP server offers equivalent event support, so please don’t read this as a claim that it doesn’t.
How it works
Source: REST polling of one fixed channel every 5 seconds, bridged to MCP Events. This is not native Mattermost push.
The event payload has only three fields: channel_id, post_id, created_ms. REST response bodies are read transiently and excluded from the payload, so message text never travels in the event.
No automatic replies.
What I observed
One 5-minute trial on October 8, 2026:
1 new post, 1 delivered event, and a matching ChatGPT conversation wake
55 REST reads
After expiry: zero active subscriptions, and transient signing material cleared
49 offline tests passed
I’m naming the fields only; actual values are not shared here.
Limits
One channel, one finite window, one trial. I make no claims about always-on operation, restart behavior, or gap-free replay.
Questions
Which notification or event capabilities, if any, does the official Mattermost MCP server support today? Pointers to docs are welcome.
For least-privilege notifications from a private channel, which source would you prefer over polling: WebSocket, or another server-side mechanism?
Thanks!
Update: public code
I’ve published a clean source export: mattermost-dots-poc, with English/Japanese READMEs, architecture, setup templates and synthetic offline reproduction. Private history and runtime material are excluded. The public export passed its offline checks; its adapted live template has not been re-tested with ChatGPT after export. It still covers finite read polling and metadata notifications only, with no automatic replies or two-way chat.
Welcome to the community, @moruku36! And thanks for sharing your PoC and clearly documenting its limits. I’d explore authenticated WebSocket events as an alternative to polling, though I can’t yet confirm equivalent event support in the official MCP server.
Thanks, John. I’ll explore an authenticated WebSocket-based approach and test it locally. Once I have verified results, I’ll share an update here with the GitHub repository.
Hi John, sorry for the slow update. I’ve run into a few snags and it’s taking longer than expected. I’ll keep working on it and let you know when I have an update. Thanks for your patience!
Two practical notes on the WebSocket path, since you mentioned snags. The docs list only three WebSocket actions (user_typing, get_statuses, get_statuses_by_ids), so event scoping rides on the connection itself: events arrive with broadcast fields (channel_id, user_id, omit_users) that you filter on. In practice that means one long-lived authenticated connection per bot user, filter posted events by broadcast channel_id, and drop events whose post user_id is the bot itself, otherwise the agent’s own reply re-triggers the wake. Which part bit you first - keeping the authenticated connection alive across reconnects, or events arriving but not mapping to a conversation wake?
Thanks — the distinction between WebSocket actions and received events is helpful. I should clarify that there are two separate layers here:
The current blocker is before the WebSocket connection.
My local Windows credential-store preflight reports expired metadata for the stored credential, so the test is paused pending safe credential re-registration. This is a local credential-lifecycle issue, not evidence that the Mattermost PAT itself has expired. I haven’t yet reached a verified live WebSocket test, so I can’t attribute the failure to authentication across reconnects or event delivery.
WebSocket to Dots conversation wake is the next integration step.
The existing PoC bridges REST polling into MCP Events. Its scope is deliberately limited to one channel during a finite, authorized window, with metadata-only notifications and no automatic replies. Replacing polling with WebSocket delivery still needs end-to-end verification through the Dots wake path.
Your suggested authenticated connection and posted filtering give me a useful direction. Self-post filtering also makes sense as a guard, though automatic replies are outside the current PoC.
For that bounded setup, is there a recommended reference for reconnect handling and cleanly closing the connection when the notification window expires? Separately, does the official Mattermost MCP server expose notification/event subscriptions that could support this workflow, or should that event bridge remain a separate component?
I’ll keep the local credential issue separate from the WebSocket/wake results when I report back.