Commit 666237d
Refactor: Remove unused preferSseStream method from TransportInterface
The preferSseStream method was defined in TransportInterface and implemented
as a no-op in HttpTransport, StdioTransport, and the MockTransport.
Codebase analysis confirmed that this method was not called anywhere,
nor was it part of the documented external API in README.md or examples.
The HttpTransport currently does not support Server-Sent Events (SSE),
and the MCP specification (2025-03-26) makes SSE an optional feature for
servers. As the method provided no functionality towards current or
planned SSE capabilities and was unused, it has been removed to simplify
the interface and reduce potential confusion.
This change involved:
- Removing the method definition from TransportInterface.
- Removing the implementations from HttpTransport, StdioTransport, and MockTransport.
- Verifying that all tests and linters pass after the removal.1 parent 87cc05c commit 666237d
File tree
4 files changed
+0
-43
lines changed- src/Transport
- tests/Util
4 files changed
+0
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | 269 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | 206 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 72 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 83 | | |
90 | 84 | | |
91 | 85 | | |
| |||
0 commit comments