-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
I previously worked with the Notion MCP about three weeks ago, and it was working fine at that time. However, all of a sudden, it stopped working. I then tried using the Filesystem MCP and Maps MCP, but faced issues there as well.
https://github.com/google/adk-samples/blob/main/python/agents/travel-concierge/tests/mcp_abnb.py
https://google.github.io/adk-docs/tools/mcp-tools/#step-2-define-your-agent-with-mcptoolset-for-google-maps
In particular, I'm unable to import StdioServerParameters:
from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset, StdioServerParameters
StdioServerParameters(
command="npx",
args=["-y", "@notionhq/notion-mcp-server"],
env={"OPENAPI_MCP_HEADERS": NOTION_MCP_HEADERS},
)
I also tried importing it by mcp:
from mcp.client.stdio import StdioServerParameters
But that didn’t work either.
MCPToolset(
connection_params=StreamableHTTPConnectionParams(
url="https://api.githubcopilot.com/mcp/",
headers={
"Authorization": "Bearer " + str(os.getenv("GITHUB_PERSONAL_ACCESS_TOKEN")),
},
),
)
So it seems like StreamableHTTPConnectionParams is working fine, but there’s an issue with StdioServerParameters.