Repository navigation
app/: set_credit_override admin MCP tool (stacked on #145 and #144) (sc-8900) - #147
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
app-staff-admin-mcp
branch
from
December 3, 2026 18:21
98770a7 to
4629ca6
Compare
VisualCIdocspring/visualci · build #219 · 341 unchanged · no changes This PR vs base: nothing since #196, across 3 builds docspring/visualci · journeys · build #217 · 12 unchanged · no changes This PR vs base: nothing since #193, across 3 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
app-admin-credit-override
branch
from
December 3, 2026 18:37
65a159c to
d944286
Compare
Co-authored-by: Claude <noreply@anthropic.com>
ndbroadbent
force-pushed
the
app-admin-credit-override
branch
from
December 3, 2026 19:39
d944286 to
7eadcc2
Compare
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.
Stacked: merge #145 (/mcp/admin) and #144 (credit override) first. This branch is #145 with #144 merged in. Once both are on main, rebase it and its diff is only the last commit: one tool, its test and goldens, and one docs line.
Adds the admin MCP tool
set_credit_override, which brief item 4 asks for. It calls #144'sdomain::credit_overrides::set/clearwithActor::Staff(user).org,credits,until(YYYY-MM-DD),label(optional, what customers see),reason, andclear: true(instead ofcreditsanduntil).{org, override, allowance, was: {allowance, override}}.admin_audit, and the domain also writes its owncredit_override_auditrow (old and new allowance).Tests:
staff_read_and_write_with_a_reason_and_every_call_is_auditednow checks:until);credit_override_auditrow);admin_audit.New goldens:
set_credit_override*.json, plustools-list.jsonwith the new tool.Gates (build box, on this branch with #144 merged):
cargo fmt --all --check,cargo clippy --locked --workspace --all-targets -- -D warningsandcargo test --locked --workspaceall pass.VisualCI build: the new and changed
mcp_adminJSON goldens, plus whatever #144's build shows.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.