From 11acc70f7cf0cd91f4ed4fc816ac1711b6dd8913 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 20:15:10 +0000 Subject: [PATCH 1/3] Add Dockerfile --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..39c154c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config +FROM node:lts-alpine + +# Create app directory +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +# Install app dependencies +COPY package.json ./ +RUN npm install --production --ignore-scripts + +# Bundle app source +COPY index.js ./ +COPY lib ./lib + +# Default command +env NPM_CONFIG_LOGLEVEL warn +ENTRYPOINT ["node", "index.js"] From 3f1928335a2d97dde1d3eb0af9cdfedd71e6a1e0 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 20:15:11 +0000 Subject: [PATCH 2/3] Add Smithery configuration --- smithery.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 smithery.yaml diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..c6d21fd --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,18 @@ +# Smithery configuration file: https://smithery.ai/docs/build/project-config + +startCommand: + type: stdio + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ command: 'node', args: ['index.js'], env: config.sshPrivateKeyPath ? { SSH_PRIVATE_KEY: config.sshPrivateKeyPath } : {} }) + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + required: [] + properties: + sshPrivateKeyPath: + type: string + description: Path to SSH private key file; sets SSH_PRIVATE_KEY env var + exampleConfig: + sshPrivateKeyPath: /root/.ssh/id_rsa From 3e78517a7182b4c8fe5d0d5dd8218dd0bd982aa5 Mon Sep 17 00:00:00 2001 From: "smithery-ai[bot]" <194235850+smithery-ai[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 20:15:12 +0000 Subject: [PATCH 3/3] Update README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index f09ebbf..5a29471 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # 🚀 SSH MCP Server (Node.js) [![NPM Version](https://img.shields.io/npm/v/@idletoaster/ssh-mcp-server)](https://www.npmjs.com/package/@idletoaster/ssh-mcp-server) +[![smithery badge](https://smithery.ai/badge/@idletoaster/ssh-mcp-server)](https://smithery.ai/server/@idletoaster/ssh-mcp-server) [![GitHub Issues](https://img.shields.io/github/issues/idletoaster/ssh-mcp-server)](https://github.com/idletoaster/ssh-mcp-server/issues) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Node.js](https://img.shields.io/badge/Node.js-18+-green.svg)](https://nodejs.org/) @@ -25,6 +26,14 @@ A secure, high-performance **Model Context Protocol (MCP) server** that enables ## 🚀 Quick Start +### Installing via Smithery + +To install ssh-mcp-server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@idletoaster/ssh-mcp-server): + +```bash +npx -y @smithery/cli install @idletoaster/ssh-mcp-server --client claude +``` + ### Installation & Usage ```bash # Use directly with NPX (recommended)