Skip to content

View state persistence #417

@idosal

Description

@idosal

Views may need to persist private state locally.

Currently, the protocol doesn't provide a native mechanism for it. Many apps opt for browser API patterns (e.g., localStorage). This solution is brittle because it assumes these APIs are available and consistent across environments, even though their availability depends on unspecified runtime constraints (e.g., user agent, origin management).

MCP Apps should either document the runtime constraints or define a reliable API.

Related to #213

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions