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 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/) + 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