google / google/adk-docs

Missing MCP Tools example for streamable-http transport

Open
#407 1 comment 1 reaction 0 assignees View on GitHub
mcp
Dominant language
Shell
Stars
1.5k
Forks
1.3k
Avg merge
7d 1h
Merged PRs (30d)
34

Description

The docs for [MCP Tools](https://google.github.io/adk-docs/tools/mcp-tools/) are lacking significantly.

They do not showcase how to create toolsets for the `sse` or `streamable-http` transports, only `stdio`.

There should be an example added for streamable http at the very least as this is the recommended transport for remote MCP servers to use.

GitHub remote MCP usage example:

```python
import os
from google.adk.agents import LlmAgent
from google.adk.tools.mcp_tool import MCPToolset, StreamableHTTPConnectionParams

root_agent = LlmAgent(
model="gemini-2.5-pro-preview-06-05",
name="github_agent",
instruction="You are a helpful assistant that can answer questions about GitHub.",
tools=[
MCPToolset(
connection_params=StreamableHTTPConnectionParams(
url="https://api.githubcopilot.com/mcp/",
headers={
"Authorization": "Bearer " + os.getenv("GITHUB_PERSONAL_ACCESS_TOKEN"),
}
)
)
],
)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.