MCP.so
ログイン

MCP Server: SSH Rails Runner

@tadasant

基本情報

カテゴリ

開発者ツール

ライセンス

MIT

トランスポート

stdio

作者

tadasant

MCP Server: SSH Rails Runner について

MCP server that facilitates an SSH connection to a deployed Rails app so you can run Rails REPL commands

MCP Server: SSH Rails Runner の設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

MCP Server: SSH Rails Runner のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP Server: SSH Rails Runner?

An MCP server that enables secure remote execution of Rails console commands via SSH. It provides tools for both read-only operations and carefully managed mutations in a deployed Rails environment. The server is designed to work with Cursor, allowing AI-assisted database changes through a Prepare → Execute workflow.

How to use MCP Server: SSH Rails Runner?

Install with npm install && npm run build, then configure environment variables SSH_HOST, SSH_USER, SSH_PRIVATE_KEY_PATH, and RAILS_WORKING_DIR. Optionally set PROJECT_NAME_AS_CONTEXT and CODE_SNIPPET_FILE_DIRECTORY. Add the server to Claude Desktop configuration using the npx mcp-server-ssh-rails-runner command. Use the three provided tools: prepare_code_snippet to save and review Ruby code, execute_code_snippet_read_only for safe read-only operations, and execute_code_snippet_mutate for approved mutations.

Key features of MCP Server: SSH Rails Runner

  • Remote Rails console execution over SSH
  • Safe read-only operations with safety checks
  • Dry-run capability for mutations
  • Prepare—Execute workflow for code snippets
  • Resource management for saved code snippets

Use cases of MCP Server: SSH Rails Runner

  • Performing read-only data analysis on a live Rails database via Cursor Composer
  • Applying user-confirmed database mutations after reviewing prepared code snippets
  • Automating complex Rails console tasks without manual SSH login
  • Integrating AI coding assistants with remote Rails environments

よくある質問

1

What transport or authentication does the server use?

It uses SSH authentication via a private key, configured through `SSH_USER`, `SSH_HOST`, and `SSH_PRIVATE_KEY_PATH` environment variables.

2

Where are code snippets stored?

By default in a temporary directory (`/tmp/mcp-ssh-rails-runner-code-snippets`). You can set `CODE_SNIPPET_FILE_DIRECTORY` to a custom path.

3

How does the server prevent accidental mutations?

It uses a two-phase Prepare → Execute workflow. Read-only executions include a safety check; mutation executions require explicit user confirmation after reviewing the prepared code snippet file.

4

What runtime dependencies are required?

Node.js and npm are required for installation. The remote server must have SSH access and a Rails environment available at the configured working directory.

5

What limits exist for code execution?

Only code saved via `prepare_code_snippet` and marked as `readOnly` or `mutate` can be executed. The server performs a safety check for read-only operations but not for mutations—the user must review code before mutating.

コメント

「開発者ツール」の他のコンテンツ