Atlas / MCP servers / crisnahine / Rails AI Context

Rails AI ContextBLOCK

mcp/crisnahine/rails-ai-context

45 MCP tools that give AI coding agents ground truth about your Rails app: schema, models, routes, controllers, views, jobs, conventions. Works with Claude Code, Cursor, GitHub Copilot, OpenCode and Codex CLI. MCP or CLI, in-Gemfile or standalone, and it still answers when the app can't boot.

Verdict
BLOCK
Grade
F
Trust score
50 /100
Exposed tools
2 2r · 0w · 0d
Transport
stdio · streamable-http
License
MIT
Stars
159
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

Give your AI coding assistant ground truth about your Rails app

[](https://rubygems.org/gems/rails-ai-context) [](https://rubygems.org/gems/rails-ai-context) [](https://github.com/crisnahine/rails-ai-context/actions) [](https://registry.modelcontextprotocol.io) [](https://github.com/crisnahine/rails-ai-context) [](https://github.com/crisnahine/rails-ai-context) [](LICENSE)

[](https://claude.ai/claude-code) [](https://cursor.com) [](https://github.com/features/copilot) [](https://opencode.ai) [](https://codex.openai.com) [](docs/CLI.md)

:star: If this gem saves you a correction loop, star it on GitHub!

Read from source at commit 23f9fe7f10d1OBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add test-app -- npx -y test-app
claude-desktop
{
  "mcpServers": {
    "test-app": {
      "command": "npx",
      "args": [
        "-y",
        "test-app"
      ]
    }
  }
}
03

Exposed tools (2)

2 read · 0 write · 0 destructive.

ToolRiskDescription
ControllersreadAll controllers with actions, filters, strong params, and concerns
MigrationsreadMigration history, pending migrations, and migration statistics
04

Trust audit

BLOCKgrade F · trust 50/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryFAIL
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (3 observation(s))
Network
declared (3 observation(s))
Shell
declared (1 observation(s))
Dependencies
not all pinned
Secrets in source
found

Findings (25)

HIGHInventory / provenance · inv.suspicious_name · CWE-1104
lib/rails_ai_context/payload.rb
payload.rb
Why it matters. member named after an attack tool
Fix. remove or justify
HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
lib/rails_ai_context/tools/query.rb:480
Marshal.load(read_before(reader, size, deadline))
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load
HIGHFilesystem / path · fs.credential_store · CWE-22, CWE-59
lib/rails_ai_context/configuration.rb:403
.ssh/* .aws/credentials .aws/config .netrc .pgpass .my.cnf
Why it matters. touches a credential store
HIGHFilesystem / path · fs.credential_store · CWE-22, CWE-59
lib/rails_ai_context/doctor.rb:605
.netrc .pgpass .aws/credentials **/id_rsa **/id_ed25519 **/id_ecdsa **/id_dsa .ssh/*
Why it matters. touches a credential store
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
spec/lib/rails_ai_context/introspectors/schema_introspector_spec.rb:2398
ENV["DATABASE_URL"] = "postgres://audit:secret@localhost/app_db"
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_properties_spec.rb:21
"redis://user:hunter2pw@cache:6379"
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_spec.rb:638
expect(described_class.redact_assignment(:cache_store, value: '"redis://app:pw@cache:6379"', source: nil)[:value])
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_spec.rb:697
value = { cache: { url: "redis://u:pw@host:6379", token: "tok_live_xyz" } }
MEDIUMHard-coded secrets · secret.db_uri · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_spec.rb:704
expect(described_class.redact_assignment(:cache_store, value: [ :redis_cache_store, { url: "redis://u:pw@h:6379" } ], source: nil)[:value])
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_properties_spec.rb:160
result = R.redact_assignment(:cfg, value: { user_name: "app", password: "sk_live_abcdefghijkl" },
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_properties_spec.rb:161
source: '{ user_name: "app", password: "sk_live_abcdefghijkl" }')
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_spec.rb:298
expect(redact(%(password: "correcthorsebatterystaple"))).to eq(%(password: "[FILTERED]"))
MEDIUMHard-coded secrets · secret.github · CWE-798, CWE-321
spec/lib/rails_ai_context/tools/read_logs_spec.rb:369
File.write(File.join(log_dir, "test.log"), "I, [2026-03-29T10:00:00 #1] INFO -- : token=ghp_1234567890abcdefghijklmnopqrstuvwxyz\n")
MEDIUMHard-coded secrets · secret.github · CWE-798, CWE-321
spec/lib/rails_ai_context/tools/read_logs_spec.rb:372
expect(text).not_to include("ghp_1234567890abcdefghijklmnopqrstuvwxyz")
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_spec.rb:341
pem = "-----BEGIN PRIVATE KEY-----\\n#{'MIIEvQ' * 11}\\n-----END PRIVATE KEY-----\\n"
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_spec.rb:350
enc = "-----BEGIN RSA PRIVATE KEY-----\\nProc-Type: 4,ENCRYPTED\\nDEK-Info: AES-128-CBC,#{'AB12' * 8}\\n\\n#{body}\\n-----END RSA PRIVATE KEY-----\\n"
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_spec.rb:424
lines = [ "KEY = <<~PEM", "  -----BEGIN RSA PRIVATE KEY-----", "  #{'MIIEow' * 10}", "  #{'AbCd12' * 10}",
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_spec.rb:437
%(  { name: "RSA Private Key", regex: /-----BEGIN RSA PRIVATE KEY-----/ },),
MEDIUMHard-coded secrets · secret.private_key · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_spec.rb:438
%(  PATTERN = "-----BEGIN RSA PRIVATE KEY-----".freeze),
MEDIUMHard-coded secrets · secret.slack · CWE-798, CWE-321
spec/lib/rails_ai_context/tools/read_logs_spec.rb:361
File.write(File.join(log_dir, "test.log"), "I, [2026-03-29T10:00:00 #1] INFO -- : slack_token=xoxb-1234567890-abcdefghij\n")
MEDIUMHard-coded secrets · secret.slack · CWE-798, CWE-321
spec/lib/rails_ai_context/tools/read_logs_spec.rb:365
expect(text).not_to include("xoxb-1234567890-abcdefghij")
MEDIUMHard-coded secrets · secret.stripe · CWE-798, CWE-321
spec/lib/rails_ai_context/redaction_spec.rb:939
let(:lines) { [ "INFO started", "INFO Bearer sk_live_abcdef0123456789abcdef used", "INFO done" ] }
MEDIUMHard-coded secrets · secret.stripe · CWE-798, CWE-321
spec/lib/rails_ai_context/tools/read_logs_spec.rb:124
File.write(File.join(log_dir, "test.log"), "INFO Bearer sk_live_abcdef0123456789abcdef used\nINFO done\n")
MEDIUMHard-coded secrets · secret.stripe · CWE-798, CWE-321
spec/lib/rails_ai_context/tools/read_logs_spec.rb:353
File.write(File.join(log_dir, "test.log"), "I, [2026-03-29T10:00:00 #1] INFO -- : Charge failed key=sk_live_1234567890abcdefghij\n")
MEDIUMHard-coded secrets · secret.stripe · CWE-798, CWE-321
spec/lib/rails_ai_context/tools/read_logs_spec.rb:357
expect(text).not_to include("sk_live_1234567890abcdefghij")

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha 23f9fe7f10d1full audit observations/trust-audit/mcp-server/crisnahine__rails-ai-context.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-0723f9fe7f10d1BLOCKF50first audit
06

Questions

What is the Rails AI Context MCP server?

45 MCP tools that give AI coding agents ground truth about your Rails app: schema, models, routes, controllers, views, jobs, conventions. Works with Claude Code, Cursor, GitHub Copilot, OpenCode and Codex CLI. MCP or CLI, in-Gemfile or standalone, and it still answers when the app can't boot.

What tools does Rails AI Context expose?

2 in total: 2 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Rails AI Context safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (50/100) and found 4 critical or high issues in the source. Each one is listed on this page with the file and line it is on.

What credentials does Rails AI Context need?

No credential environment variables were found in its source, so it appears to need none.

How does Rails AI Context run?

It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as test-app.

How current is this page?

The grade is for one exact copy of the source (23f9fe7f10d1), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement