#[non_exhaustive]pub struct McpServerAcp {
pub name: String,
pub id: McpServerAcpId,
pub meta: Option<Map<String, Value>>,
}unstable_protocol_v2 only.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
pub fn new( name: impl Into<String>, id: impl Into<McpServerAcpId>, ) -> McpServerAcp
unstable_mcp_over_acp only.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 IntoV1 for McpServerAcp
Available on crate feature unstable_mcp_over_acp only.
impl IntoV1 for McpServerAcp
unstable_mcp_over_acp only.Source§type Output = McpServerAcp
type Output = McpServerAcp
Source§fn into_v1(
self,
) -> Result<<McpServerAcp as IntoV1>::Output, ProtocolConversionError>
fn into_v1( self, ) -> Result<<McpServerAcp as IntoV1>::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 ==.