Skip to content

[Bug]: failed grammer in opencode in combination with docker model runner #465

@remcocats

Description

@remcocats

Describe the bug
I get the error failed grammer from docker model runner when I use the backlog.md mcp server. With other mcp server I don't get this error. I reported this issue also with docker model runner and opencode.

docker/model-runner#534 (comment)
anomalyco/opencode#6104 (comment)

To Reproduce
Steps to reproduce the behavior:
Use opencode with docker model runner as llm host.

~/.config/opencode/opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "dms": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Docker Model Runner",
      "options": {
        "baseURL": "http://localhost:13434/engines/v1"
      },
      "models": {
        "ai/qwen3-coder": {
          "name": "Qwen3 coder"
        }
      }
    }
  }
}

~/.config/opencode/opencode.jsonc

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "backlog": {
      "type": "local",
      "command": [ "backlog",
        "mcp",
        "start"
      ],
      "enabled": true
    }
  }
}

when asking the question "hi", or any other question, I get the error "failed grammer".

Expected behavior
A clear response from opencode.

Environment

  • OS: mac os
  • Node version: 22

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions