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
Uses HTTP and Server-Sent Events (SSE) to communicate with an MCP server via JSON-RPC 2.0. This is useful for connecting to remote servers that implement the MCP protocol.
151
+
Uses HTTP and Server-Sent Events (SSE) to communicate with an MCP server via JSON-RPC 2.0. This is useful for connecting to remote servers that implement the legacy MCP protocol.
# docker run -p 3001:3001 --rm -it tzolov/mcp-everything-server:v1
158
158
```
159
159
160
160
_Note:_ HTTP SSE currently supports only MCP protocol version 2024-11-05.
161
161
162
+
#### Streamable HTTP Transport (Recommended)
163
+
164
+
Uses streamable HTTP to communicate with an MCP server via JSON-RPC 2.0. This is the modern, recommended approach for connecting to remote servers that implement the MCP protocol. It supports both streaming responses and simple request/response patterns.
165
+
166
+
```bash
167
+
# Default transport for HTTP URLs (explicit flag not needed)
168
+
mcp tools http://localhost:3000
169
+
170
+
# Explicitly specify streamable HTTP transport
171
+
mcp tools --transport=http http://localhost:3000
172
+
173
+
# Examples with remote servers
174
+
mcp tools https://api.example.com/mcp
175
+
mcp tools --transport=http https://ne.tools
176
+
```
177
+
178
+
_Benefits of Streamable HTTP:_
179
+
-**Session Management**: Supports stateful connections with session IDs
180
+
-**Resumability**: Can reconnect and resume interrupted sessions (when supported by server)
181
+
-**Flexible Responses**: Supports both streaming and direct JSON responses
182
+
-**Modern Protocol**: Uses the latest MCP transport specification
183
+
162
184
### Output Formats
163
185
164
186
MCP Tools supports three output formats to accommodate different needs:
@@ -373,11 +395,12 @@ mcp new tool:calculate --sdk=ts
373
395
# Create a project with a specific transport type
374
396
mcp new tool:calculate --transport=stdio
375
397
mcp new tool:calculate --transport=sse
398
+
mcp new tool:calculate --transport=http
376
399
```
377
400
378
401
The scaffolding creates a complete project structure with:
379
402
380
-
- Server setup with chosen transport (stdioor SSE)
403
+
- Server setup with chosen transport (stdio, SSE, or streamable HTTP)
381
404
- TypeScript configuration with modern ES modules
382
405
- Component implementations with proper MCP interfaces
0 commit comments