pub struct ClientObjectiveaiMcpPluginMcpServer {
pub name: String,
pub arguments: Option<IndexMap<String, Option<String>>>,
}Expand description
One mcp_servers entry on a
ClientObjectiveaiMcpPluginEntry: the manifest-declared name
the agent wants exposed, plus optional arguments the CLI feeds
to the plugin alongside the name when bringing the server up. The
arguments map is sorted by key in prepare so two equivalent
declarations (same key/value pairs in any order) hash to the same
canonical form.
Fields§
§name: StringAuthor-chosen identifier — must match a name in the plugin
manifest’s mcp_servers list. The CLI feeds this as the
first positional arg when starting the plugin.
arguments: Option<IndexMap<String, Option<String>>>Optional key→value arguments forwarded to the plugin alongside
name. Some(value) ⇒ --key value on the spawned plugin’s
argv; None ⇒ a bare --key flag with no following token. The
plugin author decides how to interpret them. prepare
normalizes (Some("") → None), sorts the map by key, and
collapses an empty map to None so two equivalent declarations
canonicalize to byte-identical JSON.
Implementations§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for ClientObjectiveaiMcpPluginMcpServer
impl<'arbitrary> Arbitrary<'arbitrary> for ClientObjectiveaiMcpPluginMcpServer
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for ClientObjectiveaiMcpPluginMcpServer
impl Clone for ClientObjectiveaiMcpPluginMcpServer
Source§fn clone(&self) -> ClientObjectiveaiMcpPluginMcpServer
fn clone(&self) -> ClientObjectiveaiMcpPluginMcpServer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for ClientObjectiveaiMcpPluginMcpServer
impl<'de> Deserialize<'de> for ClientObjectiveaiMcpPluginMcpServer
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>,
impl Eq for ClientObjectiveaiMcpPluginMcpServer
Source§impl JsonSchema for ClientObjectiveaiMcpPluginMcpServer
impl JsonSchema for ClientObjectiveaiMcpPluginMcpServer
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Ord for ClientObjectiveaiMcpPluginMcpServer
impl Ord for ClientObjectiveaiMcpPluginMcpServer
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ClientObjectiveaiMcpPluginMcpServer
impl PartialEq for ClientObjectiveaiMcpPluginMcpServer
Source§fn eq(&self, other: &ClientObjectiveaiMcpPluginMcpServer) -> bool
fn eq(&self, other: &ClientObjectiveaiMcpPluginMcpServer) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ClientObjectiveaiMcpPluginMcpServer
impl PartialOrd for ClientObjectiveaiMcpPluginMcpServer
impl StructuralPartialEq for ClientObjectiveaiMcpPluginMcpServer
Auto Trait Implementations§
impl Freeze for ClientObjectiveaiMcpPluginMcpServer
impl RefUnwindSafe for ClientObjectiveaiMcpPluginMcpServer
impl Send for ClientObjectiveaiMcpPluginMcpServer
impl Sync for ClientObjectiveaiMcpPluginMcpServer
impl Unpin for ClientObjectiveaiMcpPluginMcpServer
impl UnsafeUnpin for ClientObjectiveaiMcpPluginMcpServer
impl UnwindSafe for ClientObjectiveaiMcpPluginMcpServer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more