### Load Custom Guides Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/RESOURCES.md Examples of how to request custom guides using natural language. ```text Load my API documentation guide. ``` ```text Can you show me the setup guide I imported? ``` ```text I need to see my custom user manual. ``` -------------------------------- ### List Available Guides Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/RESOURCES.md Examples of how to query for available guides across different libraries. ```text What Rails guides are available? ``` ```text Show me all the Turbo documentation. ``` ```text List the available custom guides I've imported. ``` -------------------------------- ### Troubleshooting: Guide Not Found Error Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/RESOURCES.md Example of a 'Guide not found' error and its suggested solution. ```text Guide 'invalid_guide' not found in Rails guides. ``` -------------------------------- ### Switch Project and Get Overview Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/AGENT.md Start by switching to the desired project and then get a general overview of the project's information. ```bash railsMcpServer:switch_project project_name: "your-project-name" ``` ```bash railsMcpServer:execute_tool tool_name: "project_info" ``` -------------------------------- ### Load Specific Rails Guide Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/RESOURCES.md Examples of how to request specific Rails guides using natural language. ```text Can you load the Rails getting started guide? ``` ```text I need to see the Active Record basics documentation. ``` ```text Show me the Rails routing guide. ``` -------------------------------- ### Load Specific Kamal Guide Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/RESOURCES.md Examples of how to request specific Kamal guides using natural language. ```text Show me the Kamal installation guide. ``` ```text I need to understand Kamal deployment - can you load that documentation? ``` ```text Can you get the Kamal configuration overview? ``` -------------------------------- ### Copilot Setup Steps Workflow Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/COPILOT_AGENT.md A GitHub Actions workflow to set up Ruby, install Rails MCP Server, and install project dependencies. This YAML file should be placed at .github/workflows/copilot-setup-steps.yml. ```yaml name: "Copilot Setup Steps" on: workflow_dispatch: push: paths: - .github/workflows/copilot-setup-steps.yml pull_request: paths: - .github/workflows/copilot-setup-steps.yml jobs: copilot-setup-steps: runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: '3.3' bundler-cache: true - name: Install Rails MCP Server run: gem install rails-mcp-server - name: Install project dependencies run: bundle install ``` -------------------------------- ### Execute Tool: Load Guide Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/RESOURCES.md Use this tool to load documentation guides. Specify the library and guide name. ```ruby execute_tool("load_guide", { library: "category", guide: "guide_name" }) ``` -------------------------------- ### Setup GitHub Actions Workflow Source: https://github.com/maquina-app/rails-mcp-server/blob/main/README.md Define a GitHub Actions workflow in .github/workflows/copilot-setup-steps.yml to install Ruby and the Rails MCP Server. ```yaml name: "Copilot Setup Steps" on: workflow_dispatch jobs: copilot-setup-steps: runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: '3.3' bundler-cache: true - name: Install Rails MCP Server run: gem install rails-mcp-server ``` -------------------------------- ### Load Specific Turbo Guide Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/RESOURCES.md Examples of how to request specific Turbo guides using natural language. ```text Can you load the Turbo introduction guide? ``` ```text I'd like to see the Turbo Frames documentation. ``` ```text Show me the Turbo streams reference. ``` -------------------------------- ### Download Turbo Guides Source: https://github.com/maquina-app/rails-mcp-server/blob/main/README.md Download official Turbo (Hotwire) framework guides using the command-line tool. ```bash rails-mcp-server-download-resources turbo ``` -------------------------------- ### Import Custom Guides Source: https://github.com/maquina-app/rails-mcp-server/blob/main/README.md Import custom markdown files as documentation guides using the command-line tool. ```bash rails-mcp-server-download-resources --file /path/to/your/docs/ ``` -------------------------------- ### Load Guide Documentation Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/AGENT.md Loads guide documentation for a specified library and guide. Requires library and guide names as parameters. ```ruby load_guide (params: library, guide) ``` -------------------------------- ### Load Framework Guides Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/AGENT.md Load documentation guides for various Rails libraries. Specify the 'library' and optionally the 'guide' for more specific documentation. ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "rails", guide: "getting_started" } ``` ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "rails", guide: "active_record_basics" } ``` ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "turbo" } ``` ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "stimulus" } ``` ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "kamal" } ``` -------------------------------- ### Download Rails Guides Source: https://github.com/maquina-app/rails-mcp-server/blob/main/README.md Download official Ruby on Rails guides using the command-line tool. ```bash rails-mcp-server-download-resources rails ``` -------------------------------- ### GitHub Actions Workflow for Copilot Setup Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/COPILOT_AGENT.md Sets up a GitHub Actions workflow to install Ruby, the Rails MCP Server, project dependencies, and load the database schema. This workflow is triggered manually. ```yaml name: "Copilot Setup Steps" on: workflow_dispatch jobs: copilot-setup-steps: runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: '3.3' bundler-cache: true - name: Install Rails MCP Server run: gem install rails-mcp-server - name: Install dependencies run: bundle install - name: Setup database run: bin/rails db:schema:load env: RAILS_ENV: test ``` -------------------------------- ### Load Documentation Guides Source: https://github.com/maquina-app/rails-mcp-server/blob/main/README.md Load documentation guides from various libraries like Rails, Turbo, Stimulus, Kamal, or custom sources. Specify the library and optionally a specific guide. ```ruby execute_tool(tool_name: "load_guide", params: { library: "rails" }) ``` ```ruby execute_tool(tool_name: "load_guide", params: { library: "rails", guide: "getting_started" }) ``` ```ruby execute_tool(tool_name: "load_guide", params: { library: "turbo" }) ``` ```ruby execute_tool(tool_name: "load_guide", params: { library: "stimulus" }) ``` ```ruby execute_tool(tool_name: "load_guide", params: { library: "custom", guide: "tailwind" }) ``` -------------------------------- ### Load Specific Stimulus Guide Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/RESOURCES.md Examples of how to request specific Stimulus guides using natural language. ```text Load the Hello Stimulus tutorial for me. ``` ```text I need help with Stimulus controllers - can you show me that guide? ``` ```text Can you display the Stimulus targets reference? ``` -------------------------------- ### Execute Rails Guide Tool Source: https://context7.com/maquina-app/rails-mcp-server/llms.txt Use this tool to load and consult documentation for specific Rails guides. Ensure the 'rails' library and the desired 'guide' are correctly specified. ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "rails", guide: "active_record_querying" } ``` -------------------------------- ### List and Load Rails Guides Source: https://context7.com/maquina-app/rails-mcp-server/llms.txt Lists available guides for a specified library or loads a specific guide. Supports Rails, Turbo, Stimulus, Kamal, and custom libraries. ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "rails" } ``` ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "rails", guide: "active_record_basics" } ``` ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "rails", guide: "getting_started" } ``` ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "rails", guide: "active_record_associations" } ``` ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "turbo" } ``` ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "stimulus" } ``` ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "kamal" } ``` ```ruby railsMcpServer:execute_tool tool_name: "load_guide" params: { library: "custom", guide: "tailwind" } ``` -------------------------------- ### Install and Run MCP Inspector Source: https://github.com/maquina-app/rails-mcp-server/blob/main/README.md Install the MCP Inspector globally using npm and then run it with your Rails MCP Server path. This starts the server, launches the Inspector UI, and sets up an MCP Proxy. ```bash npm -g install @modelcontextprotocol/inspector ``` ```bash npx @modelcontextprotocol/inspector /path/to/rails-mcp-server ``` -------------------------------- ### Install Rails MCP Server and Configure Projects Source: https://context7.com/maquina-app/rails-mcp-server/llms.txt Install the gem using RubyGems and configure projects either interactively or by manually creating a projects.yml file. ```bash gem install rails-mcp-server # Interactive TUI for full setup (recommended) rails-mcp-config # Or manually configure projects mkdir -p ~/.config/rails-mcp cat > ~/.config/rails-mcp/projects.yml < ``` -------------------------------- ### Analyze Controller and Views Source: https://github.com/maquina-app/rails-mcp-server/blob/main/docs/AGENT.md Use this tool to analyze controller actions, callbacks, and views. An optional 'analysis_type' parameter can be set to 'full' for Prism analysis, including filters, strong params, and instance variables. ```ruby railsMcpServer:execute_tool tool_name: "analyze_controller_views" params: { controller_name: "users" } ``` ```ruby railsMcpServer:execute_tool tool_name: "analyze_controller_views" params: { controller_name: "users", analysis_type: "full" } ``` -------------------------------- ### switch_project Tool Source: https://github.com/maquina-app/rails-mcp-server/blob/main/README.md Allows changing the active Rails project. This tool must be called before using other tools to ensure operations are performed on the correct project. ```APIDOC ## switch_project ### Description Change the active Rails project. Must be called before using other tools. ### Parameters #### Path Parameters - **project_name** (String) - Required - Name of the project as defined in projects.yml ### Notes After switching, you'll see a Quick Start guide with common commands. ```