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
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,12 +126,19 @@ Notifications follow the JSON-RPC 2.0 specification and use these method names:
126
126
127
127
-**stdio**: Notifications are sent as JSON-RPC 2.0 messages to stdout
128
128
-**Streamable HTTP**: Notifications are sent as JSON-RPC 2.0 messages over HTTP with streaming (chunked transfer or SSE)
129
+
-**Stateless Streamable HTTP**: Notifications are not supported and all calls are request/response interactions; allows for easy multi-node deployment.
129
130
130
131
#### Usage Example
131
132
132
133
```ruby
133
134
server =MCP::Server.new(name:"my_server")
135
+
136
+
# Default Streamable HTTP - session oriented
134
137
transport =MCP::Server::Transports::StreamableHTTPTransport.new(server)
138
+
139
+
# OR Stateless Streamable HTTP - session-less
140
+
transport =MCP::Server::Transports::StreamableHTTPTransport.new(server, stateless:true)
0 commit comments