getAllWidgets method

List<McpMetadataKey> getAllWidgets()

Lists all registered widget metadata.

Used by the HTTP server for the /mcp/context and /widgets endpoints.

Implementation

List<McpMetadataKey> getAllWidgets() =>
    _widgets.values.map((e) => e.metadata).toList();