From 785223ef87d4b3bac738fe06a93963c16d4f04ac Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Sun, 26 Jan 2025 13:58:14 +0800 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..1c44295 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +# Use the official lightweight Node.js image +FROM node:20-alpine + +# Set the working directory +WORKDIR /app + +# Copy package.json and tsconfig.json +COPY examples/simple-server/package.json examples/simple-server/tsconfig.json ./ + +# Install the dependencies +RUN npm install + +# Copy the application code +COPY examples/simple-server . + +# Expose the application port +EXPOSE 9512 + +# Command to run the application +CMD ["npm", "run", "start"] \ No newline at end of file From 2865b2aec4a30d6f017be277dd7abf72fd8a22b5 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Sun, 26 Jan 2025 13:58:15 +0800 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..57b8cdd --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,19 @@ +# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml + +build: + dockerBuildPath: examples/simple-server +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + required: [] + properties: + port: + type: number + default: 9512 + description: The port number on which the server will run. + commandFunction: + # A function that produces the CLI command to start the MCP on stdio. + |- + config => ({ command: 'npm', args: ['run', 'start'], env: { PORT: String(config.port) } }) \ No newline at end of file From 98d6a6fc6ccbfda4af6949aa50adb277e3a09cf1 Mon Sep 17 00:00:00 2001 From: Henry Mao <1828968+calclavia@users.noreply.github.com> Date: Sun, 26 Jan 2025 13:58:16 +0800 Subject: [PATCH 3/3] Update README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 73eb561..5660d20 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Remote-MCP: Remote Model Context Protocol +[![smithery badge](https://smithery.ai/badge/@remote-mcp/client)](https://smithery.ai/server/@remote-mcp/client) + A **type-safe, bidirectional and simple** solution for **remote MCP communication**, allowing remote access and centralized management of model contexts. ![preview](https://github.com/user-attachments/assets/a16804b9-8378-493c-8ca8-f61839458cde) @@ -236,3 +238,4 @@ This project is licensed under the MIT License. See the [LICENSE](LICENSE) file ## References * [Model Context Protocol](https://modelcontextprotocol.org/) +