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.

评论

开发工具 分类下的更多 MCP 服务器