rails-ai-context
A Ruby gem that gives AI coding assistants ground truth about a Rails application's schema, models, routes, controllers and conventions, so they stop guessing from training data.
rails-ai-context exposes 45 read-only tools over MCP or the command line, covering the live schema, model associations, routes, controllers, views, Stimulus and Turbo usage, background jobs, services, mailers, i18n, gems, configuration and tests, so an assistant can check the real state of the application instead of inventing an association or a method that does not exist.
It installs with gem install rails-ai-context and does not require adding anything to the Gemfile; running rails-ai-context init inside a Rails app also works on an app that will not boot, by passing a no-boot flag that answers every tool from the source files instead. It works with Claude Code, Cursor, GitHub Copilot, OpenCode and Codex CLI, and can generate matching context files for each.
It is written in Ruby.