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 legacy 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. Transport is automatically detected when the URL ends with `/sse`.
# docker run -p 3001:3001 --rm -it tzolov/mcp-everything-server:v1
@@ -161,18 +161,18 @@ _Note:_ HTTP SSE currently supports only MCP protocol version 2024-11-05.
161
161
162
162
#### Streamable HTTP Transport (Recommended)
163
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.
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. This is the default transport for HTTP/HTTPS URLs.
165
165
166
166
```bash
167
-
# Default transport for HTTP URLs (explicit flag not needed)
167
+
# Default transport for HTTP URLs
168
168
mcp tools http://localhost:3000
169
169
170
-
#Explicitly specify streamable HTTP transport
171
-
mcp tools --transport=http http://localhost:3000
170
+
#Streamable HTTP transport (auto-detected from URL)
171
+
mcp tools http://localhost:3000
172
172
173
173
# Examples with remote servers
174
174
mcp tools https://api.example.com/mcp
175
-
mcp tools --transport=http https://ne.tools
175
+
mcp tools https://ne.tools
176
176
```
177
177
178
178
_Benefits of Streamable HTTP:_
@@ -395,12 +395,11 @@ mcp new tool:calculate --sdk=ts
395
395
# Create a project with a specific transport type
396
396
mcp new tool:calculate --transport=stdio
397
397
mcp new tool:calculate --transport=sse
398
-
mcp new tool:calculate --transport=http
399
398
```
400
399
401
400
The scaffolding creates a complete project structure with:
402
401
403
-
- Server setup with chosen transport (stdio, SSE, or streamable HTTP)
402
+
- Server setup with chosen transport (stdioor SSE)
404
403
- TypeScript configuration with modern ES modules
405
404
- Component implementations with proper MCP interfaces
0 commit comments