[Studio][Bug] Alert rule list omits instance binding from MCP output
Maintainers usually reply within 3 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start by locating AlertRuleListItem.from(AlertRuleVO) and the catalog schema for rmq.alert.rule.list. Read the focused handler and output schema tests, then check how the projection and schema represent optional fields. Done when an instance-bound rule exposes instanceId in the serialized output and schema tests pass, while global rules can omit it.
Written by the indexing model from the issue text.
Description
Problem
The rmq.alert.rule.list MCP tool is documented and implemented as a platform-level listing. It returns both global alert rules and rules bound to individual Studio Instances, but its serialized item projection omits the rule's instanceId.
Reproduction
- Configure one global alert rule and one rule bound to
instance-a. - Invoke
rmq.alert.rule.listwithout filters. - Inspect the returned items.
Expected behavior
An instance-bound rule should identify its Studio Instance in the MCP response. A global rule may omit the field.
Actual behavior
The response contains the rule name, metric, threshold, and status, but not the binding. A planner cannot distinguish a global rule from an instance-bound rule or identify the target instance before a follow-up operation.
Root cause
AlertRuleListItem.from(AlertRuleVO) did not copy AlertRuleVO.instanceId, and the catalog schema did not declare the field.
Scope
The change is additive: preserve the existing fields and expose the optional instance binding in the MCP list projection and schema.
Regression evidence
The pre-fix serialized projection failed a deterministic assertion for "instanceId":"instance-a"; the focused handler and output-schema tests pass with the fix.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 717
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 143
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/rocketmq-dashboard
-
[Bug] CSV export converts numeric negative values into textPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
apache/rocketmq-dashboard#7336 ·
Maintainers usually reply within 3 days
-
[Bug] Certificate expiry sorting can reverse UTC order across a viewer daylight-saving gapPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/rocketmq-dashboard#7318 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
apache/rocketmq-dashboard#7313 ·
Maintainers usually reply within 3 days
-
fix(mcp): reject unsupported cluster list status valuesPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/rocketmq-dashboard#7302 ·
Maintainers usually reply within 3 days
-
fix(rmqctl): reject malformed context server URLsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/rocketmq-dashboard#7292 ·
Maintainers usually reply within 3 days
All issues in apache/rocketmq-dashboard
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
code-maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
krizaka/krizaka-notifications#32 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
klikli-dev/occultism#1719 ·