From b8c6e0c8be9a395df29ee1dfcfba06e255894ea9 Mon Sep 17 00:00:00 2001 From: stabgan Date: Thu, 27 Mar 2025 13:17:54 +0530 Subject: [PATCH] Update smithery.yaml to proper format --- smithery.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/smithery.yaml b/smithery.yaml index 3452ae7..c37b995 100644 --- a/smithery.yaml +++ b/smithery.yaml @@ -8,8 +8,33 @@ image: entrypoint: ["node", "dist/index.js"] +startCommand: + type: stdio + configSchema: + type: object + properties: + OPENROUTER_API_KEY: + type: string + description: OpenRouter API key for authentication + OPENROUTER_DEFAULT_MODEL: + type: string + description: Default model to use if none specified in requests + required: ["OPENROUTER_API_KEY"] + commandFunction: | + function getCommand(config) { + return { + command: "node", + args: ["dist/index.js"], + env: { + OPENROUTER_API_KEY: config.OPENROUTER_API_KEY, + OPENROUTER_DEFAULT_MODEL: config.OPENROUTER_DEFAULT_MODEL || "anthropic/claude-3.5-sonnet" + } + }; + } + build: dockerfile: Dockerfile + dockerBuildPath: "." publish: smithery: true