8000 MCPTimeout error inside linux container · Issue #1453 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content
MCPTimeout error inside linux container #1453
Open
@lsinghkochava

Description

@lsinghkochava

I have a simple refinement loop agent setup (paired with mongodb-mcp-server) that runs perfectly through adk web, but this results in a MCPTimeout error when run in a linux container which I had setup following documentation over at https://google.github.io/adk-docs/deploy/gke/#code-files

{"error": "Timed out while waiting for response to ClientRequest. Waited 5.0 seconds."}

Here's my mcp configuration -

mcp_toolset = MCPToolset(
    connection_params=StdioConnectionParams(
        timeout=5,
        server_params=StdioServerParameters(
            command="npx",
            args=[
                "-y",
                "mongodb-mcp-server",
                "--connectionString",
                os.getenv("MONGODB_CONNECTION_STRING"),
                "--readOnly"
            ]
        )
    )
)

compose config

agent:
    build: .
    ports:
      - "8000:8000"
    environment:
      - PORT=8000
      - MONGODB_CONNECTION_STRING=<>
    depends_on:
      db:
        condition: service_healthy
    restart: unless-stopped

This may very well be an issue with the SDK (modelcontextprotocol/typescript-sdk#576 or similar). I'm looking to start a conversation on it.

Metadata

Metadata

Assignees

Labels

bot_triagedcoreIssues related to the core interface and implementation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0