mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
* Implement support for streamable-http transport type mcp servers * add streamable-http mock in same fashion as sse - which does not seem to currently be actually leveraged * rename mock to resolve kebabcase vs camelCase * fix (seemingly unrelatd) test failure in writeToFileTool.test.ts * fix tests
15 lines
354 B
JavaScript
15 lines
354 B
JavaScript
class StreamableHTTPClientTransport {
|
|
constructor(url, options = {}) {
|
|
this.url = url
|
|
this.options = options
|
|
this.onerror = null
|
|
this.onclose = null
|
|
this.connect = jest.fn().mockResolvedValue()
|
|
this.close = jest.fn().mockResolvedValue()
|
|
this.start = jest.fn().mockResolvedValue()
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
StreamableHTTPClientTransport,
|
|
}
|