Skip to content

Commit bc9c77a

Browse files
authored
Convert MCP flow diagram to mermaid (#189)
* Convert MCP flow diagram to mermaid * Clarfiy diagram flow.
1 parent 825f406 commit bc9c77a

2 files changed

Lines changed: 23 additions & 4 deletions

File tree

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,44 @@ Backend integrations work well for server-side actions, but they pose significan
2727
```mermaid
2828
graph TD
2929
subgraph WB["<b><i>Web browser</i></b>"]
30-
BA["Browser AI agent"]
30+
BA["Browser-integrated AI agent"]
3131
subgraph RP["Running Page 'index.html'"]
3232
WMCP["WebMCP tools"]
3333
end
3434
end
3535
36-
AI["<b><i>AI platform</i></b>"]
36+
AI["<b><i>AI agent platform</i></b>"]
3737
TP["<b><i>Third-party service<br>(example.com)</i></b>"]
3838
3939
%% Connections
40-
TP -->|"1. Browser loads page over HTTPs"| RP
40+
TP -->|"1. Browser loads page over HTTP"| RP
4141
AI <-->|"2. LLM in the cloud communicates with a browser AI agent to act on web content"| BA
4242
BA <-->|"3. Browser agent uses WebMCP tools to actuate the current page"| WMCP
4343
WMCP -->|"4. WebMCP tools update UI and make API calls"| TP
4444
```
4545

4646
#### Direct backend MCP flow
4747

48-
![A diagram showing an agent communicating with a third-party service directly via MCP](./content/explainer_mcp.png)
48+
```mermaid
49+
graph TD
50+
AI["<b><i>AI agent platform</i></b>"]
51+
52+
subgraph WB["<b><i>Web Browser</i></b>"]
53+
BIA["Browser-integrated AI agent"]
54+
RP["Running Page &lt;index.html&gt;"]
55+
end
56+
57+
subgraph TP["<b><i>Third-party service (example.com)</i></b>"]
58+
MCP[("MCP Server")]
59+
end
60+
61+
RP <-->|1. Browser loads page over HTTP| TP
62+
BIA -->|2. User prompt sent to agent platform in the cloud.| AI
63+
AI -->|"3. Agent platform uses pre-configured MCP server to interact directly with service and fulfill user request."| MCP
64+
MCP -->|4a. MCP response routed back to agent platform.| AI
65+
AI -->|5. Response rendered to user by browser agent. Web page has no direct visibility or control.| BIA
66+
RP <-.->|4b. Service manually pushes updates to page.| TP
67+
```
4968

5069
Many challenges faced by assistive technology also apply to AI agents that struggle to navigate existing human-first interfaces when agent-first "tools" are not available. Even when agents succeed, simple operations often require multiple steps and can be slow or unreliable.
5170

content/explainer_mcp.png

-56.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)