pub struct McpServerRef {
pub name: String,
pub env_prefix: String,
}Expand description
An MCP server an assistant Run connects to, found in its environment: the URL in
<env_prefix>_URL and the bearer token in <env_prefix>_TOKEN, so the token never
appears in a command line.
Fields§
§name: StringThe name the harness knows the server by (moneypenny); its tools are
mcp__<name>__<tool> in Claude Code.
env_prefix: StringThe prefix of the two environment variables (AI6_MONEYPENNY_MCP).
Trait Implementations§
Source§impl Clone for McpServerRef
impl Clone for McpServerRef
Source§impl Debug for McpServerRef
impl Debug for McpServerRef
Source§impl<'de> Deserialize<'de> for McpServerRef
impl<'de> Deserialize<'de> for McpServerRef
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 Eq for McpServerRef
Source§impl FromValue for McpServerRef
impl FromValue for McpServerRef
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
The kinds
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Performs the conversion. Read more
Source§impl FromWalk for McpServerRef
impl FromWalk for McpServerRef
Source§impl MapRead for McpServerRef
impl MapRead for McpServerRef
Source§impl PartialEq for McpServerRef
impl PartialEq for McpServerRef
Source§impl Schema for McpServerRef
impl Schema for McpServerRef
Source§impl Serialize for McpServerRef
impl Serialize for McpServerRef
impl StructuralPartialEq for McpServerRef
Source§impl ToValue for McpServerRef
impl ToValue for McpServerRef
Auto Trait Implementations§
impl Freeze for McpServerRef
impl RefUnwindSafe for McpServerRef
impl Send for McpServerRef
impl Sync for McpServerRef
impl Unpin for McpServerRef
impl UnsafeUnpin for McpServerRef
impl UnwindSafe for McpServerRef
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.