pub struct CodexToml;Expand description
The [mcp_servers.<name>] table: command, args, env, env_vars, cwd or
url, bearer_token_env_var, http_headers, env_http_headers, plus
enabled, enabled_tools, disabled_tools and the timeouts. Names
are [A-Za-z0-9_.-]+ (gate V1, CX-6).
Trait Implementations§
Source§impl EntryMapper for CodexToml
impl EntryMapper for CodexToml
fn to_native( &self, server: &RenderedServer, cx: &WriteCx<'_>, ) -> Result<NativeValue, MapError>
Source§fn from_native(
&self,
key: &str,
value: &NativeValue,
) -> Result<ServerDef, MapError>
fn from_native( &self, key: &str, value: &NativeValue, ) -> Result<ServerDef, MapError>
Reads the entry
key back. Named as in SPEC 7.1, hence the lint.Source§fn canonical(&self, value: &NativeValue) -> Canonical
fn canonical(&self, value: &NativeValue) -> Canonical
Sorted, client defaults dropped; used for equality and hashing.
Source§fn skipped_by_client(&self, _value: &NativeValue) -> Option<&'static str>
fn skipped_by_client(&self, _value: &NativeValue) -> Option<&'static str>
Why the client itself does not load this entry, when it does not
(gate V1 CC-5: Claude Code skips a
url entry without type). Such
an entry still reads back, so import can take it, but importing it
starts a server the client never ran.Auto Trait Implementations§
impl Forget for CodexToml
impl Freeze for CodexToml
impl Move for CodexToml
impl RefUnwindSafe for CodexToml
impl Send for CodexToml
impl Sync for CodexToml
impl Unpin for CodexToml
impl UnsafeUnpin for CodexToml
impl UnwindSafe for CodexToml
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