Skip to content

[mcp] get/set AI budget limits via MCP — account ceilings, per-tree defaults, Loop iteration cap #476

Description

@serge-ivo

Depends on the config resolver (backend ticket).

Scope

Expose the budget config through MCP so it can be read and set without the UI:

  • get_budget_limits — returns the effective ceilings (token + charged), per-tree defaults, Loop cap, current rolling-24h consumption, and distance-to-limit.
  • set_budget_limits — patch semantics; clamped to the backend max; owner-scoped (and an admin variant for the platform default).

Follow the existing MCP tool conventions (scopes: this is a write; no dry_run needed for a settings write, but validate + echo the resolved effective values). Keep it out of any read-only mode gate appropriately.

Why

Parity with the UI — the user asked for both. Also lets an operator raise a ceiling from an MCP client mid-incident instead of editing a constant and redeploying.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendBackend / Worker / API workdeferred-by-#68Parked under the focus bet (#68) — picking this up is a deliberate overrideenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions