From ff5a59d52598954a306e72b7980460406b369599 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Thu, 15 May 2025 09:50:25 -0700 Subject: [PATCH 1/3] Add Dockerfile --- Dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aa36a54 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config +# Dockerfile for MCP Docent Server +# Use official Node.js LTS on Alpine for minimal footprint +FROM node:lts-alpine AS builder + +WORKDIR /app + +# Install dependencies without running any prepare scripts +COPY package.json tsconfig.json ./ +RUN npm install --ignore-scripts + +# Copy source code +COPY src ./src + +# Build TypeScript +RUN npm run build + +# Prepare production image +FROM node:lts-alpine AS runner +WORKDIR /app + +# Copy package.json and installed modules +COPY --from=builder /app/package.json ./ +COPY --from=builder /app/node_modules ./node_modules + +# Copy built artifacts +COPY --from=builder /app/dist ./dist + +# Define command +CMD ["node", "dist/index.js"] From 0dc793128c031ce9f92131a5edc25d60b3fd314e Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Thu, 15 May 2025 09:50:26 -0700 Subject: [PATCH 2/3] Add Smithery configuration --- smithery.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..69d75e9 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,19 @@ +# Smithery configuration file: https://smithery.ai/docs/build/project-config + +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + required: + - openaiApiKey + properties: + openaiApiKey: + type: string + description: OpenAI API key for accessing the OpenAI API + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ command: 'node', args: ['dist/index.js'], env: { OPENAI_API_KEY: config.openaiApiKey } }) + exampleConfig: + openaiApiKey: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx From 81deaac26e5d5e1a2fbccb3d4be034e0640fe887 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Thu, 15 May 2025 09:50:27 -0700 Subject: [PATCH 3/3] Update README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index caba574..e8e5be4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # MCP Docent Server +[![smithery badge](https://smithery.ai/badge/@dongprojectteam/mcp-docent-server)](https://smithery.ai/server/@dongprojectteam/mcp-docent-server) > 이미지를 입력받아 해당 이미지에 대한 해설 텍스트(docent)를 생성하는 MCP 서버입니다. > AI 기반 해설 시스템을 활용하여 다양한 이미지에 대해 자동으로 설명을 생성합니다. @@ -49,3 +50,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` +