Does Koog work with MCP servers that use Streamabl...
# koog-agentic-framework
j
Does Koog work with MCP servers that use Streamable HTTP? I couldn't see anything in docs but might have missed it.
p
Hi I see in the code that there is a fromTransport function, which accepts a
Transport
as input. Therefore, it should be possible to pass a
StreamableHttpClientTransport
there. Unfortunately, there are no dedicated helper methods for the streamable transport, and sse is used by default. I think this should be updated, since sse is deprecated. cc: @Maria Tigina
👍 2
j
as an example I was looking to try out https://medium.com/google-cloud/tutorial-getting-started-with-google-mcp-services-60b23b22a0e7 but they only support Streamable HTTP
I'll try out that
StreamableHttpClientTransport
I had quick go at using that but getting back
Server returned 405 for GET/SSE, stream disabled
....will try and dig a bit deeper later
actually, Koog call to
vmcpClient.listTools()?.tools.orEmpty()
seems to be working but then get exception parsing the result
which is coming from following in
McpToolDescriptorParser
Copy code
val title = element["title"]?.jsonPrimitive?.content ?: element["description"]?.jsonPrimitive?.content.orEmpty()
throw IllegalArgumentException("Parameter $title must have type property")
that
location_bias
seems like only param for this tool that doesn't have a
type
(in those docs the type is shown as
object
)
m
Hey, thank you for bringing this one Yeah, because location_bias is type reference, and I think we do not support it in koog, but I need to double check. Also I’ll update version of the mcp sdk asap
👍 2
j
Also I’ll update version of the mcp sdk asap
@Maria Tigina just to clarify, are you saying Koog will be updated soon to support this?
m
Can do it tomorrow, already got several requests for it, sorry for waiting
j
np, nothing urgent....was just curious
w
Hello all! I couldn't find any docs on this still, did this get done? (MCP using Streamable HTTP in Koog)