Skip to content

Commit 9fcafa2

Browse files
atesgoralclaude
andcommitted
Mirror event_stream_parser note to README.md
Addresses modelcontextprotocol#322 (comment) — README's HTTP Transport Layer section should document the optional event_stream_parser dependency alongside docs/building-clients.md. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent e2a98aa commit 9fcafa2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,11 +1599,12 @@ The stdio transport automatically handles:
15991599

16001600
Use the `MCP::Client::HTTP` transport to interact with MCP servers using simple HTTP requests.
16011601

1602-
You'll need to add `faraday` as a dependency in order to use the HTTP transport layer:
1602+
You'll need to add `faraday` as a dependency in order to use the HTTP transport layer. Add `event_stream_parser` as well if the server uses SSE (`text/event-stream`) responses:
16031603

16041604
```ruby
16051605
gem 'mcp'
16061606
gem 'faraday', '>= 2.0'
1607+
gem 'event_stream_parser', '>= 1.0' # optional, required only for SSE responses
16071608
```
16081609

16091610
Example usage:

0 commit comments

Comments
 (0)