rails-ai-context
Active·★ 165·MIT·Updated 2026-10-21
rails-ai-context auto-introspects your Rails app and provides context to AI assistants via MCP, saving tokens and reducing discovery overhead. It generates context files for multiple AI tools and offers 11 MCP tools with smart detail levels.
#ai#claude#copilot#cursor#developer-tools#introspection#mcp#mcp-servers
01
Features
01Auto-introspection of entire Rails app (schema, models, routes, controllers, etc.)
0211 MCP tools with smart detail levels (summary, standard, full)
03Generates context files for Claude, Cursor, OpenCode, Windsurf, and GitHub Copilot
04Token savings up to 37% (measured benchmark)
05Works without a database by parsing db/schema.rb
02
Compatibility
Rails full-stack (ERB + Hotwire)
Full-stack Rails
Verified via docs
Rails + Inertia.js (React/Vue)
Inertia.js
Verified via docs
Rails API + React/Next.js SPA
API + SPA
Verified via docs
Rails API + mobile app
API + Mobile
Verified via docs
Rails engine (mountable gem)
Engine
Verified via docs
03
Quick start
1
$ bundle add rails-ai-context
2
$ rails generate rails_ai_context:install
3
$ rails ai:context
04
Use cases
↳Adding features to existing Rails apps with AI assistants
↳Rapid onboarding of AI tools to a Rails codebase
↳Reducing token consumption in AI-assisted development
05
Alternatives
codeTree★ 30
MCP server with 23 tools for structured code understanding via tree-sitter. 10 languages. 999 tests. One-command install.
Ctxo★ 72
MCP server for AI coding agents. Instead of reading files one by one, your agent gets dependency graphs, git intent, blast radius, and change health in a single call. Works with any language deep analysis for TypeScript, Go, and C#.
agent-shadow-brain★ 38
🧠 v6.0 Hive Mind — One open-source brain every AI coding agent can share (Claude Code, Cursor, Cline, Codex, Copilot, Windsurf). 22 novel features. Free. Local-first. MIT.
AiDex★ 46
MCP Server for persistent code indexing. Gives AI assistants (Claude, Gemini, Copilot, Cursor) instant access to your codebase. 50x less context than grep.
code-context-engine★ 435
Save 94% on AI coding tokens. Index your codebase, agents search instead of reading files. Works with Claude Code, Codex, Copilot, Cursor, Gemini CLI. Local MCP server, free, open source.
Comments
Log in to leave a comment
No comments yet. Be the first!