#[non_exhaustive]pub struct McpServerAcp {
pub name: String,
pub id: McpServerAcpId,
pub meta: Option<Map<String, Value>>,
}Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
ACP transport configuration for MCP.
The MCP server is provided by an ACP component and communicates over the ACP channel
using mcp/connect, mcp/message, and mcp/disconnect.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringHuman-readable name identifying this MCP server.
id: McpServerAcpIdUnique identifier for this MCP server, generated by the component providing it.
Providers MUST NOT reuse an ID for multiple ACP-transport MCP servers that are visible on the same ACP connection.
meta: Option<Map<String, Value>>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl McpServerAcp
impl McpServerAcp
Sourcepub fn new(
name: impl Into<String>,
id: impl Into<McpServerAcpId>,
) -> McpServerAcp
Available on crate feature unstable_mcp_over_acp only.
pub fn new( name: impl Into<String>, id: impl Into<McpServerAcpId>, ) -> McpServerAcp
unstable_mcp_over_acp only.Builds McpServerAcp with the required fields set; optional fields start unset or empty.
Sourcepub fn meta(self, meta: impl IntoOption<Map<String, Value>>) -> McpServerAcp
Available on crate feature unstable_mcp_over_acp only.
pub fn meta(self, meta: impl IntoOption<Map<String, Value>>) -> McpServerAcp
unstable_mcp_over_acp only.The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for McpServerAcp
impl Clone for McpServerAcp
Source§fn clone(&self) -> McpServerAcp
fn clone(&self) -> McpServerAcp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for McpServerAcp
impl Debug for McpServerAcp
Source§impl<'de> Deserialize<'de> for McpServerAcp
impl<'de> Deserialize<'de> for McpServerAcp
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpServerAcp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpServerAcp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for McpServerAcp
Source§impl IntoV2 for McpServerAcp
Available on crate feature unstable_mcp_over_acp only.
impl IntoV2 for McpServerAcp
unstable_mcp_over_acp only.Source§type Output = McpServerAcp
type Output = McpServerAcp
Source§fn into_v2(
self,
) -> Result<<McpServerAcp as IntoV2>::Output, ProtocolConversionError>
fn into_v2( self, ) -> Result<<McpServerAcp as IntoV2>::Output, ProtocolConversionError>
Source§impl JsonSchema for McpServerAcp
impl JsonSchema for McpServerAcp
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 PartialEq for McpServerAcp
impl PartialEq for McpServerAcp
Source§fn eq(&self, other: &McpServerAcp) -> bool
fn eq(&self, other: &McpServerAcp) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for McpServerAcp
impl Serialize for McpServerAcp
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for McpServerAcp
Auto Trait Implementations§
impl Freeze for McpServerAcp
impl RefUnwindSafe for McpServerAcp
impl Send for McpServerAcp
impl Sync for McpServerAcp
impl Unpin for McpServerAcp
impl UnsafeUnpin for McpServerAcp
impl UnwindSafe for McpServerAcp
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,
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.