You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- MCP endpoint: `localhost:9095/mcp` (for modern Streamable HTTP clients)
173
+
- Health endpoint: `localhost:9095/health` (for monitoring)
174
+
5.**Request Handling**: Receives MCP requests from development tools and intelligently routes to appropriate transport
168
175
6.**Process Management**: Maintains persistent background processes as described in [Gateway Process Management](/development/gateway/process-management).
169
176
7.**Credential Injection**: Securely injects environment variables into running processes at startup
170
177
8.**Tool Routing**: Routes namespaced tool calls to persistent MCP servers via stdio transport
178
+
9.**Transport Selection**: Automatically detects client capabilities and uses appropriate transport (SSE or Streamable HTTP)
171
179
172
180
For detailed information about the caching system, see [Gateway Caching System](/development/gateway/caching-system).
173
181
@@ -207,10 +215,3 @@ The Gateway is actively under development. Key areas for contribution:
Copy file name to clipboardExpand all lines: docs/development/gateway/process-management.mdx
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,31 @@ The Gateway's process management system operates on a **persistent background pr
62
62
</Card>
63
63
</Cards>
64
64
65
+
## Selective Restart Capability
66
+
67
+
The Gateway supports **selective restart** functionality, allowing individual MCP servers to be managed without requiring a full gateway restart. This feature dramatically improves configuration update performance and eliminates downtime for unchanged servers.
68
+
69
+
### Key Features
70
+
71
+
-**Individual Server Control**: Add, remove, or restart specific MCP servers via HTTP API
72
+
-**Change Detection**: Automatically detects added, removed, and modified server configurations
73
+
-**Fallback Safety**: Falls back to full restart if selective operations fail
74
+
-**Zero Downtime**: Unchanged servers continue running during configuration updates
75
+
76
+
### API Endpoints
77
+
78
+
The Gateway exposes HTTP endpoints for selective server management:
79
+
80
+
-`POST /api/mcp/servers` - Add new MCP servers to running gateway
81
+
-`DELETE /api/mcp/servers/:serverName` - Remove specific servers
The DeployStack Gateway implements a robust session management system that provides cryptographically secure session handling for persistent SSE connections while ensuring automatic cleanup and resource management.
13
+
The DeployStack Gateway implements a robust session management system that provides cryptographically secure session handling for both persistent SSE connections and optional Streamable HTTP sessions while ensuring automatic cleanup and resource management.
14
14
15
15
## Architecture Overview
16
16
17
-
The session management system consists of two primary components working together to provide secure, persistent connections:
17
+
The session management system consists of multiple components working together to provide secureconnections across different transport protocols:
18
18
19
19
-**SessionManager**: Handles session lifecycle, validation, and SSE stream management
20
20
-**SSEHandler**: Manages Server-Sent Events connections and message routing
21
+
-**StreamableHTTPHandler**: Manages Streamable HTTP connections with optional session support
22
+
-**Transport Layer**: Intelligent routing between SSE and Streamable HTTP based on client capabilities
0 commit comments