Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
8569fc3
1
Parent(s): c908c75
Update mermaid diagram
Browse files- docs/patterns/proxy.mdx +11 -9
docs/patterns/proxy.mdx
CHANGED
|
@@ -14,18 +14,20 @@ FastMCP provides a powerful proxying capability that allows one FastMCP server i
|
|
| 14 |
|
| 15 |
Proxying means setting up a FastMCP server that doesn't implement its own tools or resources directly. Instead, when it receives a request (like `tools/call` or `resources/read`), it forwards that request to a *backend* MCP server, receives the response, and then relays that response back to the original client.
|
| 16 |
|
|
|
|
| 17 |
```mermaid
|
| 18 |
sequenceDiagram
|
| 19 |
-
participant Client
|
| 20 |
-
participant
|
| 21 |
-
participant BackendServer as Backend MCP Server
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
```
|
| 28 |
-
|
| 29 |
### Use Cases
|
| 30 |
|
| 31 |
- **Transport Bridging**: Expose a server running on one transport (e.g., a remote SSE server) via a different transport (e.g., local Stdio for Claude Desktop).
|
|
|
|
| 14 |
|
| 15 |
Proxying means setting up a FastMCP server that doesn't implement its own tools or resources directly. Instead, when it receives a request (like `tools/call` or `resources/read`), it forwards that request to a *backend* MCP server, receives the response, and then relays that response back to the original client.
|
| 16 |
|
| 17 |
+
|
| 18 |
```mermaid
|
| 19 |
sequenceDiagram
|
| 20 |
+
participant ClientApp as Your Client (e.g., Claude Desktop)
|
| 21 |
+
participant FastMCPProxy as FastMCP Proxy Server
|
| 22 |
+
participant BackendServer as Backend MCP Server (e.g., remote SSE)
|
| 23 |
+
|
| 24 |
+
ClientApp->>FastMCPProxy: MCP Request (e.g. stdio)
|
| 25 |
+
Note over FastMCPProxy, BackendServer: Proxy forwards the request
|
| 26 |
+
FastMCPProxy->>BackendServer: MCP Request (e.g. sse)
|
| 27 |
+
BackendServer-->>FastMCPProxy: MCP Response (e.g. sse)
|
| 28 |
+
Note over ClientApp, FastMCPProxy: Proxy relays the response
|
| 29 |
+
FastMCPProxy-->>ClientApp: MCP Response (e.g. stdio)
|
| 30 |
```
|
|
|
|
| 31 |
### Use Cases
|
| 32 |
|
| 33 |
- **Transport Bridging**: Expose a server running on one transport (e.g., a remote SSE server) via a different transport (e.g., local Stdio for Claude Desktop).
|