Skip to content
Discussion options

You must be logged in to vote

The links @Ashfaqbs posted above are the right docs, but they don't include a complete Streamable HTTP example, so here is one — with one version warning first.

Version warning: this will probably not compile on 0.5.0. StreamableHttpServerParameters was added in March 2026, after 0.5.0 (January 2026). If you stay on 0.5.0, use the SSE fallback at the bottom instead; to use the code below, upgrade to a release that contains StreamableHttpServerParameters.

import com.google.adk.JsonBaseModel;
import com.google.adk.agents.LlmAgent;
import com.google.adk.tools.mcp.McpToolset;
import com.google.adk.tools.mcp.StreamableHttpServerParameters;
import java.time.Duration;
import java.util.List;
import 

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Ashfaqbs
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by arani87
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants