Skip to content

400 errors when using MCPs #103

Description

@max-mapper

If I set an mcp config

{
  "mcpServers": {
    "github": {
      "command": "github-mcp-server",
      "args": ["stdio"],
      "envFile": "${workspaceFolder}/.env"
    },
    "context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp",
        "--api-key",
        "${env:CONTEXT7_API_KEY}"
      ],
      "envFile": "${workspaceFolder}/.env"
    }
  }
}

Then when late sends a prompt it will include tools from those MCPs like

"name": "context7:query-docs"
"name": "github:add_comment_to_pending_review"
"name": "github:create_branch"

But that causes a generic stream error: 400 with no error message printed. Removing the MCP config fixes the error. This is from opencode's endpoint https://opencode.ai/zen/v1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions