Repository navigation
fix(mcp): return outcome not_found from reports_action on unknown id - #1345
tirthraj01 wants to merge 2 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
🦋 Changeset detectedLatest commit: 8655303 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Confidence Score: 5/5
[Low impact] The PR appears safe to merge.
|
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
Fixes #1325
Summary
outcome: "not_found"(OUTCOME_NOT_FOUND) fromact_on_reportincrates/nostream-mcp/src/server.rswhen no report carries the suppliedevent_id, matching siblingdelete_eventinstead of returning a success-shaped empty list.outcome: "not_found"inreports_action's tool description and update thetools/listsnapshot incrates/nostream-mcp/tests/fixtures/tools_list.json.crates/nostream-mcp/tests/write_tools.rs(an_unknown_report_answers_not_found) to assertoutcome: "not_found"and verify the reply differs from a no-op flip (changed: 0on an existing report)..changeset/reports-action-not-found.mdforrewrite/main.Verification
cargo fmt --all --checkcargo clippy -p nostream-mcp --all-targets --all-features -- -D warningscargo clippy -p nostream-mcp --lib --bins --all-features -- -D warnings -D clippy::unwrap_used -D clippy::expect_used -D clippy::todo -D clippy::unimplemented -D clippy::paniccargo test -p nostream-mcp --all-features --lib --test audit --test maintenance --test relay_status --test store_families --test tool_payloads --test tools_list --test write_tools