Skip to content

500 error from gemini-2.5-pro model with 10 mcp servers consisting of 52 tools #1006

Open
@sparshpml1212

Description

@sparshpml1212

I'm seeing 500 error from gemini when I try connecting with 10 mcp servers consisting of 52 tools.
There's no issue with one of the mcp servers, as I have tried removing and attaching tools one by one.

The possible reasons could be context length or something but gemini 2.5 pro provides 1M input token length so it should not be an issue.

Also this setup works perfectly fine with gemini-2.5-flash.

I'm using MultiServerMCPClient from lanchain-mcp-adaptors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions