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>
Sourcepub fn pi_discovery_config(&self) -> Result<String, DispatchError>
pub fn pi_discovery_config(&self) -> Result<String, DispatchError>
pi’s mcp.json for the agent directory. The credential is referenced through pi’s own
${VAR} interpolation of the dedicated environment variable, so the file carries the URL
and the variable name only — the same posture as Codex’s bearer_token_env_var.
exposure: "direct" makes pi declare the server’s tools to the model as ordinary tools;
the contract also leaves pi’s code-execution mode off, so no MCP tool reaches the model
through a generated script instead of a declared tool call.