pub struct McpApp {
pub plugin: String,
pub server: String,
pub tool: String,
pub uri: String,
pub title: String,
pub input: Value,
pub result: Value,
pub tool_def: Value,
}Expand description
An MCP App on a tool’s step (a crate::View of kind [McpApp::KIND]): the tool
declared _meta.ui.resourceUri, so clients render that resource with the call’s input
and result.
Fields§
§plugin: String§server: String§tool: StringThe server’s name for the tool.
uri: StringThe ui:// resource.
title: StringWhat the step is called (the tool’s title).
input: ValueThe call’s arguments.
result: ValueThe CallToolResult (content, structuredContent, isError), possibly shortened.
tool_def: ValueThe tool’s definition as the server listed it (for hostContext.toolInfo).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpApp
impl<'de> Deserialize<'de> for McpApp
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for McpApp
Auto Trait Implementations§
impl Forget for McpApp
impl Freeze for McpAppwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for McpApp
impl RefUnwindSafe for McpApp
impl Send for McpApp
impl Sync for McpApp
impl Unpin for McpApp
impl UnsafeUnpin for McpAppwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for McpApp
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
Mutably borrows from an owned value. Read more