pub struct ServerEntry {
pub command: Option<String>,
pub args: Vec<String>,
pub env: Option<HashMap<String, String>>,
pub cwd: Option<String>,
pub lifecycle: Option<String>,
pub idle_timeout: Option<u64>,
pub direct_tools: Option<Value>,
pub exclude_tools: Vec<String>,
pub url: Option<String>,
pub headers: Option<HashMap<String, String>>,
}Expand description
A single MCP server definition.
Fields§
§command: Option<String>Command to spawn (e.g. “npx”, “node”). Optional for URL-based servers.
args: Vec<String>§env: Option<HashMap<String, String>>§cwd: Option<String>Working directory for the server process.
lifecycle: Option<String>Lifecycle mode: “keep-alive” | “lazy” | “eager”. Default: “lazy”
idle_timeout: Option<u64>Idle timeout in minutes (overrides global setting for this server).
direct_tools: Option<Value>Enable direct tools for this server (register as individual LLM tools). true = all tools, string[] = only named tools, false = proxy-only.
exclude_tools: Vec<String>Exclude specific MCP tools by original or prefixed name.
url: Option<String>For HTTP-based servers: the URL endpoint.
headers: Option<HashMap<String, String>>HTTP headers for URL-based servers.
Trait Implementations§
Source§impl Clone for ServerEntry
impl Clone for ServerEntry
Source§fn clone(&self) -> ServerEntry
fn clone(&self) -> ServerEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerEntry
impl Debug for ServerEntry
Source§impl<'de> Deserialize<'de> for ServerEntry
impl<'de> Deserialize<'de> for ServerEntry
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 ServerEntry
impl RefUnwindSafe for ServerEntry
impl Send for ServerEntry
impl Sync for ServerEntry
impl Unpin for ServerEntry
impl UnsafeUnpin for ServerEntry
impl UnwindSafe for ServerEntry
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