Skip to content

Error resolving schema reference '$ref' in Canva MCP tool when using custom API provider #29220

Closed as not planned

Description

@treizelife13

Description

OpenCode v1.15.10 — Fireworks API provider

Error:
Error resolving schema reference '#/properties/operations/items/anyOf/2/properties/asset_id': AttributeError("'NoneType' object has no attribute 'lookup'")

Repro:

  1. Ajouter une clé API Fireworks (provider custom)
  2. Configurer le MCP Canva dans opencode.json
  3. Lancer opencode avec un modèle Fireworks (e.g. deepseek-v4-flash)
  4. L'erreur apparaît à l'initialisation

Cause probable : le schéma de l'outil perform-editing-operations du MCP Canva
contient des $ref auto-référents que le résolveur JSON Schema ne gère pas
avec les providers API custom.

Workaround : désactiver le MCP Canva (enabled: false) quand on utilise
un provider custom.

Plugins

MCP Canva

OpenCode version

Latest

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on May 25, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. github-actions commented on Jul 25, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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