opencode icon indicating copy to clipboard operation
opencode copied to clipboard

MCP invalid schema in gpt-5.2-codex

Open MartinVerges opened this issue 1 day ago • 1 comments

Description

Hello,

I'm using latest opencode and gitlab cli (1.80.4) and it works in most models but I encounter an error in gpt-5.2-codex.

Invalid schema for function 'glab_glab_api': In context=('properties', 'flags', 'properties', 'field'), array schema missing items. config:

    "glab": {
      "type": "local",
      "enabled": true,
      "command": ["glab", "mcp", "serve"]
    },

Plugins

No response

OpenCode version

1.1.19

Steps to reproduce

  1. install and configure gitlab glab cli for MCP
  2. add config
    "glab": {
      "type": "local",
      "enabled": true,
      "command": ["glab", "mcp", "serve"]
    },
  1. run a prompt

Screenshot and/or share link

Image

Operating System

MacOS 26

Terminal

Ghostty

MartinVerges avatar Jan 14 '26 10:01 MartinVerges