pub struct McpServer {
pub name: String,
pub endpoint: String,
pub ns: Option<String>,
pub headers: BTreeMap<String, String>,
pub tags: BTreeMap<String, Vec<String>>,
pub aauth: Option<bool>,
pub oauth: Option<McpOauth>,
pub auth: Option<Auth>,
pub timeout: Option<Dur>,
}Fields§
§name: String§endpoint: String§ns: Option<String>§headers: BTreeMap<String, String>§aauth: Option<bool>§oauth: Option<McpOauth>§auth: Option<Auth>A unified credential provider (RFC 0031 §5) — static / oauth2 (device
login, refresh). Interactive providers obtain their token via
agentd login mcp:<name>; the daemon reads the cached token. Coexists
with the legacy oauth shortcut (client-credentials).
timeout: Option<Dur>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpServer
impl<'de> Deserialize<'de> for McpServer
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
impl StructuralPartialEq for McpServer
Auto Trait Implementations§
impl Freeze for McpServer
impl RefUnwindSafe for McpServer
impl Send for McpServer
impl Sync for McpServer
impl Unpin for McpServer
impl UnsafeUnpin for McpServer
impl UnwindSafe for McpServer
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