Skip to content

Commit 4ba7089

Browse files
committed
docs
1 parent 1148634 commit 4ba7089

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

docs/protocol.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -168,21 +168,24 @@ _Notification:_
168168
interface InitializedParams {}
169169
```
170170

171-
#### Sequence diagram: Initialize
172-
173-
The following timeline illustrates the typical initialize handshake between client and server, including the config update sent after initialization is acknowledged by the client.
174-
175-
```mermaid
176-
sequenceDiagram
177-
autonumber
178-
participant C as Client / Editor
179-
participant S as ECA Server
180-
C->>S: initialize (request)
181-
S-->>C: initialize (response)
182-
C->>S: initialized (notification)
183-
S-->>C: config/updated (notification)
184-
S-->>C: tool/serverUpdated (notification)
185-
```
171+
=== "Initialization flow"
172+
173+
The following timeline illustrates the typical initialize handshake between client and server, including the actions done by server after initializing.
174+
175+
```mermaid
176+
sequenceDiagram
177+
autonumber
178+
participant C as Client / Editor
179+
participant S as ECA Server
180+
C->>+S: initialize (request)
181+
S-->>-C: initialize (response)
182+
C->>+S: initialized (notification)
183+
Note right of S: Sync models: Request models.dev <br/>for models capabilities
184+
Note right of S: Tell which models/behaviors are <br/>avaialble and their defaults.
185+
S->>C: config/updated (notification)
186+
Note right of S: Init MCP servers
187+
S->>-C: tool/serverUpdated (notification)
188+
```
186189

187190
### Shutdown (↩️)
188191

0 commit comments

Comments
 (0)