mcp-use TypeScript API
    Preparing search index...

    Type Alias ResolvedViewResource

    Normalized HTML, CSP, permissions, and MIME metadata for a rendered view.

    type ResolvedViewResource = {
        csp: McpUiResourceCsp | undefined;
        declaredCsp: McpUiResourceCsp | undefined;
        html: string;
        mimeType: string | undefined;
        mimeTypeValid: boolean;
        mimeTypeWarning: string | null;
        permissions: McpUiResourcePermissions | undefined;
        prefersBorder: boolean;
    }
    Index
    csp: McpUiResourceCsp | undefined

    CSP enforced by the host, if any.

    declaredCsp: McpUiResourceCsp | undefined

    CSP declared by the resource before host policy is applied.

    html: string

    HTML document rendered in the sandbox.

    mimeType: string | undefined

    MIME type reported by the resource.

    mimeTypeValid: boolean

    Whether the MIME type is the MCP App resource media type.

    mimeTypeWarning: string | null

    MIME validation warning, or null for a valid resource.

    permissions: McpUiResourcePermissions | undefined

    Browser permissions requested by the resource.

    prefersBorder: boolean

    Whether the app prefers a visible host border.