Skip to content

Commit c54b111

Browse files
authored
Deployment: Dockerfile and Smithery config
1 parent 2cee618 commit c54b111

File tree

3 files changed

+76
-1
lines changed

3 files changed

+76
-1
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2+
FROM python:3.12-alpine
3+
4+
# Install dependencies
5+
RUN apk add --no-cache gcc musl-dev linux-headers
6+
7+
# Set working directory
8+
WORKDIR /app
9+
10+
# Copy project files
11+
COPY . /app
12+
13+
# Install project dependencies
14+
RUN pip install --no-cache-dir .
15+
16+
# Expose any necessary ports (if applicable, though MCP uses stdio)
17+
18+
# Run the server
19+
CMD ["python", "-m", "iotdb_mcp_server.server"]

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# IoTDB MCP Server
22

3+
[![smithery badge](https://smithery.ai/badge/@apache/iotdb-mcp-server)](https://smithery.ai/server/@apache/iotdb-mcp-server)
4+
35
## Overview
46
A Model Context Protocol (MCP) server implementation that provides database interaction and business intelligence capabilities through IoTDB. This server enables running SQL queries.
57

@@ -93,4 +95,4 @@ Location: `%APPDATA%/Claude/claude_desktop_config.json`
9395
}
9496
}
9597
}
96-
```
98+
```

smithery.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
2+
3+
startCommand:
4+
type: stdio
5+
configSchema:
6+
# JSON Schema defining the configuration options for the MCP.
7+
type: object
8+
required:
9+
- host
10+
- port
11+
- user
12+
- password
13+
- database
14+
properties:
15+
host:
16+
type: string
17+
default: 127.0.0.1
18+
description: IoTDB host
19+
port:
20+
type: number
21+
default: 6667
22+
description: IoTDB port
23+
user:
24+
type: string
25+
default: root
26+
description: IoTDB username
27+
password:
28+
type: string
29+
default: root
30+
description: IoTDB password
31+
database:
32+
type: string
33+
default: test
34+
description: IoTDB database
35+
commandFunction:
36+
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
37+
|-
38+
(config) => ({
39+
command: 'python',
40+
args: ['-m', 'iotdb_mcp_server.server'],
41+
env: {
42+
IOTDB_HOST: config.host,
43+
IOTDB_PORT: String(config.port),
44+
IOTDB_USER: config.user,
45+
IOTDB_PASSWORD: config.password,
46+
IOTDB_DATABASE: config.database
47+
}
48+
})
49+
exampleConfig:
50+
host: 127.0.0.1
51+
port: 6667
52+
user: root
53+
password: root
54+
database: test

0 commit comments

Comments
 (0)