pub struct NativeMcpDescriptor { /* private fields */ }Expand description
Exact server-derived connection material for the allowlisted native-session MCP server.
The credential is deliberately opaque to Warble. It is emitted only into the vendor discovery mechanism that needs it: Claude’s HTTP header or Codex’s dedicated credential environment variable. It never appears in the launch spec, ownership record, agent Markdown, argv, or a prompt. The host resolves this credential to live session/vendor/project/revision/capability state when the native client connects.
Implementations§
Source§impl NativeMcpDescriptor
impl NativeMcpDescriptor
pub fn from_file(path: &Path) -> Result<Self, DispatchError>
pub fn claude_discovery_config(&self) -> Result<String, DispatchError>
pub fn codex_discovery_config( &self, enable_setup_recovery_tool: bool, enable_dashboard_save_tool: bool, enable_persist_answer_tool: bool, ) -> String
Trait Implementations§
Source§impl Clone for NativeMcpDescriptor
impl Clone for NativeMcpDescriptor
Source§impl Debug for NativeMcpDescriptor
impl Debug for NativeMcpDescriptor
Source§impl<'de> Deserialize<'de> for NativeMcpDescriptor
impl<'de> Deserialize<'de> for NativeMcpDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NativeMcpDescriptor
impl RefUnwindSafe for NativeMcpDescriptor
impl Send for NativeMcpDescriptor
impl Sync for NativeMcpDescriptor
impl Unpin for NativeMcpDescriptor
impl UnsafeUnpin for NativeMcpDescriptor
impl UnwindSafe for NativeMcpDescriptor
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