pub enum PrivacyProfile {
Observe,
Test,
FullControl,
}Expand description
Privacy profile controlling which MCP tools and actions are permitted.
The three tiers form a strict hierarchy: Observe ⊂ Test ⊂ FullControl.
Each higher tier inherits all permissions from the tier below and adds more.
| Profile | Can read | Can interact | Can mutate | Can eval/screenshot |
|---|---|---|---|---|
Observe | Yes | No | No | No |
Test | Yes | Yes | Storage writes | No |
FullControl | Yes | Yes | Yes | Yes |
Variants§
Observe
Read-only observation. Snapshots, logs, registry, accessibility, performance, window state — but no clicks, no input, no eval, no screenshots, no mutations.
Test
Observation + UI interactions + storage writes + recording. Suitable for
automated testing. Eval, screenshot, CSS injection, navigation, and
invoke_command (unless allowlisted) remain blocked.
FullControl
Everything permitted. No restrictions. This is the default.
Trait Implementations§
Source§impl Clone for PrivacyProfile
impl Clone for PrivacyProfile
Source§fn clone(&self) -> PrivacyProfile
fn clone(&self) -> PrivacyProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrivacyProfile
impl Debug for PrivacyProfile
Source§impl Default for PrivacyProfile
impl Default for PrivacyProfile
Source§fn default() -> PrivacyProfile
fn default() -> PrivacyProfile
Returns the “default value” for a type. Read more
Source§impl Display for PrivacyProfile
impl Display for PrivacyProfile
Source§impl PartialEq for PrivacyProfile
impl PartialEq for PrivacyProfile
Source§fn eq(&self, other: &PrivacyProfile) -> bool
fn eq(&self, other: &PrivacyProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PrivacyProfile
impl Eq for PrivacyProfile
impl StructuralPartialEq for PrivacyProfile
Auto Trait Implementations§
impl Freeze for PrivacyProfile
impl RefUnwindSafe for PrivacyProfile
impl Send for PrivacyProfile
impl Sync for PrivacyProfile
impl Unpin for PrivacyProfile
impl UnsafeUnpin for PrivacyProfile
impl UnwindSafe for PrivacyProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more