pub struct MCPServer {Show 14 fields
pub id: String,
pub name: String,
pub transport: MCPTransport,
pub command: Option<String>,
pub args: Option<Vec<String>>,
pub url: Option<String>,
pub api_key_ref: Option<String>,
pub env_count: Option<i64>,
pub egress_allowlist: Option<Vec<Map<String, Value>>>,
pub enabled: bool,
pub capabilities: Option<Vec<String>>,
pub status: Option<MCPServerStatus>,
pub last_synced: Option<String>,
pub tenant_id: Option<String>,
}Expand description
An MCP server as returned. env and env_encrypted are stripped; only the COUNT is
disclosed.
Fields§
§id: String§name: String§transport: MCPTransport§command: Option<String>stdio only.
args: Option<Vec<String>>§url: Option<String>http / streamable_http only.
api_key_ref: Option<String>§env_count: Option<i64>How many env vars are set. The values are never returned.
egress_allowlist: Option<Vec<Map<String, Value>>>§enabled: bool§capabilities: Option<Vec<String>>Tool names and resource URIs discovered from the server.
status: Option<MCPServerStatus>§last_synced: Option<String>§tenant_id: Option<String>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