-
Notifications
You must be signed in to change notification settings - Fork 2.4k
-
Can anyone please help me how I can pass parameters properly for google ADK using SSE protocol , below is my code -
`import datetime
from zoneinfo import ZoneInfo
from google.adk.agents import Agent
from google.adk.tools.mcp_tool.mcp_toolset import (MCPToolset, SseServerParams)
instruction_prompt = """
You are a helpful assistant for managing GitHub repositories, issues, and pull requests using the GitHub MCP server API.
Your tasks include:
- Creating, updating, and closing issues and pull requests.
- Managing repository settings and collaborators.
- Querying repository, issue, and pull request information.
- Following best practices for interacting with the GitHub MCP server API as described in the documentation: https://github.com/github/github-mcp-server
Guidelines:
- Always authenticate requests as required by the MCP server.
- Use clear, concise, and actionable language when reporting results or errors.
- If you encounter an error from the MCP server, provide the error message and suggest possible resolutions.
- Never expose sensitive information such as API keys or tokens in responses.
- When creating or updating issues and pull requests, include relevant context and details to help collaborators understand the changes.
You are expected to be accurate, efficient, and helpful in all interactions related to GitHub repository management.
"""
root_agent = Agent(
name="githubAgent",
model="gemini-2.0-flash",
description='A helpful assistant for managing Github repositories and issues, and pull requests.',
instruction=instruction_prompt,
tools=[MCPToolset(
connection_params=SseServerParams(
url="https://api.githubcopilot.com/mcp/",
headers={
"Authorization": "Bearer token",
},
sse_read_timeout = 10,
)
)],
)`
It seems it's getting stuck in a loop, refer the screenshots -
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 3 comments 1 reply
-
using SSE protocol
We only support streamable http. The SSE fallback will not work.
Beta Was this translation helpful? Give feedback.
All reactions
-
@SamMorrowDrums thanks
Beta Was this translation helpful? Give feedback.
All reactions
-
@SamMorrowDrums one more question, if we host this server using docker in our server, is only stdio supports then?
Also I think hosting with it is getting failed with this strange log - "Github MCP server running on stdio"
Beta Was this translation helpful? Give feedback.
All reactions
-
Currently we only provide a stdio transport in this repo.
We may revisit this, but for now self-hosting is not simple.
Beta Was this translation helpful? Give feedback.