Skip to content

alloydb extension leads to "duplicate elements in 'required' at top-level are forbidden" error #97

@gotochkin

Description

@gotochkin

Pre-reqs

  • I've searched the current open issues
  • I've updated to the latest versions

Extension Version

0.1.5

Gemini CLI Version

0.15.2,0.15.3,0.16.0

Environment

Linux, Mac OS

Current Behavior

If installed gemini-cli stops working and return error to any request.
Here is the error:
[API Error: {"error":{"message":"{\n \"error\": {\n \"code\": 400,\n \"message\": \"duplicate elements in 'required' at top-level are forbidden by https://json-schema.org/draft/2020-12/json-schema-validation#section-6.5.3\",\n \"status\": \"INVALID_ARGUMENT\"\n }\n}\n","code":400,"status":"Bad Request"}}]

Here is log:
`gleb@gemini-cli:~/pass2025$ gemini extensions install https://github.com/gemini-cli-extensions/alloydb
Installing extension "alloydb".
The extension you are about to install may have been created by a third-party developer and sourced from a public repository. Google does not vet, endorse, or guarantee the functionality or security of extensions. Please carefully inspect any extension and its source code before installing to understand the permissions it requires and the actions it may perform.
This extension will run the following MCP servers:

  • alloydb_admin (local): /tmp/gemini-extensionYB2Dog/toolbox --prebuilt alloydb-postgres-admin --stdio
  • alloydb (local): /tmp/gemini-extensionYB2Dog/toolbox --prebuilt alloydb-postgres --stdio
    This extension will append info to your gemini.md context using ALLOYDB.md
    Do you want to continue? [Y/n]: Y
    Extension "alloydb" installed successfully and enabled.
    gleb@gemini-cli:~/pass2025$ gemini -m gemini-3-pro-preview

███ █████████ ██████████ ██████ ██████ █████ ██████ █████ █████
░░░███ ███░░░░░███░░███░░░░░█░░██████ ██████ ░░███ ░░██████ ░░███ ░░███
░░░███ ███ ░░░ ░███ █ ░ ░███░█████░███ ░███ ░███░███ ░███ ░███
░░░███ ░███ ░██████ ░███░░███ ░███ ░███ ░███░░███░███ ░███
███░ ░███ █████ ░███░░█ ░███ ░░░ ░███ ░███ ░███ ░░██████ ░███
███░ ░░███ ░░███ ░███ ░ █ ░███ ░███ ░███ ░███ ░░█████ ░███
███░ ░░█████████ ██████████ █████ █████ █████ █████ ░░█████ █████
░░░ ░░░░░░░░░ ░░░░░░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░

Tips for getting started:

  1. Ask questions, edit files, or run commands.
  2. Be specific for the best results.
  3. /help for more information.
    ✕ Error during discovery for server 'alloydb': Connection failed for 'alloydb': MCP error -32000: Connection closed

hello

✕ [API Error: {"error":{"message":"{\n "error": {\n "code": 400,\n "message": "duplicate elements in 'required' at top-level are
forbidden by https://json-schema.org/draft/2020-12/json-schema-validation#section-6.5.3",\n "status": "INVALID_ARGUMENT"\n
}\n}\n","code":400,"status":"Bad Request"}}]

/quit

/quit

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Agent powering down. Goodbye! │
│ │
│ Interaction Summary │
│ Session ID: 08791b08-ca53-4df3-af5e-dcf67bad7364 │
│ Tool Calls: 0 ( ✓ 0 x 0 ) │
│ Success Rate: 0.0% │
│ │
│ Performance │
│ Wall Time: 7.4s │
│ Agent Active: 144ms │
│ » API Time: 144ms (100.0%) │
│ » Tool Time: 0s (0.0%) │
│ │
│ │
│ Model Usage Reqs Input Tokens Output Tokens │
│ ─────────────────────────────────────────────────────────────── │
│ gemini-3-pro-preview 1 0 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

gleb@gemini-cli:/pass2025$ gemini extensions uninstall alloydb
Extension "alloydb" successfully uninstalled.
gleb@gemini-cli:
/pass2025$ gemini -m gemini-3-pro-preview

███ █████████ ██████████ ██████ ██████ █████ ██████ █████ █████
░░░███ ███░░░░░███░░███░░░░░█░░██████ ██████ ░░███ ░░██████ ░░███ ░░███
░░░███ ███ ░░░ ░███ █ ░ ░███░█████░███ ░███ ░███░███ ░███ ░███
░░░███ ░███ ░██████ ░███░░███ ░███ ░███ ░███░░███░███ ░███
███░ ░███ █████ ░███░░█ ░███ ░░░ ░███ ░███ ░███ ░░██████ ░███
███░ ░░███ ░░███ ░███ ░ █ ░███ ░███ ░███ ░███ ░░█████ ░███
███░ ░░█████████ ██████████ █████ █████ █████ █████ ░░█████ █████
░░░ ░░░░░░░░░ ░░░░░░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░ ░░░░░

Tips for getting started:

  1. Ask questions, edit files, or run commands.
  2. Be specific for the best results.
  3. /help for more information.

hello

✦ Hello. How can I assist you with your software engineering tasks today?

/quit

/quit

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Agent powering down. Goodbye! │
│ │
│ Interaction Summary │
│ Session ID: be57cc2e-ebf3-4c48-8405-f3d3c88901f4 │
│ Tool Calls: 0 ( ✓ 0 x 0 ) │
│ Success Rate: 0.0% │
│ │
│ Performance │
│ Wall Time: 13.4s │
│ Agent Active: 5.3s │
│ » API Time: 5.3s (100.0%) │
│ » Tool Time: 0s (0.0%) │
│ │
│ │
│ Model Usage Reqs Input Tokens Output Tokens │
│ ─────────────────────────────────────────────────────────────── │
│ gemini-3-pro-preview 1 9,650 14 │
│ │
│ Savings Highlight: 8,103 (84.0%) of input tokens were served from the cache, reducing costs. │
│ │
│ » Tip: For a full token breakdown, run /stats model. │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
`
Can you please prioritize it?

Expected Behavior

Alloydb extension working and gemini-cli returns response

Steps to reproduce?

  1. Install the latest extension
  2. Run any query in gemini-cli
  3. Error
    ...

Additional Details

No response

Metadata

Metadata

Labels

type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions