
raja-jamwal/rails-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
AI Assistants를 eval에 허용하고 필요한 재시작 서버 없이 Rails/ruby 코드 변경을 확인합니다.
개요
Llms.txt에서 코딩 에이전트 (Cursor, Claude Code 등)를 점하고 프로젝트에 자체 구성 레일-mcp에 요청하십시오. 기존 실행 애플리케이션 서버의 컨텍스트 내에서 루비 코드 실행 기능을 제공하는 Ruby gem. 스크립트, 재로드 또는 재시작을 작성하지 않고 러시 콘솔에 AI 보조 조명 속도 액세스를주는 생각. 철도, Sinatra, Hanami, Roda 및 기타 랙 기반 프레임 워크와 함께 작동합니다. 이 코드는 디버깅 및 조사에 대한 응용 프로그램의 컨텍스트에서 실행됩니다. 20k+를 가진 가로장 부호 기초에 대하여 Apollo.io에 사용하는 Ruby 파일. 1. 새로운 codebase 또는 코드 영역을 빨리 알아보세요. AI 클라이언트와 실행 서버로, 실제 응용 프로그램 코드에서 스니펫을 실행하면서 연구를 요청할 수 있습니다. 그것은 효과적으로 in-loop 코드 검증 블록으로 작동합니다. 2. 생산 환경의 읽기 전용 사본을 사용하여 고객 에스컬레이션의 빠른, 예비 조사 수행.
개요(AI 번역)
이 업 설정?
llms.txt]에서 코딩 에이전트 (Cursor, Claude Code 등)를 점하고 프로젝트에서 자체 구성 Rail-mcp에 요청하십시오.
기존 실행 애플리케이션 서버의 컨텍스트 내에서 루비 코드 실행 기능을 제공하는 Ruby gem. 스크립트, 재로드 또는 재시작을 작성하지 않고 러시 콘솔에 AI 보조 조명 속도 액세스를주는 생각.
철도, Sinatra, Hanami, Roda 및 기타 랙 기반 프레임 워크와 함께 작동합니다. 이 코드는 디버깅 및 조사에 대한 응용 프로그램의 컨텍스트에서 실행됩니다.
YouTube 링크
에 사용
20k+를 가진 가로장 부호 기초에 대하여 Apollo.io에 사용하는 Ruby 파일.
사용 사례
- 새로운 codebase 또는 코드 영역을 빨리 알아보세요. AI 클라이언트와 실행 서버로, 실제 응용 프로그램 코드에서 스니펫을 실행하면서 연구를 요청할 수 있습니다. 그것은 효과적으로 in-loop 코드 검증 블록으로 작동합니다.
- 생산 환경의 읽기 전용 사본을 사용하여 고객 에스컬레이션의 빠른, 예비 조사 수행.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
rails-mcp
Setting this up? Point your coding agent (Cursor, Claude Code, etc.) at
llms.txtand ask it to self-configure rails-mcp in your project.
A Ruby gem that provides AI assistants with ruby code execution capabilities within the context of existing running application server. Think of it giving AI assistant lighting-speed access to ruby console without the need to write script, reload or restart.
Works with Rails, Sinatra, Hanami, Roda, and any other Rack-based framework. The code is executed in your application’s context for debugging and investigation.
YouTube Link
Used at
Used at Apollo.io against a Rails codebase with 20k+ Ruby files.
Use cases
- Learn a new codebase or code areas quickly. With your AI client and a running server, you can ask it to research while executing snippets from your actual application code. It effectively acts as an in-loop code-verification block.
- Perform quick, preliminary investigations of customer escalations using a read-only copy of the production environment. It can execute your application code, locate models, and run relevant class methods or code paths from the codebase to do preliminary root-cause analysis (RCA). Even better if your application uses an event-sourcing framework (i.e., change logs). The AI client, together with the code-execution capabilities via rails-mcp, can deliver fast preliminary RCAs.
- Use it for quick data analytics and export reports as CSV.
Installation
Add this line to your application’s Gemfile:
gem "rails-mcp"
Or install locally for development:
bundle install
Usage
Mounting the MCP Server
Rails (config/routes.rb):
require "rails_mcp/mcp/server"
Rails.application.routes.draw do
mount RailsMcp::MCP::Server.new => "/mcp"
end
Rack (config.ru):
require "rails_mcp"
require "rails_mcp/mcp/server"
map "/mcp" do
run RailsMcp::MCP::Server.new
end
Sinatra:
require "rails_mcp/mcp/server"
mount RailsMcp::MCP::Server.new, at: "/mcp"
Starting the Server
# Standalone with Rackup
bundle exec rackup -p 9292
# With Rails
bundle exec rails server
Environment-scoped mounting
This gem ships without authentication — the MCP endpoint will accept any request that reaches it. You are responsible for ensuring it is only mounted where appropriate. A typical Rails setup gates it on environment:
Rails.application.routes.draw do
mount RailsMcp::MCP::Server.new => "/mcp" if Rails.env.development?
end
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"rails-mcp": {
"url": "http://localhost:3001/mcp/rpc"
}
}
}