spec: V2 Storage Specification - Zustand Proposal#1016
Open
olaservo wants to merge 5 commits intomodelcontextprotocol:v2/mainfrom
Open
spec: V2 Storage Specification - Zustand Proposal#1016olaservo wants to merge 5 commits intomodelcontextprotocol:v2/mainfrom
olaservo wants to merge 5 commits intomodelcontextprotocol:v2/mainfrom
Conversation
Closes modelcontextprotocol#983 Proposes a hybrid state management architecture: - Zustand for UI preferences, logs display, playground state, testing profiles - Keep useReducer + Context for connection/execution state machines - Repository interfaces remain storage-agnostic for proxy API integration Includes detailed analysis of storage options (Zustand, Redux, Jotai, Context+useReducer, TanStack Query, Valtio) with pros/cons comparison. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove ConnectionService/ExecutionService from core interfaces (connection/execution state managed by React Context per spec text) - Remove Memory implementations from core package (repository interfaces kept as proxy API contracts) - Change "Handler interfaces" to "Handler functions" Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Jotai uses provider-less mode by default since v2. Provider is only needed for SSR, subtree isolation, or custom initial values. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace toolResponseHistory array with single lastToolResult field. History is the source of truth for execution records - no need to duplicate in UI state. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #983
This PR adds a comprehensive storage specification for Inspector V2, proposing Zustand for client-side state management.
Key Recommendations
Options Analyzed
Store Structure
Why Zustand?
zustand/vanilla) supports CLI/TUI reuseTest plan
Generated with Claude Code