Skip to content

tools/mcp not available when using a custom provider #1463

@michabbb

Description

@michabbb

how can i let opencode know that my model support tool calling or thinking when using a custom config like that:

"provider": {
                "coolnewprovider": {
                        "npm": "@ai-sdk/openai-compatible",
                        "options": {
                                "baseURL": "https://openrouter.ai/api/v1",
                                "apiKey": "xxxxxxxxxx"
                        },
                        "models": {
                                "openrouter/horizon-alpha": {}
                        }
                }
        },

❓ ❓ ❓

because when using any model from models.dev the info is there (of course), but with custom providers i need to tell opencode as well that there are tools/mcps - but how ? asking kimi "which tools do you know", i get everything, but asking "horizon-alpha", the answer shows me that the model doesn´t know any of the tools/mcps 😢

Metadata

Metadata

Assignees

No one assigned

    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