From 6915f151cbaf5f5f0ec5b1d6be1bf08344e570fb Mon Sep 17 00:00:00 2001 From: prpeh Date: Sat, 12 Apr 2025 17:29:13 +0700 Subject: [PATCH 1/2] fix: simplify smithery.yaml configuration --- smithery.yaml | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/smithery.yaml b/smithery.yaml index 5c11f3d..7a4a864 100644 --- a/smithery.yaml +++ b/smithery.yaml @@ -1,29 +1,10 @@ # Smithery.ai configuration startCommand: type: stdio - configSchema: - # JSON Schema defining the configuration options for the MCP. - type: object - properties: - httpServer: - type: boolean - description: Whether to run the server in HTTP mode - default: false - port: - type: integer - description: Port number for HTTP server - default: 3000 - additionalProperties: false - commandFunction: - # A function that produces the CLI command to start the MCP on stdio. - |- + configSchema: {} + commandFunction: |- (config) => ({ "command": "node", - "args": [ - "dist/index.js" - ], - "env": { - ...(config.httpServer ? { HTTP_SERVER: "true" } : {}), - ...(config.port ? { PORT: config.port.toString() } : {}) - } + "args": ["dist/index.js"], + "env": {} }) \ No newline at end of file From 9823f57901d04e88e385524c943e47b4211386b3 Mon Sep 17 00:00:00 2001 From: prpeh Date: Sat, 12 Apr 2025 17:30:36 +0700 Subject: [PATCH 2/2] chore: remove smithery.yaml to allow auto-generation --- smithery.yaml | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml deleted file mode 100644 index 7a4a864..0000000 --- a/smithery.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Smithery.ai configuration -startCommand: - type: stdio - configSchema: {} - commandFunction: |- - (config) => ({ - "command": "node", - "args": ["dist/index.js"], - "env": {} - }) \ No newline at end of file