From 69db642aa45520bf0b842c676c0703a252f5a819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Djalma=20Ara=C3=BAjo?= Date: Mon, 27 Jul 2026 17:22:29 -0300 Subject: [PATCH] [Bug Fix] MCP: point install instructions at canonical www host MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rubyui.com/mcp 301-redirects to www.rubyui.com/mcp (see #481). Every place we hand out the MCP endpoint — the docs page's copy-pasteable snippets, the get_project_registries tool response, and the README — still pointed at the bare domain, so copying the "installation" command sent clients through a mid-handshake redirect that trips some MCP implementations. Point all of them at the final destination directly. --- docs/app/views/docs/mcp.rb | 6 +++--- mcp/README.md | 2 +- mcp/lib/ruby_ui/mcp/tools/get_project_registries.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/app/views/docs/mcp.rb b/docs/app/views/docs/mcp.rb index 158cb63eb..16438e7d6 100644 --- a/docs/app/views/docs/mcp.rb +++ b/docs/app/views/docs/mcp.rb @@ -25,7 +25,7 @@ def view_template # Claude Code div(class: "space-y-2") do Heading(level: 3) { "Claude Code" } - Codeblock("claude mcp add --transport http ruby-ui https://rubyui.com/mcp", syntax: :shell, clipboard: true) + Codeblock("claude mcp add --transport http ruby-ui https://www.rubyui.com/mcp", syntax: :shell, clipboard: true) end # Cursor @@ -118,7 +118,7 @@ def cursor_config_json <<~JSON { "mcpServers": { - "ruby-ui": { "url": "https://rubyui.com/mcp" } + "ruby-ui": { "url": "https://www.rubyui.com/mcp" } } } JSON @@ -132,7 +132,7 @@ def zed_config_json <<~JSON { "context_servers": { - "ruby-ui": { "source": "http", "url": "https://rubyui.com/mcp" } + "ruby-ui": { "source": "http", "url": "https://www.rubyui.com/mcp" } } } JSON diff --git a/mcp/README.md b/mcp/README.md index d4dc83d7a..642831b8a 100644 --- a/mcp/README.md +++ b/mcp/README.md @@ -2,7 +2,7 @@ Model Context Protocol (MCP) server for [Ruby UI](https://rubyui.com). Lets AI coding agents discover, inspect, and install Ruby UI components. -Hosted endpoint: **https://rubyui.com/mcp** +Hosted endpoint: **https://www.rubyui.com/mcp** ## Tools diff --git a/mcp/lib/ruby_ui/mcp/tools/get_project_registries.rb b/mcp/lib/ruby_ui/mcp/tools/get_project_registries.rb index d572ed052..9b1df2f6d 100644 --- a/mcp/lib/ruby_ui/mcp/tools/get_project_registries.rb +++ b/mcp/lib/ruby_ui/mcp/tools/get_project_registries.rb @@ -10,7 +10,7 @@ def call(**) { registries: [{ name: "ruby_ui", - url: "https://rubyui.com/mcp", + url: "https://www.rubyui.com/mcp", description: "Ruby UI components for Phlex + Rails." }] }