diff --git a/README.md b/README.md index 7900110..8a5d664 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,7 @@ Start a change in its own Git worktree, close the tab and come back when the age Your browser encrypts each message before it reaches the relay. The host agent decrypts it on your machine, runs the coding CLI there and encrypts the reply. The machine keeps the session history in a local SQLite database. The CLI still communicates with its model provider as usual. -```mermaid -flowchart LR - accTitle: The encrypted session channel - accDescr: The browser and host agent exchange encrypted messages through the relay. - B["Your browser"] <--> R["Relay forwards ciphertext"] - R <--> H["Your machine"] -``` +![The browser and host agent exchange encrypted messages through a relay that can only forward the ciphertext.](docs/diagrams/encrypted-session.png) The relay can see which account connects to which machine, when it connects and how much data moves. Only the endpoints hold the keys that decrypt session traffic. @@ -48,23 +42,7 @@ To check your machines from claude.ai or another MCP client, add `https://outpos The first time a tool needs machine access, a client that supports URL elicitation presents the approval link directly to you. Other clients receive the link in the tool result. Open it in a trusted Outpost browser to pick the machines, permissions and expiry. -```mermaid -sequenceDiagram - accTitle: How a machine grants MCP access - accDescr: You approve the service key from a trusted browser before the service can read sessions. - participant C as MCP client - participant S as MCP service - participant B as Browser - participant H as Machine - C->>S: List sessions - S-->>C: Request approval by URL - C-->>B: You open the link - B->>H: Trust the service key - C->>S: Retry the request - S->>H: Read via encrypted channel - H-->>S: Granted session data - S-->>C: Session list -``` +![The MCP client requests a session list. You approve the service key in your browser, then the service retries and reads sessions from the machine.](docs/diagrams/mcp-approval.png) | Access you grant | What the client can do | | --- | --- | diff --git a/docs/diagrams/encrypted-session.mmd b/docs/diagrams/encrypted-session.mmd new file mode 100644 index 0000000..c0b63bc --- /dev/null +++ b/docs/diagrams/encrypted-session.mmd @@ -0,0 +1,5 @@ +flowchart LR + accTitle: The encrypted session channel + accDescr: The browser and host agent exchange encrypted messages through the relay. + B["Your browser"] <--> R["Relay forwards ciphertext"] + R <--> H["Your machine"] diff --git a/docs/diagrams/encrypted-session.png b/docs/diagrams/encrypted-session.png new file mode 100644 index 0000000..77e3ea8 Binary files /dev/null and b/docs/diagrams/encrypted-session.png differ diff --git a/docs/diagrams/mcp-approval.mmd b/docs/diagrams/mcp-approval.mmd new file mode 100644 index 0000000..cb24da6 --- /dev/null +++ b/docs/diagrams/mcp-approval.mmd @@ -0,0 +1,15 @@ +sequenceDiagram + accTitle: How a machine grants MCP access + accDescr: You approve the service key from a trusted browser before the service can read sessions. + participant C as MCP client + participant S as MCP service + participant B as Browser + participant H as Machine + C->>S: List sessions + S-->>C: Request approval by URL + C-->>B: You open the link + B->>H: Trust the service key + C->>S: Retry the request + S->>H: Read via encrypted channel + H-->>S: Granted session data + S-->>C: Session list diff --git a/docs/diagrams/mcp-approval.png b/docs/diagrams/mcp-approval.png new file mode 100644 index 0000000..ee37d36 Binary files /dev/null and b/docs/diagrams/mcp-approval.png differ