diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..876c942 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +# 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 ./ + +# Install dependencies without running lifecycle scripts +RUN npm install --ignore-scripts + +# Copy the rest of the application +COPY . . + +# Build the application +RUN npm run build + + +# Expose any ports if necessary (none in this MCP server) + +# Start the MCP server +CMD [ "node", "build/index.js" ] diff --git a/README.md b/README.md index a8f444e..ed58b6d 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Sleep MCP Logo +[![smithery badge](https://smithery.ai/badge/@Garoth/sleep-mcp)](https://smithery.ai/server/@Garoth/sleep-mcp) + A Model Context Protocol (MCP) server that provides a simple sleep/wait tool. Useful for adding delays between operations, such as waiting between API calls or testing eventually consistent systems. ## Available Tools @@ -10,6 +12,15 @@ A Model Context Protocol (MCP) server that provides a simple sleep/wait tool. Us ## Installation +### Installing via Smithery + +To install Sleep Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@Garoth/sleep-mcp): + +```bash +npx -y @smithery/cli install @Garoth/sleep-mcp --client claude +``` + +### Manual Installation ```bash git clone https://github.com/Garoth/sleep-mcp.git npm install diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..f715fa4 --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,14 @@ +# 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: {} + default: {} + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ command: 'node', args: ['build/index.js'] }) + exampleConfig: {}