#12468: feat(mattermost): add read, search, and channel-list actions
channel: mattermost
stale
size: L
Cluster:
Mattermost Integration Enhancements
## Summary
Adds message actions for querying Mattermost channels - useful for agents that need to catch up on channel history or search for context.
## Changes
- `read`: fetch recent posts from a channel
- `search`: search posts across channels with filters (author, date range, etc.)
- `channel-list`: list available channels in a team
Also fixes a bug where account-level `requireMention: false` was ignored (the setting wasn't passed through to the channel resolver).
## Testing
- `pnpm check`
- `pnpm vitest extensions/mattermost/src/actions.test.ts extensions/mattermost/src/channel.test.ts`
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Adds a Mattermost `actions` adapter to expose message-oriented tools (`read`, `search`, `channel-list`, `channel-info`) backed by new Mattermost client helpers (`fetchChannelPosts`, `searchPosts`, `fetchTeamChannels`). Also extends Mattermost account config/schema to support per-action toggles and fixes mention-gating behavior by passing the resolved account-level `requireMention` into the group require-mention resolver in the monitor.
These changes integrate with the existing channel plugin by wiring `mattermostMessageActions` into `extensions/mattermost/src/channel.ts` and leveraging existing account resolution/config merge behavior in `extensions/mattermost/src/mattermost/accounts.ts`.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- Changes are localized to the Mattermost extension, include tests for the new client helpers and action adapter behavior, and the mention-gating fix aligns with how the account resolver computes `requireMention`. I did not find any introduced logic errors that would break existing flows.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#20928: mattermost: add readMessages action for channel history
by hubertusgbecker · 2026-02-19
88.6%
#22075: mattermost: honor account requireMention override
by armindocachada · 2026-02-20
80.5%
#19265: feat(mattermost): Add directory adapter for channel/user name resol...
by oskarmodig · 2026-02-17
78.4%
#10587: fix(extensions/mattermost): pass requireMention override from chatm...
by baku4 · 2026-02-06
78.3%
#10081: fix(mattermost): pass requireMentionOverride to core resolver
by manchmod · 2026-02-06
77.6%
#16570: feat(mattermost): add replyToMode threading support
by FBartos · 2026-02-14
77.5%
#18657: feat(mattermost): add native slash command support (refresh)
by echo931 · 2026-02-16
75.1%
#10027: Mattermost: fix attachment downloads (GET + private-network hosts)
by transportrefer · 2026-02-06
74.7%
#11491: feat(slack): allow agents to resolve channel IDs to names and list ...
by Lukavyi · 2026-02-07
74.7%
#16622: fix(mattermost): record pending history for messages dropped by gro...
by oskarmodig · 2026-02-14
73.2%