diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b88bb92 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile +# Use an official Node.js runtime as a parent image +FROM node:18-alpine + +# Set the working directory in the container +WORKDIR /app + +# Copy package.json and package-lock.json to the working directory +COPY package.json package-lock.json ./ + +# Install the dependencies +RUN npm install + +# Copy the rest of the application code to the working directory +COPY . . + +# Expose any necessary ports +EXPOSE 8080 + +# Run the server when the container launches +ENTRYPOINT ["node", "server.js"] \ No newline at end of file diff --git a/README.md b/README.md index 840f6b4..314d00d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # MCP Server - JavaScript SDK +[![smithery badge](https://smithery.ai/badge/mcp-js-server)](https://smithery.ai/server/mcp-js-server) This is an unofficial JavaScript SDK for [Model Context Protocol](https://spec.modelcontextprotocol.io/latest). diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..583f25c --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,12 @@ +# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml + +startCommand: + type: stdio + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + properties: {} + commandFunction: + # A function that produces the CLI command to start the MCP on stdio. + |- + (config) => ({ command: 'node', args: ['server.js'] }) \ No newline at end of file