pub struct SessionMcpServerStopRequestedAction {
pub id: String,
}Expand description
Requests that the host stop an existing {@link McpServerCustomization}.
Locates the target entry by id, searching both the top-level
customization list and the children array of every container. The
reducer optimistically moves the server to
{@link McpServerStatus.Stopped | stopped} and clears any previous
{@link McpServerCustomization.channel | channel}. Replacing an
{@link McpServerStatus.AuthRequired | authRequired} lifecycle state with
stopped unblocks the server from waiting on authentication. If the host
also raised session-level input-needed state solely for that MCP server, it
SHOULD remove that input-needed entry when accepting the stop.
The host remains authoritative and MAY reject the action or follow with
{@link SessionMcpServerStateChangedAction | session/mcpServerStateChanged}
if the final lifecycle state differs. Is a no-op when no matching
McpServerCustomization is found.
Fields§
§id: StringThe id of the {@link McpServerCustomization} to stop.
Trait Implementations§
Source§impl Clone for SessionMcpServerStopRequestedAction
impl Clone for SessionMcpServerStopRequestedAction
Source§fn clone(&self) -> SessionMcpServerStopRequestedAction
fn clone(&self) -> SessionMcpServerStopRequestedAction
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 SessionMcpServerStopRequestedAction
impl<'de> Deserialize<'de> for SessionMcpServerStopRequestedAction
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>,
Source§impl PartialEq for SessionMcpServerStopRequestedAction
impl PartialEq for SessionMcpServerStopRequestedAction
Source§fn eq(&self, other: &SessionMcpServerStopRequestedAction) -> bool
fn eq(&self, other: &SessionMcpServerStopRequestedAction) -> bool
self and other values to be equal, and is used by ==.