Skip to content

bug: MCP - Invalid JSON Schema when using Docker MCP Gateway #650

Closed

Description

@coeur-de-loup

Description

When attempting to run the Docker MCP gateway, an ⁠AI_APICallError is thrown.

Error

AI_APICallError: Invalid JSON Schema when using Docker MCP Gateway

To Reproduce

opencode.json

{
    "$schema": "https://opencode.ai/config.json",
    "mcp": {
        "MCP_DOCKER": {
            "type": "local",
            "command": ["docker","mcp","gateway","run"],
            "enabled": true
        }
    }
}

Activity

  1. self-assigned this
    on Jul 4, 2025
  2. Kirow commented on Nov 21, 2025

    @Kirow

    After recent updates (1.0.62 worked few days ago) I start receiving error on any request when Docker MCP Toolkit is enabled. Not sure if it is related to docker update or opencode.

    Invalid schema for function 'MCP_DOCKER_mcp-config-set': In context=('properties', 'value', 'type', '4'), array schema missing items.

                    {
                        "type": "function",
                        "function": {
                            "name": "MCP_DOCKER_mcp-config-set",
                            "description": "Set configuration values for MCP servers. Creates or updates server configuration with the specified key-value pairs. Supports strings, numbers, booleans, objects, and arrays.",
                            "parameters": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "Configuration key to set. This is not to be prefixed by the server name."
                                    },
                                    "server": {
                                        "type": "string",
                                        "description": "Name of the MCP server to configure"
                                    },
                                    "value": {
                                        "type": [
                                            "string",
                                            "number",
                                            "boolean",
                                            "object",
                                            "array"
                                        ],
                                        "description": "Configuration value to set (can be string, number, boolean, object, or array)"
                                    }
                                },
                                "required": [
                                    "server",
                                    "key",
                                    "value"
                                ],
                                "additionalProperties": false
                            }
                        }
                    },
    
  3. rekram1-node commented on Nov 24, 2025

    @rekram1-node
    Contributor

    Hm im not really sure, probably the docker mcp I don't think we have updated mcp stuff lately

  4. fiuzagr commented on Dec 14, 2025

    @fiuzagr

    Maybe related to docker/mcp-gateway#275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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