#[non_exhaustive]pub struct MessageMcpNotification {
pub server_id: McpServerAcpId,
pub request_id: McpRequestId,
pub method: String,
pub params: Option<Map<String, Value>>,
pub meta: Option<Map<String, Value>>,
}unstable_mcp_over_acp only.Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Notification parameters for mcp/message.
Sent by the provider to the consumer for an active request (including
subscription acknowledgements and updates); the outer envelope has no id.
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.server_id: McpServerAcpIdThe declared ACP MCP server handling the associated request.
request_id: McpRequestIdThe identifier of the active inner MCP request.
method: StringThe inner MCP method name.
params: Option<Map<String, Value>>Optional inner MCP params.
If omitted or set to null, the inner MCP message has no params.
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 MessageMcpNotification
impl MessageMcpNotification
Sourcepub fn new(
server_id: impl Into<McpServerAcpId>,
request_id: impl Into<McpRequestId>,
method: impl Into<String>,
) -> MessageMcpNotification
pub fn new( server_id: impl Into<McpServerAcpId>, request_id: impl Into<McpRequestId>, method: impl Into<String>, ) -> MessageMcpNotification
Builds MessageMcpNotification with the required notification fields set; optional fields start unset or empty.
Sourcepub fn params(
self,
params: impl IntoOption<Map<String, Value>>,
) -> MessageMcpNotification
pub fn params( self, params: impl IntoOption<Map<String, Value>>, ) -> MessageMcpNotification
Optional inner MCP params.
If omitted or set to null, the inner MCP message has no params.
Sourcepub fn meta(
self,
meta: impl IntoOption<Map<String, Value>>,
) -> MessageMcpNotification
pub fn meta( self, meta: impl IntoOption<Map<String, Value>>, ) -> MessageMcpNotification
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 MessageMcpNotification
impl Clone for MessageMcpNotification
Source§fn clone(&self) -> MessageMcpNotification
fn clone(&self) -> MessageMcpNotification
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 MessageMcpNotification
impl Debug for MessageMcpNotification
Source§impl<'de> Deserialize<'de> for MessageMcpNotification
impl<'de> Deserialize<'de> for MessageMcpNotification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageMcpNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageMcpNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonRpcMessage for MessageMcpNotification
impl JsonRpcMessage for MessageMcpNotification
Source§fn matches_method(method: &str) -> bool
fn matches_method(method: &str) -> bool
Source§fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
impl JsonRpcNotification for MessageMcpNotification
Source§impl JsonSchema for MessageMcpNotification
impl JsonSchema for MessageMcpNotification
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 more