Skip to content

rust(feat): add report tooling for external rules - #718

Merged
Brandon-Shippy merged 9 commits into
mainfrom
rust/mcp-external-rules-reports
Aug 5, 2026
Merged

rust(feat): add report tooling for external rules#718
Brandon-Shippy merged 9 commits into
mainfrom
rust/mcp-external-rules-reports

Conversation

@Brandon-Shippy

@Brandon-Shippy Brandon-Shippy commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Description

  • Adds three MCP tools for report templates:
    • list_report_templates
    • create_report_template
    • update_report_template — update a template's name, description, tags, rule set, metadata, or
      archive state

Bundles in the follow bug fix:

  • Fixes create_report so it now starts the report's evaluation. Reports created through the MCP now progress past the initial state as expected.
  • list_runs and list_test_reports were missing guidance about the default of finding archived data is false.

Verification

  • Unit tests
  • Manual testing, all tools returned properly

Testing of all the tools:

create_report_template:
image

list_report_templates:
Screenshot 2026-08-04 at 3 41 36 PM

update_report_template:
Screenshot 2026-08-04 at 3 42 45 PM

Resolved conflicts:
- sift_mcp/src/server/mod.rs: union ReportTemplateService (this branch) with
  UserService (main). Adopted main's app_uri rename and updated require_destructive
  message.
- sift_test_util/src/mock/mod.rs: union report_templates + rule_evaluation (this
  branch) with me + users (main).
- assets/docs/src/agents/mcp.md, assets/skills/{agents-md/AGENTS.md,claude-code/SKILL.md}:
  accepted main's deletion (docs restructured into assets/skills/sift/**). Added
  the three new report_templates tools to the discovery and writes lists in the
  new assets/skills/sift/SKILL.md.
- Post-merge fixups: aligned report_templates tool descriptions with main's new
  50/200 list defaults; updated test helper URIs to app.test.local now that the
  server takes an app_uri directly instead of deriving from rest_uri.

Verified: cargo build -p sift_mcp and cargo test -p sift_mcp both clean, 267/267
tests pass. cargo check -p sift_cli fails due to a pre-existing if-let-guard
usage in main (PR #713) that requires a newer stable Rust than the local
toolchain — not merge-caused.
@Brandon-Shippy
Brandon-Shippy marked this pull request as ready for review August 4, 2026 22:46
Comment thread rust/crates/sift_mcp/src/tool/test_reports/mod.rs Outdated
Comment thread rust/crates/sift_cli/assets/skills/sift/SKILL.md Outdated
Comment thread rust/crates/sift_mcp/src/tool/report_templates/mod.rs
@Brandon-Shippy
Brandon-Shippy merged commit 725ecea into main Aug 5, 2026
22 checks passed
@Brandon-Shippy
Brandon-Shippy deleted the rust/mcp-external-rules-reports branch August 5, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants