This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-mcp-server.git


The following commit(s) were added to refs/heads/main by this push:
     new c54b111  Deployment: Dockerfile and Smithery config
c54b111 is described below

commit c54b1112d829aa7ec81be2dcb78589d19667ef54
Author: Henry Mao <[email protected]>
AuthorDate: Sat Apr 5 23:07:25 2025 -0700

    Deployment: Dockerfile and Smithery config
---
 Dockerfile    | 19 +++++++++++++++++++
 README.md     |  4 +++-
 smithery.yaml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 76 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..92570d5
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,19 @@
+# Generated by https://smithery.ai. See: 
https://smithery.ai/docs/config#dockerfile
+FROM python:3.12-alpine
+
+# Install dependencies
+RUN apk add --no-cache gcc musl-dev linux-headers
+
+# Set working directory
+WORKDIR /app
+
+# Copy project files
+COPY . /app
+
+# Install project dependencies
+RUN pip install --no-cache-dir .
+
+# Expose any necessary ports (if applicable, though MCP uses stdio)
+
+# Run the server
+CMD ["python", "-m", "iotdb_mcp_server.server"]
diff --git a/README.md b/README.md
index c0e6155..0033771 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
 # IoTDB MCP Server
 
+[![smithery 
badge](https://smithery.ai/badge/@apache/iotdb-mcp-server)](https://smithery.ai/server/@apache/iotdb-mcp-server)
+
 ## Overview
 A Model Context Protocol (MCP) server implementation that provides database 
interaction and business intelligence capabilities through IoTDB. This server 
enables running SQL queries.
 
@@ -93,4 +95,4 @@ Location: `%APPDATA%/Claude/claude_desktop_config.json`
     }
   }
 }
-```
\ No newline at end of file
+```
diff --git a/smithery.yaml b/smithery.yaml
new file mode 100644
index 0000000..9d8a9bb
--- /dev/null
+++ b/smithery.yaml
@@ -0,0 +1,54 @@
+# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
+
+startCommand:
+  type: stdio
+  configSchema:
+    # JSON Schema defining the configuration options for the MCP.
+    type: object
+    required:
+      - host
+      - port
+      - user
+      - password
+      - database
+    properties:
+      host:
+        type: string
+        default: 127.0.0.1
+        description: IoTDB host
+      port:
+        type: number
+        default: 6667
+        description: IoTDB port
+      user:
+        type: string
+        default: root
+        description: IoTDB username
+      password:
+        type: string
+        default: root
+        description: IoTDB password
+      database:
+        type: string
+        default: test
+        description: IoTDB database
+  commandFunction:
+    # A JS function that produces the CLI command based on the given config to 
start the MCP on stdio.
+    |-
+    (config) => ({
+      command: 'python',
+      args: ['-m', 'iotdb_mcp_server.server'],
+      env: {
+        IOTDB_HOST: config.host,
+        IOTDB_PORT: String(config.port),
+        IOTDB_USER: config.user,
+        IOTDB_PASSWORD: config.password,
+        IOTDB_DATABASE: config.database
+      }
+    })
+  exampleConfig:
+    host: 127.0.0.1
+    port: 6667
+    user: root
+    password: root
+    database: test

Reply via email to