From 4f43cc691b692eeced9645f51aaa14c1847df5e5 Mon Sep 17 00:00:00 2001 From: prpeh Date: Sat, 12 Apr 2025 18:04:47 +0700 Subject: [PATCH] feat: update smithery.yaml configuration for MCP server deployment --- smithery.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..6c31d51 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,46 @@ +# Smithery.ai configuration +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + properties: + database: + type: object + properties: + type: + type: string + enum: [qdrant, chroma] + default: qdrant + collectionName: + type: string + default: wisdomforge + apiKey: + type: string + url: + type: string + required: [database] + commandFunction: + # A function that produces the CLI command to start the MCP on stdio. + |- + (config) => ({ + "command": "node", + "args": [ + "dist/index.js" + ], + "env": { + "DATABASE_TYPE": config.database.type, + "COLLECTION_NAME": config.database.collectionName, + "QDRANT_API_KEY": config.database.apiKey, + "QDRANT_URL": config.database.url, + "HTTP_SERVER": "false", + "PORT": "3000" + } + }) + +build: + dockerfile: Dockerfile + dockerBuildPath: . + +# Note: Qdrant service is not needed in cloud deployment +# as it will be provided by Smithery's managed services \ No newline at end of file