pub struct Caps {Show 16 fields
pub transports: TransportSet,
pub env_ref: Option<EnvRefSyntax>,
pub env_ref_fields: FieldSet,
pub command_ref: Option<CommandRef>,
pub native_disable: Option<DisableMech>,
pub project_disable: Option<ProjectDisable>,
pub project_semantics: ProjectSemantics,
pub precedence: &'static [Source],
pub compat_reads: &'static [CompatSource],
pub trust_gate: Option<TrustGate>,
pub rewrites_file_at_runtime: bool,
pub restart_required: bool,
pub tool_filter: Option<ToolFilterMech>,
pub windows_shell_shim: bool,
pub timeouts: &'static [TimeoutField],
pub passthrough_allowlist: &'static [&'static str],
}Expand description
A client’s MCP capabilities (SPEC 7.1, table 7.4).
Fields§
§transports: TransportSet§env_ref: Option<EnvRefSyntax>§env_ref_fields: FieldSetFields the client expands env_ref references in.
command_ref: Option<CommandRef>§native_disable: Option<DisableMech>§project_disable: Option<ProjectDisable>§project_semantics: ProjectSemantics§precedence: &'static [Source]Layers the client loads, highest precedence first.
compat_reads: &'static [CompatSource]§trust_gate: Option<TrustGate>§rewrites_file_at_runtime: boolThe client rewrites its file while running (~/.claude.json): writes
need a compare-and-swap check and a retry.
restart_required: boolThe client reads its file only at launch.
tool_filter: Option<ToolFilterMech>§windows_shell_shim: boolThe client spawns stdio servers without a shell, so Windows .cmd
shims (npx) run through cmd /c (SPEC 5.2).
timeouts: &'static [TimeoutField]Native timeout fields (all passthrough), with their units.
passthrough_allowlist: &'static [&'static str]Native fields a server may pass through in [client.<id>].
Trait Implementations§
Auto Trait Implementations§
impl Forget for Caps
impl Freeze for Capswhere
&'static [&'static str]: Freeze,
&'static [Source]: Freeze,
&'static [CompatSource]: Freeze,
&'static str: Freeze,
&'static [TimeoutField]: Freeze,
impl Move for Caps
impl RefUnwindSafe for Caps
impl Send for Capswhere
&'static [&'static str]: Send,
&'static [Source]: Send,
&'static [CompatSource]: Send,
&'static str: Send,
&'static [TimeoutField]: Send,
impl Sync for Caps
impl Unpin for Capswhere
&'static [&'static str]: Unpin,
&'static [Source]: Unpin,
&'static [CompatSource]: Unpin,
&'static str: Unpin,
&'static [TimeoutField]: Unpin,
impl UnsafeUnpin for Capswhere
&'static [&'static str]: UnsafeUnpin,
&'static [Source]: UnsafeUnpin,
&'static [CompatSource]: UnsafeUnpin,
&'static str: UnsafeUnpin,
&'static [TimeoutField]: UnsafeUnpin,
impl UnwindSafe for Capswhere
&'static [&'static str]: UnwindSafe,
&'static [Source]: UnwindSafe,
&'static [CompatSource]: UnwindSafe,
&'static str: UnwindSafe,
&'static [TimeoutField]: UnwindSafe,
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