Skip to content

mcp in Interactions API doesnt work. #2126

@codemee

Description

@codemee

Environment details

  • Programming language: Python
  • OS: Linux in Colab and Windows 11
  • Language runtime version: 3.13
  • Package version: 1.65.0

Steps to reproduce

  1. create a client
  2. run the code below
interaction = client.interactions.create(
      model="gemini-2.5-flash",
      input="what's the weather in Taipei?",
      tools = [{
          "type": "mcp_server",
          "name": "weather_service",
          "url": "https://gemini-api-demos.uc.r.appspot.com/mcp"
      }]
  )

this get the following error

InternalServerError: Error code: 500 - {'error': {'message': 'Internal server error', 'code': 'api_error'}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions