-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
I'm trying to integrate the Notion MCP as an MCP for my agent. As far as I am aware, it recommends using HTTP, but as far as I'm aware it's not raising any auth events as described by https://google.github.io/adk-docs/tools/authentication/#2-handling-the-interactive-oauthoidc-flow-client-side. It also seems to completely stall my agent initialization and doesn't proceed further.
I've attached my tools definition below:
import os
from dotenv import load_dotenv
from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset, StdioServerParameters, StdioConnectionParams, StreamableHTTPConnectionParams
from google.adk.auth.auth_schemes import AuthScheme
from google.adk.auth.auth_credential import AuthCredential
load_dotenv()
GOOGLE_MAPS_API_KEY = os.getenv("GOOGLE_MAPS_API_KEY")
mcpServers = [
MCPToolset(
connection_params=StdioConnectionParams(
server_params=StdioServerParameters(
command='npx',
args=[
"-y",
"@modelcontextprotocol/server-google-maps",
],
env={
"GOOGLE_MAPS_API_KEY": GOOGLE_MAPS_API_KEY
}
)
),
),
MCPToolset(
connection_params=StreamableHTTPConnectionParams(
url="https://mcp.notion.com/mcp"
),
)
]I am using Gemini Live Bidi streaming in an Electron requirement and WebSockets for communication. Is this an issue on Notion's MCP side or am I configuring something incorrectly? Thanks!
P.S. If anyone could show me a successful example of using an MCP server with browser-based OAuth authentication flow, that would be greatly appreciated.