Skip to content

Commit 0186dcb

Browse files
committed
chore: update smithery config
1 parent 375eb86 commit 0186dcb

File tree

4 files changed

+14
-35
lines changed

4 files changed

+14
-35
lines changed

Dockerfile

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,18 @@
1-
FROM node:lts-alpine AS base
2-
WORKDIR /app
3-
4-
# Create non-root user
5-
RUN addgroup -g 1001 -S nodejs && \
6-
adduser -S appuser -u 1001 && \
7-
chown -R appuser:nodejs /app
8-
USER appuser
1+
FROM node:lts-alpine
92

10-
# === Download production environment dependencies ===
11-
FROM base AS deps
12-
COPY package*.json ./
13-
RUN npm install --only=prod --no-audit --no-fund --no-optional --ignore-scripts && \
14-
npm cache clean --force
3+
WORKDIR /app
154

16-
FROM base AS builder
5+
# Copy package files
176
COPY package*.json ./
18-
RUN npm install --no-audit --no-fund --no-optional --ignore-scripts
197

20-
RUN mkdir -p public
8+
# Install dependencies
9+
RUN npm install --ignore-scripts
2110

11+
# Copy application code
2212
COPY . .
23-
RUN npm run build
24-
25-
# === Build final image ===
26-
FROM base AS final
27-
COPY --from=deps /app/node_modules ./node_modules
28-
COPY --from=builder /app/build ./build
2913

30-
COPY --from=builder /app/public ./public
14+
# Build the application
15+
RUN npm run build
3116

32-
# If use docker-compose to execute this Dockerfile, this EXPOSE is a good choice.
33-
EXPOSE 1122
3417
# Command will be provided by smithery.yaml
3518
CMD ["node", "build/index.js", "-t", "streamable"]

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
container_name: mcp-server-chart-1
88
# environment:
99
# - VIS_REQUEST_SERVER=http://127.0.0.1:3000/render # Notice: You can use AntV's project GPT-Vis-SSR to deploy an HTTP service in a private environment, and then pass the URL address through env VIS_REQUEST_SERVER.
10-
command: ["node", "build/index.js", "--transport", "sse", "--port", "1122", "--host", "0.0.0.0"]
10+
command: ["node", "build/index.js", "--transport", "streamable", "--port", "1122", "--host", "0.0.0.0"]
1111
ports:
1212
- "1122:1122"
1313
# networks:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@antv/mcp-server-chart",
33
"description": "A Model Context Protocol server for generating charts using AntV. This is a TypeScript-based MCP server that provides chart generation capabilities. It allows you to create various types of charts through MCP tools.",
4-
"version": "0.9.1",
4+
"version": "0.9.2",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",
77
"exports": {

smithery.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
2-
# Smithery.ai configuration
31
runtime: "container"
2+
build:
3+
dockerfile: "Dockerfile"
4+
dockerBuildPath: "."
45
startCommand:
5-
type: http
6-
configSchema:
7-
# JSON Schema defining the configuration options for the MCP.
8-
type: object
9-
properties: {}
10-
exampleConfig: {}
6+
type: "http"

0 commit comments

Comments
 (0)