feat: Add MCP tools for polls (create, vote, results, list) - EXO-88347#196
Open
bmestrallet wants to merge 1 commit into
Open
feat: Add MCP tools for polls (create, vote, results, list) - EXO-88347#196bmestrallet wants to merge 1 commit into
bmestrallet wants to merge 1 commit into
Conversation
Expose the Poll add-on to the AI agent (EVA) via 4 MCP tools in a new io.meeds.poll.mcp package (PollMcpTool + ai-tool-definitions.json): - create_poll(space_id, question, options, duration, message) [approval] - vote_in_poll(poll_option_id) [approval] - get_poll_results(poll_id) - list_space_polls(space_id, limit) — discovery, so a poll's id and option ids can be found from a space without guessing Each tool acts as the current user, so space membership and redactor permissions enforced by PollService apply. Adds the mcp-server-tools provided dependency, the -parameters compiler flag and unit tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What
Exposes the Poll add-on to the AI agent (EVA) via 4 MCP tools in a new
io.meeds.poll.mcppackage (PollMcpTool+ai-tool-definitions.json) — no change to the mcp-server webapp; tools are auto-discovered through the kernel↔Spring bridge.create_poll(space_id, question, options, duration, message)vote_in_poll(poll_option_id)get_poll_results(poll_id)did_vote.list_space_polls(space_id, limit)Why
list_space_pollsA poll's id ≠ its activity id and activity tools don't expose the
pollIdtemplate param, so EVA couldn't find a poll to read or vote on. This tool scans the space stream forpoll-type activities and resolves each to its poll id + results.Notes
PollService. Votes stay anonymous (only tallies exposed).mcp-server-toolsprovided dependency and the-parameterscompiler flag (required for MCP arg binding).poll-servicessuite green (48 tests), module coverage gate (0.67) holds.poll-apichanges).Board task: EXO-88347 · Docs note: https://community.exoplatform.com/portal/s/273/notes/47155
🤖 Generated with Claude Code