MCP Server: SSH Rails Runner
@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
基本信息
配置
工具
未检测到工具
工具是从 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
FAQ from MCP Server: SSH Rails Runner
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.
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.
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.
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.
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 服务器
Stakpak Agent CLI
stakpakShip your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. 🦀
MCP Unity Editor (Game Engine)
CoderGamesterModel Context Protocol (MCP) plugin to connect with Unity Editor — designed for Cursor, Claude Code, Codex, Windsurf and other IDEs
Burp Suite MCP Server Extension
PortSwiggerMCP Server for Burp
Minecraft MCP Server
yuniko-softwareA Minecraft MCP Server powered by Mineflayer API. It allows to control a Minecraft character in real-time, allowing AI assistants to build structures, explore the world, and interact with the game environment through natural language instruction
MCP Framework
QuantGeekDevThe Typescript MCP Framework
评论