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

Closed
opened 2026-02-16 17:29:06 -05:00 by yindo · 1 comment
Owner

Originally created by @michabbb on GitHub (Jul 31, 2025).

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 😢

Originally created by @michabbb on GitHub (Jul 31, 2025). how can i let opencode know that my model support tool calling or thinking when using a custom config like that: ```json "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 😢
yindo closed this issue 2026-02-16 17:29:06 -05:00
Author
Owner

@michabbb commented on GitHub (Jul 31, 2025):

shit... i didn´t see "additionalProperties" in the config schema: https://opencode.ai/config.json, my fault 🙈

@michabbb commented on GitHub (Jul 31, 2025): shit... i didn´t see "additionalProperties" in the config schema: https://opencode.ai/config.json, my fault 🙈
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1017