pub struct McpServer {
pub name: String,
pub url: String,
pub bearer_token_env: Option<String>,
}Expand description
An MCP server (streamable HTTP) the agent may use during a run.
Fields§
§name: StringServer name, used in tool names (mcp__<name>__…); ASCII letters, digits, _ and -.
url: StringStreamable HTTP endpoint.
bearer_token_env: Option<String>Environment variable holding a bearer token. Put the token itself in RunRequest::env
so it never appears in a command line or a file.
Trait Implementations§
impl Eq for McpServer
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