MCP Apps
    Preparing search index...

    Type Alias AppOptions

    AppOptions: ProtocolOptions & { autoResize?: boolean; strict?: boolean }

    Options for configuring App behavior.

    Extends ProtocolOptions from the MCP SDK with App-specific configuration.

    Type Declaration

    • OptionalautoResize?: boolean

      Automatically report size changes to the host using ResizeObserver.

      When enabled, the App monitors document.body and document.documentElement for size changes and automatically sends ui/notifications/size-changed notifications to the host.

      true
      
    • Optionalstrict?: boolean

      Throw on detected misuse instead of logging a console error.

      Currently this affects calling host-bound methods (e.g. callServerTool, sendMessage) before connect has completed the ui/initialize handshake. With strict: false (default) a console.error is emitted; with strict: true an Error is thrown.

      Throwing will become the default in a future release.

      false
      

    ProtocolOptions from @modelcontextprotocol/sdk for inherited options