pub struct McpServer {
pub name: String,
pub url: String,
pub bearer_token_env: String,
}Expand description
An MCP server the agent may call during a run.
Fields§
§name: StringServer name as the agent sees it (kb, bot).
url: StringStreamable HTTP endpoint.
bearer_token_env: StringName of the environment variable holding the bearer token. The token itself is in
AgentTurn::env, never in a command line or config 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