Back to Home
seuros icon

mcp_rails_template

Verified Safe

by seuros

Overview

This server demonstrates integrating the ActionMCP gem into a Ruby on Rails application to expose AI-callable tools, prompts, and resource templates for language models.

Installation

Run Command
make up

Environment Variables

  • DB_HOST
  • DB_PORT
  • DB_NAME
  • DB_USER
  • DB_PASSWORD
  • SECRET_KEY_BASE
  • ACTION_MCP_JWT_SECRET

Security Notes

The application implements JWT-based authentication, which is a good practice. However, `docker-compose.yml` contains hardcoded development secrets (`SECRET_KEY_BASE`, `ACTION_MCP_JWT_SECRET`) which, while clearly marked for development, should ideally be managed via more secure means even for local environments (e.g., Rails credentials, Docker secrets). Tools like `RubocopTool` and `RubyCodeAnalyzerTool` process user-provided code/paths for static analysis; while not arbitrary execution, such operations always carry a risk of parser-level vulnerabilities or unintended information disclosure if input is not rigorously validated or if the environment is not secured. The `StartWorldWar3Tool` is explicitly marked as 'destructive' (mock functionality), highlighting a need for stringent authorization for any real-world destructive tools.

Similar Servers

Stats

Interest Score42
Security Score7
Cost ClassMedium
Avg Tokens500
Stars40
Forks6
Last Update2026-01-09

Tags

RailsActionMCPAIModel Context ProtocolRuby