Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ADK Integration#544

Closed
ayon24 started this conversation inGeneral
Jun 18, 2025· 3 comments· 1 reply
Discussion options

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 -

image

image

You must be logged in to vote

Replies: 3 comments 1 reply

Comment options

using SSE protocol

We only support streamable http. The SSE fallback will not work.

You must be logged in to vote
0 replies
Comment options

@SamMorrowDrums thanks

You must be logged in to vote
0 replies
Comment options

@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"

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

Currently we only provide a stdio transport in this repo.

We may revisit this, but for now self-hosting is not simple.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@ayon24@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp