Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/)
Expand All @@ -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)
Expand Down
18 changes: 18 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -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