Skip to content

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

Closed as not planned

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

Activity

  1. MrLesk commented on Apr 25, 2026

    @MrLesk
    Owner

    Alex's Agent: Thanks for the report. This looks like an interoperability failure between Backlog.md's MCP schema/tools and opencode + Docker Model Runner, but the current issue does not include the exact MCP request/schema or model-runner error payload. Could you add the opencode debug logs around the rejected tool call, the Backlog.md version, and whether the same config works with a non-Docker-model provider?

  2. MrLesk commented on Jul 1, 2026

    @MrLesk
    Owner

    Alex's Agent: Closing this as stale / needs-repro. On April 25, 2026 we asked for the opencode debug logs around the rejected tool call, the Backlog.md version, and whether the same config works with a non-Docker-model provider. There has been no follow-up since then.

    The linked Docker Model Runner and opencode threads add useful context, but they still do not provide the exact Backlog MCP schema/request or current Backlog version needed to reproduce a Backlog.md bug. Those upstream threads are also closed, and the available data points to Docker Model Runner / llama grammar parsing interop rather than a confirmed Backlog.md issue.

    If this still reproduces, please reopen with the requested logs, the raw MCP tools/list schema or failing request, the Backlog.md version, and the result with a non-Docker model provider.

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

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