scope_denied
Outside what any grant allows. The most common refusal.
Refused by policy MCP sends it with isError: true.
What it means
The most common refusal. No live grant covers this request: no grant for the credential, the intent is not on it, the host, path, method, command or argv is outside it, the session's project is outside the grant's, or the request itself is malformed for the intent. The answer does not say which, so it cannot be used to probe grants.
What the agent should do
Call request_access for the credential and the intent. A person must approve it. If they say no, do not ask again: stop and tell them what you cannot do.
For an intent that request_access cannot ask for (cli_login, sign_in, fill_totp and the rest): Asking for this from the agent is not built yet. Stop and tell the person, who can grant it with bpw grant add.
What the person should do
If the agent should have this access, approve its request or add a grant with bpw grant add. The daemon's log says what was refused.
Which intents return it
Status: change_password is planned, not built yet; rotate is partly built; capture_secret is planned, not built yet.
request_accessrun_withhttp_requestcli_loginsign_infill_totpchange_password(planned, not built yet)rotate(partly built)capture_secret(planned, not built yet)store_secret
Status: change_password is planned, not built yet; rotate is partly built; capture_secret is planned, not built yet.
How it looks
{
"structuredContent": {
"outcome": "scope_denied"
},
"isError": true
}
Intent-specific fields come alongside it when the intent has them.
Related outcomes
grant_expired: The grant has endednot_rotated: The rotation ended without a changedisclosure_not_granted: The grant allows only sealed deliveryminting_blocked: The endpoint creates a credentialbudget_exhausted: The grant use budget is spentrate_limited: The grant rate limit is spent- All outcomes and Typed outcomes and errors