Roo-Code/src/__mocks__/@modelcontextprotocol/sdk/client/streamableHttp.js
Taylor Wilsdon 7e125f86c6
feat: Add support for Streamable HTTP Transport MCP servers (#4210)
* 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
2025-06-01 21:54:38 -04:00

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,
}