feat: Gamification MCP 'my progress' read tools - EXO-88399#1985
Open
bmestrallet wants to merge 1 commit into
Open
feat: Gamification MCP 'my progress' read tools - EXO-88399#1985bmestrallet wants to merge 1 commit into
bmestrallet wants to merge 1 commit into
Conversation
Add 6 read-only campaign-progress tools to GamificationMcpTool, stacked on the existing gamification MCP tools: - list_campaign_badges: badges (levels) of a campaign + score needed - get_my_campaigns: campaigns the user is a member of or owns - list_joinable_campaigns: open public campaigns to join - get_my_points_total: total points earned in a date range / campaign - get_my_score_breakdown: points per campaign for a period - check_quest_availability: pre-check for announce_quest with a reason All tools are hard-scoped to the current user (self identity id / username resolved via the existing helpers; no arbitrary identity accepted). 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
Follow-up batch of 6 read-only "my progress" tools on
GamificationMcpTool, extending the campaigns/quests set. Campaign vocabulary; all reads, hard-scoped to the caller (no arbitrary identity param). Stacked on #1984.list_campaign_badges(campaign_id)BadgeService.findEnabledBadgesByProgramId(view-gated)get_my_campaigns(limit, offset)ProgramService.getMemberProgramIds+getOwnedProgramIdslist_joinable_campaigns(limit, offset)ProgramService.getPublicProgramIdsget_my_points_total(from_date, to_date, campaign_id?)RealizationService.getScoreByIdentityIdAndBetweenDatesget_my_score_breakdown(period)RealizationService.getLeaderboardStatsByIdentityIdcheck_quest_availability(quest_id)getRealizationValidityContext+hasPendingRealizationlist_my_realizations(already shipped) remains the per-event history; these add badges, my/joinable campaigns, windowed totals, breakdown, and the announce pre-check.Tests & verification
mvn clean install -pl services -Pcoverage→ BUILD SUCCESS, 354 tests, coverage gate 0.75 held;-parametersconfirmed (MethodParameters 46).AI contribution. Stacked on
feat/gamification-mcp-tools(#1984).