pub struct McpAppsAdapter {
pub csp: Option<WidgetCSP>,
}Available on crate feature
mcp-apps and non-WebAssembly only.Expand description
Adapter for MCP Apps (SEP-1865 standard).
Transforms resources to use text/html;profile=mcp-app MIME type.
Widgets use the @modelcontextprotocol/ext-apps SDK for host communication.
Fields§
§csp: Option<WidgetCSP>Optional Content Security Policy.
Implementations§
Trait Implementations§
Source§impl Clone for McpAppsAdapter
impl Clone for McpAppsAdapter
Source§impl Debug for McpAppsAdapter
impl Debug for McpAppsAdapter
Source§impl Default for McpAppsAdapter
impl Default for McpAppsAdapter
Source§impl UIAdapter for McpAppsAdapter
impl UIAdapter for McpAppsAdapter
Source§fn mime_type(&self) -> ExtendedUIMimeType
fn mime_type(&self) -> ExtendedUIMimeType
Get the MIME type this adapter produces.
Source§fn transform(&self, uri: &str, name: &str, html: &str) -> TransformedResource
fn transform(&self, uri: &str, name: &str, html: &str) -> TransformedResource
Transform HTML content for this host platform. Read more
Source§fn required_csp(&self) -> Option<WidgetCSP>
fn required_csp(&self) -> Option<WidgetCSP>
Get CSP headers required by this platform.
Auto Trait Implementations§
impl Freeze for McpAppsAdapter
impl RefUnwindSafe for McpAppsAdapter
impl Send for McpAppsAdapter
impl Sync for McpAppsAdapter
impl Unpin for McpAppsAdapter
impl UnsafeUnpin for McpAppsAdapter
impl UnwindSafe for McpAppsAdapter
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