From 131c158f7ea54d345df1c2e03358c903d7e7c3a5 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Wed, 2 Apr 2025 03:03:34 -0700 Subject: [PATCH 1/3] Add Dockerfile --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a11bc3e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +FROM node:lts-alpine + +# Create app directory +WORKDIR /app + +# Install app dependencies +COPY package*.json ./ +RUN npm install --ignore-scripts + +# Copy source files +COPY . . + +# Build the project +RUN npm run build + +# Expose port if needed (optional) +# EXPOSE 3000 + +# Start the server +CMD ["node", "dist/index.js"] From da02cdd08225b6ace432de077cb72a1dab8205e0 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Wed, 2 Apr 2025 03:03:35 -0700 Subject: [PATCH 2/3] Add Smithery configuration --- smithery.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..a27038d --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,25 @@ +# 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: [] + properties: + mlflowTrackingUri: + type: string + default: http://localhost:5000 + description: URL to the MLflow tracking server hosting the prompt registry. + 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: { + MLFLOW_TRACKING_URI: config.mlflowTrackingUri + } + }) + exampleConfig: + mlflowTrackingUri: http://localhost:5000 From a8f865f76efaa52a5038c69bb0769eb3c5e8b0da Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Wed, 2 Apr 2025 03:03:35 -0700 Subject: [PATCH 3/3] Update README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 847f1ba..f9cd5ff 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # MLflow Prompt Registry MCP Server +[![smithery badge](https://smithery.ai/badge/@B-Step62/mcp-server-mlflow)](https://smithery.ai/server/@B-Step62/mcp-server-mlflow) Model Context Protocol (MCP) Server for [MLflow Prompt Registry](https://mlflow.org/docs/latest/prompts), enabling access to prompt templates managed in MLflow. @@ -63,3 +64,11 @@ Configure Claude for Desktop by editing `claude_desktop_config.json`: ``` Make sure to replace the `MLFLOW_TRACKING_URI` with your actual MLflow server address. + +### Installing via Smithery + +To install MLflow Prompt Registry Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@B-Step62/mcp-server-mlflow): + +```bash +npx -y @smithery/cli install @B-Step62/mcp-server-mlflow --client claude +```