rust(feat): preview_rule MCP tool - #738
Open
evan-sift wants to merge 4 commits into
Open
Conversation
evan-sift
force-pushed
the
rust/mcp-calculated-channel-data
branch
from
August 26, 2026 07:55
3c4c477 to
ce38cc5
Compare
evan-sift
force-pushed
the
rust/mcp-preview-rule
branch
from
August 26, 2026 07:56
505de4d to
c49576a
Compare
evan-sift
force-pushed
the
rust/mcp-calculated-channel-data
branch
from
August 26, 2026 08:20
ce38cc5 to
b782ed0
Compare
evan-sift
force-pushed
the
rust/mcp-preview-rule
branch
from
August 26, 2026 08:20
c49576a to
ac9064e
Compare
evan-sift
marked this pull request as ready for review
August 26, 2026 08:21
Add a preview_rule tool over the rule evaluation service's dry-run RPC. Supports evaluating a saved rule (by id or name, resolved through the existing rules service) or an ad-hoc draft rule config against a run, without persisting anything.
evan-sift
force-pushed
the
rust/mcp-calculated-channel-data
branch
from
August 27, 2026 04:40
b782ed0 to
bc3f432
Compare
evan-sift
force-pushed
the
rust/mcp-preview-rule
branch
from
August 27, 2026 04:40
ac9064e to
bda5135
Compare
lineville
approved these changes
Aug 27, 2026
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.
Description
Adds
preview_rule: a dry run of a rule against a run that persists nothing. It accepts a saved rule (rule_idorrule_name, resolved through the existing rules service, considering only active rules) or an ad-hocdraft_rule_configJSON string; the two are mutually exclusive. Read-only, so it needs no write-mode flags.Surface note:
preview_ruleis an action, not a resource; the list / create / update / archive quartet does not apply.Stack note: the bundled agent skill and the 0.5.0 changelog for this whole stack land at the tip (#763).
Verification
cargo test -p sift_mcpon this branch: 363 passed, 0 failed (saved vs draft request construction, both mutual-exclusion directions, malformed draft JSON, name resolution, error propagation, result shape, archived-name exclusion).list_rulesround trip.preview_ruleovercreate_report/create_rule.