Skip to content

Commit b524040

Browse files
build: 添加 Dockerfile 和 Smithery 配置
- 新增 Dockerfile 用于构建和运行应用程序- 添加 Smithery 配置文件,定义启动命令和配置模式- 为项目增加容器化支持
1 parent 2386ca0 commit b524040

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM node:18-alpine
2+
3+
WORKDIR /app
4+
5+
# Copy package files
6+
COPY package*.json ./
7+
8+
# Install dependencies
9+
RUN npm install
10+
11+
# Copy application code
12+
COPY . .
13+
14+
# Build the application
15+
RUN npm run build
16+
17+
# Command will be provided by smithery.yaml
18+
CMD ["node", "dist/index.js"]

smithery.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Smithery.ai configuration
2+
startCommand:
3+
type: stdio
4+
configSchema:
5+
# JSON Schema defining the configuration options for the MCP.
6+
{}
7+
commandFunction:
8+
# A function that produces the CLI command to start the MCP on stdio.
9+
|-
10+
(config) => ({
11+
"command": "node",
12+
"args": [
13+
"dist/index.js"
14+
],
15+
"env": {
16+
}
17+
})

0 commit comments

Comments
 (0)