Tidewave Rails
OfficialProvides tools for executing SQL queries, reading documentation, accessing logs, listing models, locating source files, and evaluating code within your web application.
Tidewave
Tidewave is the coding agent for full-stack web app development. Integrate Claude Code, OpenAI Codex, and other agents with your web app and web framework at every layer, from UI to database. See our website for more information.
This project can also be used as a standalone Model Context Protocol server.
Installation
You can install Tidewave by running:
bundle add tidewave --group developmentor by manully adding the tidewave gem to the development group in your Gemfile:
gem "tidewave", group: :developmentNow make sure Tidewave is installed and you are ready to connect Tidewave to your app.
Related MCP server: ruby-console-mcp
Troubleshooting
Using multiple hosts/subdomains
If you are using multiple hosts/subdomains during development, you must use *.localhost, as such domains are considered secure by browsers. Additionally, add the following to config/initializers/development.rb:
config.session_store :cookie_store,
key: "__your_app_session",
same_site: :none,
secure: true,
assume_ssl: trueAnd make sure you are using rack-session version 2.1.0 or later.
The above will allow your application to run embedded within Tidewave across multiple subdomains, as long as it is using a secure context (such as admin.localhost, www.foobar.localhost, etc).
Content security policy
If you have enabled Content-Security-Policy, Tidewave will automatically enable "unsafe-eval" under script-src in order for contextual browser testing to work correctly. It also disables the frame-ancestors directive.
Production Environment
Tidewave is a powerful tool that can help you develop your web application faster and more efficiently. However, it is important to note that Tidewave is not meant to be used in a production environment.
Tidewave will raise an error if it is used in any environment where code reloading is disabled (which typically includes production).
Configuration
You may configure tidewave using the following syntax:
config.tidewave.team = { id: "my-company" }The following config is available:
allow_remote_access- Tidewave only allows requests from localhost by default, even if your server listens on other interfaces, for security purposes. Read our security guidelines for more information and when to allow remote access (if you know what you are doing)logger_middleware- The logger middleware Tidewave should wrap to silence its own logspreferred_orm- which ORM to use, either:active_record(default) or:sequelteam- set your Tidewave Team configuration, such asconfig.tidewave.team = { id: "my-company" }
Available tools
execute_sql_query- executes a SQL query within your application database, useful for the agent to verify the result of an actionget_docs- get the documentation for a given module/class/method. It consults the exact versions used by the project, ensuring you always get correct informationget_logs- reads logs written by the serverget_models- lists all modules in the application and their location for quick discoveryget_source_location- get the source location for a given module/class/method, so an agent can directly read the source skipping searchproject_eval- evaluates code within the Rails application itself, giving the agent access to your runtime, dependencies, and in-memory data
Why no tools for routes, associations, etc?
Tidewave does not include tools for listing your routes, associations, etc. because agents are better off reading their respective source files, which gives agents more context and enable them to perform any necessary edit without additional tools calls.
Instead, Tidewave aims to fill in missing gaps, such as evaluating code inside your Rails app (without starting new instances) and finding source location, which can be tricky, even with grepping, due to meta-programming and the different places Bundler can install your dependencies.
Acknowledgements
A thank you to Yorick Jacquin for the initial version of this project.
Development
Run the Minitest suite with:
bundle exec ruby -Itest test/all_test.rbLicense
Copyright (c) 2025 Dashbit
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tidewave-ai/tidewave_rails'
If you have feedback or need assistance with the MCP directory API, please join our Discord server