docs: add tentative Phase 3 final architecture diagrams - #90
Open
lucarlig wants to merge 3 commits into
Open
Conversation
Signed-off-by: lucarlig <luca.carlig@ibm.com>
Signed-off-by: lucarlig <luca.carlig@ibm.com>
Signed-off-by: lucarlig <luca.carlig@ibm.com>
lucarlig
marked this pull request as ready for review
August 13, 2026 10:56
Contributor
Author
Phase 3 Final Architecture
1. Create a Virtual Server and Select CapabilitiessequenceDiagram
autonumber
actor User
participant UI as Admin UI or API
participant CP as Control Plane
participant DB as Control Plane DB
participant MCP1 as MCP Server 1
participant MCP2 as MCP Server 2
participant Redis
participant DP as Rust Dataplane
User->>UI: Create virtual server
UI->>CP: Submit virtual server
CP->>DB: Store virtual server
User->>UI: Assign MCP Server 1 and MCP Server 2
UI->>CP: Update backend associations
CP->>DB: Store backend associations
par Discover MCP Server 1
CP->>MCP1: server/discover and list methods
MCP1-->>CP: Capabilities and catalog
and Discover MCP Server 2
CP->>MCP2: server/discover and list methods
MCP2-->>CP: Capabilities and catalog
end
CP->>DB: Reconcile normalized catalog
User->>UI: View available tools
UI->>CP: Request reconciled catalog
CP->>DB: Read catalog
DB-->>CP: inc, sum, dec, diff
CP-->>UI: Display available tools
User->>UI: Allow inc and sum
UI->>CP: Update virtual server policy
CP->>DB: Store selected tools and policy
CP->>CP: Compile user runtime snapshot
CP->>Redis: Atomically publish revision N
Redis-->>DP: Revision notification
DP->>Redis: Load revision N
DP->>DP: Replace local cache atomically
2. Discover the Server and List ToolssequenceDiagram
autonumber
participant Client as Modern MCP Client
participant Ingress
participant DP as Rust Dataplane
participant Cache as Local Cache
participant Redis
Client->>Ingress: server/discover
Ingress->>DP: Forward modern MCP request
DP->>DP: Validate authentication and metadata
DP->>Cache: Get virtual server snapshot
alt Snapshot available
Cache-->>DP: Snapshot revision N
else Snapshot missing or expired
Cache-->>DP: Cache miss
DP->>Redis: Read compiled snapshot
Redis-->>DP: Snapshot revision N
DP->>Cache: Store revision N
end
DP-->>Client: Server identity and capabilities
Client->>Ingress: tools/list
Ingress->>DP: Forward modern MCP request
DP->>Cache: Read visible tools
Cache-->>DP: inc and sum
DP-->>Client: tools/list result
Note over DP,Redis: Redis distributes compiled state
Note over DP: No live upstream call for discovery or lists
3. Call a ToolsequenceDiagram
autonumber
participant Client as Modern MCP Client
participant Ingress
participant DP as Rust Dataplane
participant Cache as Local Cache
participant CPEX as Policy and CPEX
participant MCP as Selected MCP Server
Client->>Ingress: tools/call name inc
Ingress->>DP: Forward modern MCP request
DP->>DP: Validate authentication and metadata
DP->>Cache: Resolve exposed tool inc
Cache-->>DP: Backend MCP, upstream name inc, allowed
DP->>CPEX: Run pre-call policy
CPEX-->>DP: Allow or modify request
DP->>MCP: tools/call name inc
MCP-->>DP: Tool result
DP->>CPEX: Run post-call policy
CPEX-->>DP: Allow or modify result
DP-->>Client: Return tool result directly
Note over DP,MCP: Exactly one upstream is called
Note over DP: Control Plane, DB and Redis are not on this result path
4. Reconcile an Upstream Catalog ChangesequenceDiagram
autonumber
participant MCP as MCP Server
participant CP as Control Plane Reconciler
participant DB as Control Plane DB
participant Redis
participant DP as Rust Dataplane
participant Client as Subscribed MCP Client
MCP-->>CP: Tools list changed
CP->>MCP: Refresh discovery and tools list
MCP-->>CP: Updated catalog
CP->>DB: Reconcile catalog changes
CP->>CP: Recompile affected snapshots
CP->>Redis: Atomically publish revision N plus 1
Redis-->>DP: Revision notification
DP->>Redis: Load revision N plus 1
DP->>DP: Replace local cache atomically
opt Client subscribed to tool list changes
DP-->>Client: Tools list changed notification
end
Client->>DP: tools/list
DP-->>Client: Updated list from local snapshot
|
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
Impact
Documentation only. The diagrams are a review proposal, not an approved implementation commitment.
Validation